I am using C#…
I need the ability to copy a set of files to about 500 unique computers. I have successfully been able to use the LogonUser() method to impersonate a domain account that has the required permissions to copy the files. The destination path for the files is something like:
\\RemoteComputer\C$\SomeFolder
My questions is…is there a way to do this without having to use an all-powerful domain account (these computers may not be joined to the domain in the future)? I have the local administrator accounts for every computer…is there a simple way to copy a file to a computer using it’s LOCAL administrator account rather than a domain account?
Correct me if I’m wrong, but you can use LogonUser to impersonate a local group also not only domain accounts.
From the net: