New answers tagged logon-scripts
Since it's a service that you're able to stop, then have the script disable the service, stop it, copy what you need, re-enable it, and then start it. In order to disable the service, you'll need to play with the registry. Here, there be dragons. The following contains potentially hazardous information. Proceed at your own risk. Export the following ...
I'm not aware of a switch in robocopy to do that, but you can test for the file, and invoke robocopy with different options to accomplish that result: if not exist x:\user1\file1.txt Robocopy "C:\logon" "X:\user1" /mir /r:1 w:1 if exist x:\user1\file1.txt Robocopy "C:\logon" "X:\user1" /mir /r:1 w:1 /xf file1.txt
The most effective way to validate the effective policy is to run gpresult /h gpresult.html or use the Group Policy Modeling Wizard. Also, you can't logon with a user account in your local domain to a computer in a remote domain without some kind of trust.
Top 50 recent answers are included