Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Terminal Services Environment Properties for a User AccountContent of Modify Terminal Services Environment Properties for a User Account.vbsMD5 Hash: 9B1DFACFDBA2D85995D9092DECC2B6C6 |
||
' Description: Configures the Terminal Services environment properties for the MyerKen Active Directory user account.
Const Enabled = 1 Const Disabled = 0 Set objUser = GetObject _ ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") objUser.ConnectClientDrivesAtLogon = Enabled objUser.ConnectClientPrintersAtLogon = Enabled objUser.DefaultToMainPrinter = Enabled objUser.TerminalServicesInitialProgram = "cmd" objUser.TerminalServicesWorkDirectory = "c:\temp" objUser.SetInfo | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |