Edit (hidden) share permissions
Top  Previous  Next


Required
rmtshare.exe

What to do

Copy and paste the script

[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
SET AccountName=%Col1%
SET SharePermissionsAdd=/grant administrators:F
[Settings_End]

[Machines_Begin]
\\EDU8
[Machines_End]

[Batch_Begin]
Data.Loop    
DOS rmtshare %servername%\%AccountName%$ %SharePermissionsAdd%   
Data.Endloop   
[Batch_End]

[Data_Begin]
SamAccountName         
[Data_End]


·[Settings]: Edit the "SharePermissionsAdd" line - this example adds full control for administrators. Use "/remove" instead of "/grant" to remove permissions.  
·[Machines]: Edit server name.  
·[Data]: Fill the data section with SamAccountNames.