Hello,
Im trying to find the service accts that are not localsystem, NT AUTHORITY\LocalService or NT AUTHORITY\NetworkService
Here is what I have so far.
Clear-Host get-content c:\temp\servers.txt |ForEach-Object {$_ Get-WmiObject I can remove the one of the built-in logon accounts from the list. But I'm not having much luck buidling the "IF" statement using and\or .