Set objParent = GetObject("ldap://OU=Level/ 02,OU=Security - Administrator Accounts,DC=XenWorld")
objparent.Filter = Array("user")
for each objUser in objParent
Wscript.Echo "Modifying|" & objUser.Get("CN")
'SESSIONS ATTRIBUTES
objUser.MaxDisconnectionTime = 2880 'In Minutes
objUser.MaxIdleTime = 2880 'In Minutes
objUser.MaxConnectionTime= 0 'active connections okay
objUser.BrokenconnectionAction = 0 '0=Disconnect, 1=End
objUser.SetInfo
next
Details on more properties:
http://www.virtualizationadmin.com/articles-tutorials/terminal-services/scripting/scripting-server-based-computing-terminal-services-attributes-active-directory-user-objects.html
No comments:
Post a Comment