Liam Posted August 13, 2013 Posted August 13, 2013 I have recently got rid of our last 2003 server which coincidently had the bulk ad tool from wisesoft working on it. Now that I am working with 2008 and 2012 im sure others are experiencing issues like trying to bulk update the terminal server profile tab for 100+ users simultaneously. any help would be appreciated.
plexer Posted August 13, 2013 Posted August 13, 2013 You can bulk select and make changes in ad users and computers or is that not what you want to do? Ben
Liam Posted August 13, 2013 Author Posted August 13, 2013 This onky let's yiu change a limited selection of attributes but not the terminal server profile or home drive.
Arthur Posted August 13, 2013 Posted August 13, 2013 (edited) PowerShell? Import-Module ActiveDirectory $Filter = [color="#FF0000"]define a filter for Get-ADUser here[/color] $Path = [color="#FF0000"]define the roaming profile path here[/color] Get-ADUser -Filter $Filter | ForEach-Object { Set-ADUser $_ -ProfilePath $Path } Import-Module ActiveDirectory $Filter = [color="#FF0000"]define a filter for Get-ADUser here[/color] $Path = [color="#FF0000"]define the roaming profile path here[/color] Get-ADUser -Filter $Filter | ForEach-Object { $ADSI = [ADSI]('LDAP://{0}' -f $_.DistinguishedName) try { $ADSI.InvokeSet('TerminalServicesProfilePath',$Path) $ADSI.SetInfo() } catch { Write-Error $Error[0] } } Edited August 13, 2013 by Arthur
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now