i am trying to write a script which adds”CreatorOwner” permission to profile$ folders on all file servers;
i.e , add “CreatorOwner” permissions to “\FileServer\Profile$”
can anybody tell me whats the command and syntax for it?
Please do ask if any questions.
One way of doing this is using WMI and UNC paths.
Now if you have a list of server names you could do the following: