I'm trying to change the NTFS permissions on a remote folder but I can't even get it working on my local machine. My code is as follows
My error is:
What gives? Thanks.
user="jdoe" path="c:\Test" Set shell = CreateObject("wscript.shell") comand_string = "xcacls" & path & "/t /g domainName\" & user & ":f /y" shell.run command_string, 7, True
Line 6, Char 1: Invalid procedure call or argument Code: 800A0005