Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

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.

Posted
This onky let's yiu change a limited selection of attributes but not the terminal server profile or home drive.
Posted (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 by Arthur

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...