Question : Use xcacls.vbs on \\server\share path

I use xcacls.vbs to view and modify folders permissions on local pc or remote server. However, I cannot use UNC path to specify the folder. It always displays the following error:

"
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Starting XCACLS.VBS (Version: 5.2) Script at 2010-5-30 1:12:53

Startup directory:
"C:\Documents and Settings\accli\Desktop\test"

Arguments Used:
        Filename = "\\she11nt\groups\users\common\test"

Error -2147023174:  occurred in connecting to server. (Msg#3203)
Error description: The RPC server is unavailable.



Operation Complete
Elapsed Time: 2.015137 seconds.
"

I am sure the UNC path is correct.

Anyone know why ?

related website:http://support.microsoft.com/kb/825751/en-us  (kb about the use of xacls.vbs)

Answer : Use xcacls.vbs on \\server\share path

xcacls.vbs doesn't support UNCs; you'll need to map a network drive to the share/folder you want to change and then use the drive letter and path.
In a command line:

net use X: "\\she11nt\groups"
cscript /nologo xcacls.vbs "X:\users\common\test" ...
net use X: /delete

You can of course use a deep mapping as well:

net use X: "\\she11nt\groups\users\common\test"
cscript /nologo xcacls.vbs "X:\" ...
net use X: /delete
Random Solutions  
 
programming4us programming4us