- Windows Server 2016 Automation with PowerShell Cookbook(Second Edition)
- Thomas Lee
- 99字
- 2021-07-02 18:16:02
How it works...
The recipe creates a GPO to distribute a logon script to users whose user accounts are in the Sales OU. You set up the logon script by following the steps in the introduction to this recipe. Then, you create and save the actual logon script. Finally, you edit the empty script file to add the logon script details.
Once you have this logon script created, the printer is automatically added to the Sales Group users' systems. New users in the Sales Group just need to log off and log on again to get the printer setup.