SetACL.exe works locally but not remotely
Writing a small package for our Site Support folks to quickly modify some folder permissions on remote PCs (we're a Windows XP/Office 2003 environment). And so via this forum I found my way to SetACL. I can get it to work by running it locally, but not remotely. At this point all I'm doing is using the SetACL examples (http://setacl.sourceforge.net/html/examples.html).
If I copy SetACL.exe to my target PC and then run this from the command line, I get the expected change, which is that the Users group gets Modify permissions added to their existing permissions for the Fonts folder:
setacl.exe -on "C:\Windows\Fonts" -ot file -actn ace -ace "n:Users;p:change"
[font="times new roman"]But what I really want to do is run SetACL on a remote PC. And when I try this code, SetACL returns the error message "The object was not set":
setacl.exe -on \\[testpcname]\c$\windows\fonts " -ot file -actn ace -ace "n:Users;p:change"
[font="times new roman"]
[font="times new roman"]I have no idea what I'm doing wrong or what else I can try. Any help?
If I copy SetACL.exe to my target PC and then run this from the command line, I get the expected change, which is that the Users group gets Modify permissions added to their existing permissions for the Fonts folder:
[font="times new roman"]
[font="times new roman"]
[font="times new roman"]
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
RonW
15 years ago
Figured it out. The remote command as I wrote it is correct. Too bad I wasn't USING that command. [:)]
Somehow I had an extra backslash at the end of my path, which wouldn't work.
So this was bad: "\\[testPCname]\c$\windows\fonts\"
[font="times new roman"]But this was good: "\\[testPCname]\c$\windows\fonts"
[font="times new roman"]
Somehow I had an extra backslash at the end of my path, which wouldn't work.
So this was bad: "\\[testPCname]\c$\windows\fonts\"
[font="times new roman"]
[font="times new roman"]
Posted by:
anonymous_9363
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.