-
Notifications
You must be signed in to change notification settings - Fork 740
Open
Description
Describe the bug
An exception is being thrown during the OSInfo command:
====== OSInfo ======
ERROR: [!] Terminating exception running command 'OSInfo': System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at Seatbelt.Runtime.GetEnvironmentVariable(String variableName)
at Seatbelt.Commands.Windows.OSInfoCommand.<Execute>d__10.MoveNext()
at Seatbelt.Runtime.ExecuteCommand(CommandBase command, String[] commandArgs)
I don't have access to a host where it occurs. Occurred during remote collection. Other commands that used the registry worked fine, but this one didn't for whatever reason.
To Reproduce
seatbelt.exe -q -group=remote -computername=COMPUTER
Expected behavior
The command to run and return OS information. If it can't, collect one piece of info, at least return a partial result (or print an error where the problem happened)
Observed behavior
An exception occurs and no command output is recieved
Metadata
Metadata
Assignees
Labels
No labels