Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Set multiple ObjectAttributes in one command?

$
0
0

Good Afternoon All,

Is it possible to set multiple attributes in one line using powershell?

Import-CSV"$CSV"|foreach {Set-QADUser-Identity$_.mail -ObjectAttributes @{comment=""} -WhatIf}

I would also like to set the PasswordLastSet attribute at the same time as updating the comment attribute if possible?


Viewing all articles
Browse latest Browse all 6937

Trending Articles