Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Append to existing Description

$
0
0

I need help on this powershell command

Get-ADuser -searchbase "OU=TEST, OU=Stale Accounts, DC=com" | Set-ADuser $_ -Description "disabled due to inactivity, termrpt $($_.Description)"

What I'm trying to do is add more text to the description wihout deleting the existing description. 

When I run it, I get:

cmdlet Get-ADuser at command pipeline position 1

Supply values for the following parameters:

(Type !? for Help.)

Finter:

I've spend quite some time on this, but just can't get it to work.

Any help would be greatly apprciated.



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>