Import-module ActiveDirectory
Get-ADUser -Filter * | Set-ADUser -Clear scriptPath
How to Set
Get-ADUser -Filter * -SearchBase “OU=Marketing,DC=martinsblog,DC=local” | Set-ADUser –scriptPath “\\dc01\netlogon\myscript.bat”
Import-module ActiveDirectory
Get-ADUser -Filter * | Set-ADUser -Clear scriptPath
How to Set
Get-ADUser -Filter * -SearchBase “OU=Marketing,DC=martinsblog,DC=local” | Set-ADUser –scriptPath “\\dc01\netlogon\myscript.bat”