diff --git a/ChangeCustomADAttributesFromUserList.ps1 b/ChangeCustomADAttributesFromUserList.ps1 index 098c70e..4b222cd 100644 --- a/ChangeCustomADAttributesFromUserList.ps1 +++ b/ChangeCustomADAttributesFromUserList.ps1 @@ -1,12 +1,12 @@ #List attribute(s) from a csv list of users -Import-Csv -Path C:\Users\22306-a\Desktop\.csv | ` +Import-Csv -Path C:\Users\\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 | ` +Import-Csv -Path C:\Users\\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