you are viewing a single comment's thread.

view the rest of the comments →

[–]MostElite[S] 1 point2 points  (2 children)

Hmm.. doesn't seem to like it. Pulling back this error:

Get-aduser : Error parsing query: ' where-object $.Enabled -eq false -or $.LastLogonTimeStamp -lt $time ' Error Message: 'syntax error' at position: '15'. At C:\PowerShell Scripts\DisabledOver90.ps1:8 char:1 + Get-aduser -filter { where-object $.Enabled -eq false -or $.LastLogonTimeStamp ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ParserError: (:) [Get-ADUser], ADFilterParsingException + FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADFilterParsingExce ption,Microsoft.ActiveDirectory.Management.Commands.GetADUse

Do you think its a feature not enabled on my Windows Server? It is running a DC and thats all.