Another test from the month of lunches book was to list out user account with passwordlastset as null.
get-aduser -filter * -properties passwordlastset | where {$_.passwordlastset -eq $null} | ft Name,PasswordLastSet
Another test from the month of lunches book was to list out user account with passwordlastset as null.
get-aduser -filter * -properties passwordlastset | where {$_.passwordlastset -eq $null} | ft Name,PasswordLastSet
Going through the learn powershell in 30 days. One test question was to display services with automattic startup and are stopped:
Get-Service | Select-Object -Property Name,Status,StartType | where-object {$_.Status -eq “Stopped” -and $_.StartType -eq “Automatic”}
A simple issue of trying to print the retention days for the logfiles.
The problem is the date does not print with the standard output column name.
You have to use the property MinimumRetentionDays
Lesson of the day? Always use the GM option.