powershell is null code example
Example: powershell is null
$password = Get-ADUser -Identity test1 -Properties * | select passwordlastset if ($password -ne $null){ Write-Output "It's empty" } else { Write-Output "It isn't empty" }
$password = Get-ADUser -Identity test1 -Properties * | select passwordlastset if ($password -ne $null){ Write-Output "It's empty" } else { Write-Output "It isn't empty" }