Powershell

Here you can find some powershell scripts

Quest
http://wiki.powergui.org/index.php/QAD_cmdlets_reference

Remove Profile Path
get-QADUser -SearchRoot ‘wardvissers.nl/test’ | Set-QADUser -Profilepath “”

Remove Home Directory
get-QADUser -SearchRoot ‘wardvissers.nl/test’ | Set-QADUser -HomeDirectory “”

Remove Logon Script
get-QADUser -SearchRoot ‘wardvissers.nl/test’ | Set-QADUser -Logonscript “”

Active Directory Cmdlets in Windows PowerShell
http://technet.microsoft.com/en-us/library/ee617195.aspx

Remove Profile Path
Get-ADUser -Filter * -SearchBase “OU=test,dc=wardvissers,dc=nl” | Set-ADUser -Clear scriptPath

Remove Home Directory
Get-ADUser -Filter * -SearchBase “OU=test,dc=wardvissers,dc=nl” | Set-ADUser -Clear homedirectory

Remove Logon Script
Get-ADUser -Filter * -SearchBase “OU=test,dc=wardvissers,dc=nl” | Set-ADUser -Clear profilepath

Leave a Reply