diff --git a/README.md b/README.md index bbf979b..827284e 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,11 @@ Import-Csv -Path C:\Users\22306-a\Desktop\.csv | ` foreach {if ((Get-ADUser -Identity $_.'User ID' -Properties | select ) -like "**") {Get-ADUser -Identity $_.'User ID' -Properties | select } ` elseif ((Get-ADUser -Identity $_.'User ID' -Properties | select ) -like "**") {Get-ADUser -Identity $_.'User ID' -Properties | select } ` elseif ((Get-ADUser -Identity $_.'User ID' -Properties | select ) -like "**") {Get-ADUser -Identity $_.'User ID' -Properties | select }} + #set attribute(s) from a csv list of users Import-Csv -Path C:\Users\22306-a\Desktop\ChangeVP.csv | ` foreach {if ((Get-ADUser -Identity $_.'User ID' -Properties | select ) -like "**") {Set-ADUser -Identity $_.'User ID' -replace @{=""} | Get-ADUser -Identity $_.'User ID' -Properties | select } ` elseif ((Get-ADUser -Identity $_.'User ID' -Properties | select ) -like "**") {Set-ADUser -Identity $_.'User ID' -replace @{=""} | Get-ADUser -Identity $_.'User ID' -Properties | select } ` -elseif ((Get-ADUser -Identity $_.'User ID' -Properties | select ) -like "**") {Set-ADUser -Identity $_.'User ID' -replace @{=""} | Get-ADUser -Identity $_.'User ID' -Properties | select }} - \ No newline at end of file +elseif ((Get-ADUser -Identity $_.'User ID' -Properties | select ) -like "**") {Set-ADUser -Identity $_.'User ID' -replace @{=""} | Get-ADUser -Identity $_.'User ID' -Properties | select }} \ No newline at end of file