Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-JCSystemInsight -Table User report wrong suspended status #640

Open
pmxhh opened this issue Jan 20, 2025 · 0 comments
Open

Get-JCSystemInsight -Table User report wrong suspended status #640

pmxhh opened this issue Jan 20, 2025 · 0 comments

Comments

@pmxhh
Copy link

pmxhh commented Jan 20, 2025

To Reproduce

> Get-JCSystemInsights -systemid $sysid -Table User | ? { $_.Username -like "Administrator" } | ? { ! $_.Suspended }

AdManaged      : False
Admin          : True
CollectionTime : 2025-01-20T09:21:50.797Z
Description    : Built-in account for administering the computer/domain
Directory      :
Gid            : 544
GidSigned      : 544
LastLogin      : -1
Managed        : False
RealUser       : True
Shell          : C:\Windows\system32\cmd.exe
Suspended      : False
SystemId       : <removed>
Type           : local
Uid            : 500
UidSigned      : 500
Username       : Administrator

If I run Get-LocalUser on system with id $sysid the Administrator account is not enabled:

Name               Enabled Description
----               ------- -----------
Administrator      False   Built-in account for administering the computer/domain

Expected behavior
I expect the Suspended status returned by Get-JCSystemInsight to be True (as the Administrator account is disabled)

System Device (please complete the following information):

  • OS: Windows
  • Version: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant