How to Add Logon
Workstation in Active DirectoryPowerShell
Command.
# Add Bulk
LogonWorkstation
$Users = (Get-ADUser -Identity pri10 -Properties
LogonWorkstations)
ForEach($User
in $Users)
{
$User.LogonWorkstations
+=",test1,test2,test3"
Set-ADUser -Instance
$User
}
#Check User
Get-ADUser pri10 –Properties LogonWorkstations
Thanks
ReplyDelete