How to display boolean $True in output


hello,

for documentation purposes, display in output value of passwordneverexpires, namely $true.  however, when run following, nothing displays.  how can value of $true display?

get-aduser -filter 'passwordneverexpires -eq $true' -searchbase "ou=users,ou=external users , groups,dc=acme,dc=net" | sort surname | select surname, givenname, samaccountname, passwordneverexpires | out-file externaluserspassneverexpires11_2.txt


thanks help! sdedot

get-aduser -filter 'passwordneverexpires -eq $true' -searchbase "ou=users,ou=external users , groups,dc=acme,dc=net" -properties passwordneverexpires | sort surname | select surname, givenname, samaccountname, passwordneverexpires | out-file externaluserspassneverexpires11_2.txt



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Domain migration ERR3:7075 Failed to change domain affiliation, hr=8007054a This operation is only allowed for the Primary Domain Controller of the domain

2008 Windows Deployment Server Properties Error

How do a find data in one file, search for it in another file and if not found, write a custom message to another file