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 R20;”
Remove Home Directory
get-QADUser -SearchRoot ‘wardvissers.nl/test’ | Set-QADUser -HomeDirectory R20;”
Remove Logon Script
get-QADUser -SearchRoot ‘wardvissers.nl/test’ | Set-QADUser -Logonscript R20;”
Active Directory Cmdlets in Windows PowerShell
http://technet.microsoft.com/en-us/library/ee617195.aspx
Remove Profile Path
Get-ADUser -Filter * -SearchBase R20;OU=test,dc=wardvissers,dc=nl” | Set-ADUser -Clear scriptPath
Remove Home Directory
Get-ADUser -Filter * -SearchBase R20;OU=test,dc=wardvissers,dc=nl” | Set-ADUser -Clear homedirectory
Remove Logon Script
Get-ADUser -Filter * -SearchBase R20;OU=test,dc=wardvissers,dc=nl” | Set-ADUser -Clear profilepath
You must log in to post a comment.