AD cmdlets allow you to easily manage terminal services properties for user accounts. You can get all TS attributes for a user by simply typing:
get-qaduser ‘Dmitry Sotnikov‘ | format-list Ts*
Get a report for a set of user by doing:
get-qaduser -searchroot mydomain.local/uk/london | format-table Name, TsProfilePath
Or change them by:
get-qaduser -searchroot mydomain.local/uk/london | set-qaduser -TsHomeDrive ‘P:‘
Now, here comes the tricky part. By default, this will only work on server versions of Windows, namely Windows Server 2003 and Windows Server 2008.
To enable terminal services management on Windows XP:
- Install Windows Server 2003 Administration Tools Pack on the XP workstation.
To enable terminal services management on Windows Vista:
- Follow these instructions on enabling TS management on Windows Vista.
Tags: AD, AD cmdlets, Active Directory, Examples, KB, Knowledge Base, Known Issues, PowerShell, cmdlets
Subscribe by email




Can you help explain this for me:
The Quest CMDLET Get-QadUser (1.1) returns something like:
PasswordLastSet : Wednesday, February 20, 2008
PasswordAge : 153 days
PasswordExpires : Wednesday, February 20, 2008
The Default Domain Policy/../../../Account Policies/Passowerd Policy settings are Maximum password age 180 days
Why does the passwordExpires property show the same as passwordLastSet?
Tom,
This looks weird… Could you submit this to the AD PowerShell forum – http://www.powergui.org/forum.jspa?forumID=173 – so the dev guys can work with you to troubleshoot the issue?
Dmitry
What about setting the Remote Control options. I would like to set all users to not have to prompt for control.
Cheers
Chris
Tom,
We could reproduce the issue on the current release. This will get fixed in our next drop. Meanwhile please use:
$PasswordExpires = $user.PasswordLastSet.Value + $user.Domain.MaximumPasswordAge.Value
Dmitry
Christopher,
Do you mean Remote Control options on each desktop? Why not just use group policy?
http://technet2.microsoft.com/windowsserver/en/library/a0cf3d25-e08e-4c4b-a8e3-3b5f62249dc91033.mspx?mfr=true
Dmitry