ADSI Access to User Parameters

Under Win2K, the only Terminal Services parameter of a user object that was accessible from the command line was the Terminal Services Profile Path attribute; accessing this attribute required the TSPROF tool. WS2K3 exposes all Terminal Services attributes to ADSI. Using the Windows Script Host (WSH) and your preferred scripting language, you can now easily configure users' Terminal Services settings. I'll discuss the ADSI objects and provide some sample scripts in Chapter 4, but for now, here is a list of the available attributes:

objUser.ConnectClientDrivesAtLogon objUser.ConnectClientPrintersAtLogon objUser.DefaultToMainPrinter objUser.TerminalServicesInitialProgram objUser.TerminalServicesWorkDirectory objUser.TerminalServicesProfilePath objUser.TerminalServicesHomeDirectory objUser.TerminalServicesHomeDrive objUser.AllowLogon

0 0

Post a comment

  • Receive news updates via email from this site