Bulk update active directory users department. RRS feed

  • Общие обсуждения

  • Hi,

    I am currently running the below script to bulk update department with same script i was able to update the field few months before.

    But this time failing. Possible it is execution error any help is appreciated.

    Screen shot is attached.

    Import-module ActiveDirectory
    Import-CSV .\ADupdateinfo.csv | ForEach-Object {$User = $_.UserName Set-ADUser -Identity $User -Displayname $_Displayname -title $_.title -department $_.department -Manager $_.Manager -Mobile $_.Mobile}

    Import-CSV .\test1.csv | ForEach-Object {$User = $_.UserName | Set-ADUser -Identity $User -Displayname $_.Displayname -title $_.title -department $_.department -Manager $_.Manager -Mobile $_.Mobile}

    • Изменен тип shaik karamat 27 августа 2019 г. 9:31
    26 августа 2019 г. 11:21