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.