Welcome to Powergui.org - an open source community for Windows Powershell

PowerGUI.org PowerGUI.org and blogs

Forums » Active Directory and PowerShell

Thread: Change terminal service session values for all users in AD

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 1 - Pages: 1 - Last Post: Nov 26, 2009 2:30 AM by: Shay Levy
selder

Posts: 1
Registered: 11/26/09
Change terminal service session values for all users in AD
Posted: Nov 26, 2009 2:05 AM
 
  Click to reply to this thread Reply

I don't know if this is the right place to ask my question, but here goes anyway:

I want to change the values of the "sessions" tab in a user object in Active directory. 
I managed to change the values for a single user using dimitri's excellent howto at http://dmitrysotnikov.wordpress.com/2008/02/13/managing-terminal-services-attributes-with-powershell/

But now I want to do it for all user objects in AD....

I don't know the first thing about the powershell, but I'm a fast leaner :p  Could someone point me in the right direction?




Shay Levy


Posts: 1,919
Registered: 1/31/08
Re: Change terminal service session values for all users in AD
Posted: Nov 26, 2009 2:30 AM   in response to: selder
 
  Click to reply to this thread Reply

At the end of Dmitry's post there's an update section which shows how to set the TsHomeDrive value for all users in a specific ou. This will uodate the value for all users in your AD


get-qaduser -sizeLimit 0 | set-qaduser -TsHomeDrive 'P:'

Shay Levy [MVP]
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar
Legend
MVP: 2501 + pts
Guru: 2001 - 2500 pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums