Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell, what does !$_. do?

$
0
0

In this script, what is the function of !$_.

get-aduser -searchbase "ou=users,dc=contoso,dc=com" -filter * -properties PasswordExpired, PasswordNeverExpires

if (!$_.PasswordExpired -and !$_.PasswordNeverExpires) { do whatever bla bla bla}

Does if (!$_.PasswordExpired -and !$_.PasswordNeverExpires) mean, if those two vaules are FALSE?


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

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