diff --git a/providers/os/id/gcp/testdata/instance_windows.toml b/providers/os/id/gcp/testdata/instance_windows.toml index a05249b79..eb6c310e9 100644 --- a/providers/os/id/gcp/testdata/instance_windows.toml +++ b/providers/os/id/gcp/testdata/instance_windows.toml @@ -15,8 +15,8 @@ command = "powershell -c \"Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' -Name CurrentBuild, UBR, EditionID | ConvertTo-Json\"" stdout = "{\r\n \"CurrentBuild\": \"17763\",\r\n \"UBR\": 2300,\r\n \"EditionID\": \"ServerDatacenter\",\r\n \"PSPath\": \"Microsoft.PowerShell.Core\\\\Registry::HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\",\r\n \"PSParentPath\": \"Microsoft.PowerShell.Core\\\\Registry::HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\",\r\n \"PSChildName\": \"CurrentVersion\",\r\n \"PSDrive\": {\r\n \"CurrentLocation\": \"\",\r\n \"Name\": \"HKLM\",\r\n \"Provider\": {\r\n \"ImplementingType\": \"Microsoft.PowerShell.Commands.RegistryProvider\",\r\n \"HelpFile\": \"System.Management.Automation.dll-Help.xml\",\r\n \"Name\": \"Registry\",\r\n \"PSSnapIn\": \"Microsoft.PowerShell.Core\",\r\n \"ModuleName\": \"Microsoft.PowerShell.Core\",\r\n \"Module\": null,\r\n \"Description\": \"\",\r\n \"Capabilities\": 80,\r\n \"Home\": \"\",\r\n \"Drives\": \"HKLM HKCU\"\r\n },\r\n \"Root\": \"HKEY_LOCAL_MACHINE\",\r\n \"Description\": \"The configuration settings for the local computer\",\r\n \"MaximumSize\": null,\r\n \"Credential\": {\r\n \"UserName\": null,\r\n \"Password\": null\r\n },\r\n \"DisplayRoot\": null\r\n },\r\n \"PSProvider\": {\r\n \"ImplementingType\": {\r\n \"Module\": \"System.Management.Automation.dll\",\r\n \"Assembly\": \"System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"TypeHandle\": \"System.RuntimeTypeHandle\",\r\n \"DeclaringMethod\": null,\r\n \"BaseType\": \"System.Management.Automation.Provider.NavigationCmdletProvider\",\r\n \"UnderlyingSystemType\": \"Microsoft.PowerShell.Commands.RegistryProvider\",\r\n \"FullName\": \"Microsoft.PowerShell.Commands.RegistryProvider\",\r\n \"AssemblyQualifiedName\": \"Microsoft.PowerShell.Commands.RegistryProvider, System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"Namespace\": \"Microsoft.PowerShell.Commands\",\r\n \"GUID\": \"73bf32d8-72d5-30bf-ba65-7d5b72919e2f\",\r\n \"IsEnum\": false,\r\n \"GenericParameterAttributes\": null,\r\n \"IsSecurityCritical\": true,\r\n \"IsSecuritySafeCritical\": false,\r\n \"IsSecurityTransparent\": false,\r\n \"IsGenericTypeDefinition\": false,\r\n \"IsGenericParameter\": false,\r\n \"GenericParameterPosition\": null,\r\n \"IsGenericType\": false,\r\n \"IsConstructedGenericType\": false,\r\n \"ContainsGenericParameters\": false,\r\n \"StructLayoutAttribute\": \"System.Runtime.InteropServices.StructLayoutAttribute\",\r\n \"Name\": \"RegistryProvider\",\r\n \"MemberType\": 32,\r\n \"DeclaringType\": null,\r\n \"ReflectedType\": null,\r\n \"MetadataToken\": 33554705,\r\n \"GenericTypeParameters\": \"\",\r\n \"DeclaredConstructors\": \"Void .ctor() Void .cctor()\",\r\n \"DeclaredEvents\": \"\",\r\n \"DeclaredFields\": \"System.Management.Automation.PSTraceSource tracer System.String[] hiveNames System.String[] hiveShortNames Microsoft.Win32.RegistryKey[] wellKnownHives Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey[] wellKnownHivesTx System.String ProviderName System.String charactersThatNeedEscaping\",\r\n \"DeclaredMembers\": \"System.Management.Automation.PSDriveInfo NewDrive(System.Management.Automation.PSDriveInfo) Void GetItem(System.String) System.Object SetItemDynamicParameters(System.String, System.Object) Void GetChildNames(System.String, System.Management.Automation.ReturnContainers) Boolean ItemExists(System.String) Boolean HasChildItems(System.String) Boolean IsItemContainer(System.String) Void MoveRegistryItem(System.String, System.String) System.Object SetPropertyDynamicParameters(System.String, System.Management.Automation.PSObject) System.Object GetPropertyDynamicParameters(System.String, System.Collections.ObjectModel.Collection`1[System.String]) System.Object ClearPropertyDynamicParameters(System.String, System.Collections.ObjectModel.Collection`1[System.String]) System.String GetParentPath(System.String, System.String) System.String GetChildName(System.String) System.Object NewPropertyDynamicParameters(System.String, System.String, System.String, System.Object) System.Object RemovePropertyDynamicParameters(System.String, System.String) System.Object RenamePropertyDynamicParameters(System.String, System.String, System.String) System.Object CopyPropertyDynamicParameters(System.String, System.String, System.String, System.String) System.Object MovePropertyDynamicParameters(System.String, System.String, System.String, System.String) Void CopyProperty(Microsoft.PowerShell.Commands.IRegistryWrapper, Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.String, Boolean) Void MoveProperty(Microsoft.PowerShell.Commands.IRegistryWrapper, Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.String) System.String NormalizePath(System.String) Microsoft.PowerShell.Commands.IRegistryWrapper GetHiveRoot(System.String) Microsoft.PowerShell.Commands.IRegistryWrapper GetRegkeyForPathWriteIfError(System.String, Boolean) Void SetRegistryValue(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.Object, Microsoft.Win32.RegistryValueKind, System.String) Void SetRegistryValue(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.Object, Microsoft.Win32.RegistryValueKind, System.String, Boolean) Microsoft.Win32.RegistryValueKind GetValueKindForProperty(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String) System.Object ReadExistingKeyValue(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String) Void GetSecurityDescriptor(System.String, System.Security.AccessControl.AccessControlSections) Void SetSecurityDescriptor(System.String, System.Security.AccessControl.ObjectSecurity) System.Security.AccessControl.ObjectSecurity NewSecurityDescriptorFromPath(System.String, System.Security.AccessControl.AccessControlSections) System.Security.AccessControl.ObjectSecurity NewSecurityDescriptorOfType(System.String, System.Security.AccessControl.AccessControlSections) System.Collections.ObjectModel.Collection`1[System.Management.Automation.PSDriveInfo] InitializeDefaultDrives() Boolean IsValidPath(System.String) Void SetItem(System.String, System.Object) Void ClearItem(System.String) Void GetChildItems(System.String, Boolean, UInt32) System.String EscapeSpecialChars(System.String) System.String EscapeChildName(System.String) Void RenameItem(System.String, System.String) Void NewItem(System.String, System.String, System.Object) Void RemoveItem(System.String, Boolean) Void CopyItem(System.String, System.String, Boolean) Boolean CopyRegistryKey(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.String, Boolean, Boolean, Boolean) Boolean ErrorIfDestinationIsSourceOrChildOfSource(System.String, System.String) Void MoveItem(System.String, System.String) Void GetProperty(System.String, System.Collections.ObjectModel.Collection`1[System.String]) Void SetProperty(System.String, System.Management.Automation.PSObject) Void ClearProperty(System.String, System.Collections.ObjectModel.Collection`1[System.String]) Void NewProperty(System.String, System.String, System.String, System.Object) Void RemoveProperty(System.String, System.String) Void RenameProperty(System.String, System.String, System.String) Void CopyProperty(System.String, System.String, System.String, System.String) Void MoveProperty(System.String, System.String, System.String, System.String) System.String EnsureDriveIsRooted(System.String) Boolean HasRelativePathTokens(System.String) Void GetFilteredRegistryKeyProperties(System.String, System.Collections.ObjectModel.Collection`1[System.String], Boolean, Boolean, Microsoft.PowerShell.Commands.IRegistryWrapper ByRef, System.Collections.ObjectModel.Collection`1[System.String] ByRef) Void WriteErrorIfPerfectMatchNotFound(Boolean, System.String, System.String) System.Object ResetRegistryKeyValue(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String) Boolean IsHiveContainer(System.String) Boolean CheckOperationNotAllowedOnHiveContainer(System.String) Boolean CheckOperationNotAllowedOnHiveContainer(System.String, System.String) Boolean CreateIntermediateKeys(System.String) Microsoft.PowerShell.Commands.IRegistryWrapper GetRegkeyForPath(System.String, Boolean) Void WriteWrappedPropertyObject(System.Object, System.String, System.String) System.Object ConvertValueToKind(System.Object, Microsoft.Win32.RegistryValueKind) Microsoft.Win32.RegistryValueKind GetValueKindFromObject(System.Object) Void WriteRegistryItemObject(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String) Boolean ParseKind(System.String, Microsoft.Win32.RegistryValueKind ByRef) System.String GetLocalizedDefaultToken() System.String GetPropertyName(System.String) Void .ctor() Void .cctor() System.Management.Automation.PSTraceSource tracer System.String[] hiveNames System.String[] hiveShortNames Microsoft.Win32.RegistryKey[] wellKnownHives Microsoft.PowerShell.Commands.Internal.TransactedRegistryKey[] wellKnownHivesTx System.String ProviderName System.String charactersThatNeedEscaping\",\r\n \"DeclaredMethods\": \"System.Management.Automation.PSDriveInfo NewDrive(System.Management.Automation.PSDriveInfo) Void GetItem(System.String) System.Object SetItemDynamicParameters(System.String, System.Object) Void GetChildNames(System.String, System.Management.Automation.ReturnContainers) Boolean ItemExists(System.String) Boolean HasChildItems(System.String) Boolean IsItemContainer(System.String) Void MoveRegistryItem(System.String, System.String) System.Object SetPropertyDynamicParameters(System.String, System.Management.Automation.PSObject) System.Object GetPropertyDynamicParameters(System.String, System.Collections.ObjectModel.Collection`1[System.String]) System.Object ClearPropertyDynamicParameters(System.String, System.Collections.ObjectModel.Collection`1[System.String]) System.String GetParentPath(System.String, System.String) System.String GetChildName(System.String) System.Object NewPropertyDynamicParameters(System.String, System.String, System.String, System.Object) System.Object RemovePropertyDynamicParameters(System.String, System.String) System.Object RenamePropertyDynamicParameters(System.String, System.String, System.String) System.Object CopyPropertyDynamicParameters(System.String, System.String, System.String, System.String) System.Object MovePropertyDynamicParameters(System.String, System.String, System.String, System.String) Void CopyProperty(Microsoft.PowerShell.Commands.IRegistryWrapper, Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.String, Boolean) Void MoveProperty(Microsoft.PowerShell.Commands.IRegistryWrapper, Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.String) System.String NormalizePath(System.String) Microsoft.PowerShell.Commands.IRegistryWrapper GetHiveRoot(System.String) Microsoft.PowerShell.Commands.IRegistryWrapper GetRegkeyForPathWriteIfError(System.String, Boolean) Void SetRegistryValue(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.Object, Microsoft.Win32.RegistryValueKind, System.String) Void SetRegistryValue(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.Object, Microsoft.Win32.RegistryValueKind, System.String, Boolean) Microsoft.Win32.RegistryValueKind GetValueKindForProperty(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String) System.Object ReadExistingKeyValue(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String) Void GetSecurityDescriptor(System.String, System.Security.AccessControl.AccessControlSections) Void SetSecurityDescriptor(System.String, System.Security.AccessControl.ObjectSecurity) System.Security.AccessControl.ObjectSecurity NewSecurityDescriptorFromPath(System.String, System.Security.AccessControl.AccessControlSections) System.Security.AccessControl.ObjectSecurity NewSecurityDescriptorOfType(System.String, System.Security.AccessControl.AccessControlSections) System.Collections.ObjectModel.Collection`1[System.Management.Automation.PSDriveInfo] InitializeDefaultDrives() Boolean IsValidPath(System.String) Void SetItem(System.String, System.Object) Void ClearItem(System.String) Void GetChildItems(System.String, Boolean, UInt32) System.String EscapeSpecialChars(System.String) System.String EscapeChildName(System.String) Void RenameItem(System.String, System.String) Void NewItem(System.String, System.String, System.Object) Void RemoveItem(System.String, Boolean) Void CopyItem(System.String, System.String, Boolean) Boolean CopyRegistryKey(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String, System.String, Boolean, Boolean, Boolean) Boolean ErrorIfDestinationIsSourceOrChildOfSource(System.String, System.String) Void MoveItem(System.String, System.String) Void GetProperty(System.String, System.Collections.ObjectModel.Collection`1[System.String]) Void SetProperty(System.String, System.Management.Automation.PSObject) Void ClearProperty(System.String, System.Collections.ObjectModel.Collection`1[System.String]) Void NewProperty(System.String, System.String, System.String, System.Object) Void RemoveProperty(System.String, System.String) Void RenameProperty(System.String, System.String, System.String) Void CopyProperty(System.String, System.String, System.String, System.String) Void MoveProperty(System.String, System.String, System.String, System.String) System.String EnsureDriveIsRooted(System.String) Boolean HasRelativePathTokens(System.String) Void GetFilteredRegistryKeyProperties(System.String, System.Collections.ObjectModel.Collection`1[System.String], Boolean, Boolean, Microsoft.PowerShell.Commands.IRegistryWrapper ByRef, System.Collections.ObjectModel.Collection`1[System.String] ByRef) Void WriteErrorIfPerfectMatchNotFound(Boolean, System.String, System.String) System.Object ResetRegistryKeyValue(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String) Boolean IsHiveContainer(System.String) Boolean CheckOperationNotAllowedOnHiveContainer(System.String) Boolean CheckOperationNotAllowedOnHiveContainer(System.String, System.String) Boolean CreateIntermediateKeys(System.String) Microsoft.PowerShell.Commands.IRegistryWrapper GetRegkeyForPath(System.String, Boolean) Void WriteWrappedPropertyObject(System.Object, System.String, System.String) System.Object ConvertValueToKind(System.Object, Microsoft.Win32.RegistryValueKind) Microsoft.Win32.RegistryValueKind GetValueKindFromObject(System.Object) Void WriteRegistryItemObject(Microsoft.PowerShell.Commands.IRegistryWrapper, System.String) Boolean ParseKind(System.String, Microsoft.Win32.RegistryValueKind ByRef) System.String GetLocalizedDefaultToken() System.String GetPropertyName(System.String)\",\r\n \"DeclaredNestedTypes\": \"\",\r\n \"DeclaredProperties\": \"\",\r\n \"ImplementedInterfaces\": \"System.Management.Automation.IResourceSupplier System.Management.Automation.Provider.IPropertyCmdletProvider System.Management.Automation.Provider.IDynamicPropertyCmdletProvider System.Management.Automation.Provider.ISecurityDescriptorCmdletProvider\",\r\n \"TypeInitializer\": \"Void .cctor()\",\r\n \"IsNested\": false,\r\n \"Attributes\": 1048833,\r\n \"IsVisible\": true,\r\n \"IsNotPublic\": false,\r\n \"IsPublic\": true,\r\n \"IsNestedPublic\": false,\r\n \"IsNestedPrivate\": false,\r\n \"IsNestedFamily\": false,\r\n \"IsNestedAssembly\": false,\r\n \"IsNestedFamANDAssem\": false,\r\n \"IsNestedFamORAssem\": false,\r\n \"IsAutoLayout\": true,\r\n \"IsLayoutSequential\": false,\r\n \"IsExplicitLayout\": false,\r\n \"IsClass\": true,\r\n \"IsInterface\": false,\r\n \"IsValueType\": false,\r\n \"IsAbstract\": false,\r\n \"IsSealed\": true,\r\n \"IsSpecialName\": false,\r\n \"IsImport\": false,\r\n \"IsSerializable\": false,\r\n \"IsAnsiClass\": true,\r\n \"IsUnicodeClass\": false,\r\n \"IsAutoClass\": false,\r\n \"IsArray\": false,\r\n \"IsByRef\": false,\r\n \"IsPointer\": false,\r\n \"IsPrimitive\": false,\r\n \"IsCOMObject\": false,\r\n \"HasElementType\": false,\r\n \"IsContextful\": false,\r\n \"IsMarshalByRef\": false,\r\n \"GenericTypeArguments\": \"\",\r\n \"CustomAttributes\": \"[System.Management.Automation.OutputTypeAttribute(typeof(System.String), ProviderCmdlet = \\\"Move-ItemProperty\\\")] [System.Management.Automation.Provider.CmdletProviderAttribute(\\\"Registry\\\", (System.Management.Automation.Provider.ProviderCapabilities)80)] [System.Management.Automation.OutputTypeAttribute(new Type[2] { typeof(Microsoft.Win32.RegistryKey), typeof(System.String) }, ProviderCmdlet = \\\"Get-ChildItem\\\")] [System.Management.Automation.OutputTypeAttribute(typeof(Microsoft.Win32.RegistryKey), ProviderCmdlet = \\\"Get-Item\\\")] [System.Management.Automation.OutputTypeAttribute(typeof(System.Security.AccessControl.RegistrySecurity), ProviderCmdlet = \\\"Get-Acl\\\")] [System.Management.Automation.OutputTypeAttribute(typeof(Microsoft.Win32.RegistryKey), ProviderCmdlet = \\\"Get-ChildItem\\\")] [System.Management.Automation.OutputTypeAttribute(typeof(Microsoft.Win32.RegistryKey), ProviderCmdlet = \\\"Get-Item\\\")] [System.Management.Automation.OutputTypeAttribute(new Type[4] { typeof(Microsoft.Win32.RegistryKey), typeof(System.String), typeof(System.Int32), typeof(System.Int64) }, ProviderCmdlet = \\\"Get-ItemProperty\\\")] [System.Management.Automation.OutputTypeAttribute(typeof(Microsoft.Win32.RegistryKey), ProviderCmdlet = \\\"New-Item\\\")]\"\r\n },\r\n \"HelpFile\": \"System.Management.Automation.dll-Help.xml\",\r\n \"Name\": \"Registry\",\r\n \"PSSnapIn\": {\r\n \"Name\": \"Microsoft.PowerShell.Core\",\r\n \"IsDefault\": true,\r\n \"ApplicationBase\": \"C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\",\r\n \"AssemblyName\": \"System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL\",\r\n \"ModuleName\": \"C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\System.Management.Automation.dll\",\r\n \"PSVersion\": \"5.1.17763.2268\",\r\n \"Version\": \"3.0.0.0\",\r\n \"Types\": \"types.ps1xml typesv3.ps1xml\",\r\n \"Formats\": \"Certificate.format.ps1xml DotNetTypes.format.ps1xml FileSystem.format.ps1xml Help.format.ps1xml HelpV3.format.ps1xml PowerShellCore.format.ps1xml PowerShellTrace.format.ps1xml Registry.format.ps1xml\",\r\n \"Description\": \"This Windows PowerShell snap-in contains cmdlets used to manage components of Windows PowerShell.\",\r\n \"Vendor\": \"Microsoft Corporation\",\r\n \"LogPipelineExecutionDetails\": false\r\n },\r\n \"ModuleName\": \"Microsoft.PowerShell.Core\",\r\n \"Module\": null,\r\n \"Description\": \"\",\r\n \"Capabilities\": 80,\r\n \"Home\": \"\",\r\n \"Drives\": [\r\n \"HKLM\",\r\n \"HKCU\"\r\n ]\r\n }\r\n}\r\n" exit_status = 0 - [commands.7fe0ea81194a64b2f0d20e30d79c6858fefd65c9b531957dd06a6dc44f4eb389] - command = "powershell.exe -NoProfile -EncodedCommand JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQA9ACcAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQAnADsACgAkAGIAaQBvAHMAIAA9ACAARwBlAHQALQBXAG0AaQBPAGIAagBlAGMAdAAgAC0AYwBsAGEAcwBzACAAVwBpAG4AMwAyAF8AQgBpAG8AcwAKACQAYgBhAHMAZQBiAG8AYQByAGQAIAA9ACAARwBlAHQALQBXAG0AaQBPAGIAagBlAGMAdAAgAFcAaQBuADMAMgBfAEIAYQBzAGUAQgBvAGEAcgBkAAoAJABjAGgAYQBzAHMAaQBzACAAPQAgAEAAKABHAGUAdAAtAFcAbQBpAE8AYgBqAGUAYwB0ACAAVwBpAG4AMwAyAF8AUwB5AHMAdABlAG0ARQBuAGMAbABvAHMAdQByAGUAKQAKACQAcwB5AHMAIAA9ACAARwBlAHQALQBXAG0AaQBPAGIAagBlAGMAdAAgAFcAaQBuADMAMgBfAEMAbwBtAHAAdQB0AGUAcgBTAHkAcwB0AGUAbQAKACQAcwB5AHMAUAByAG8AZAB1AGMAdAAgAD0AIABHAGUAdAAtAFcAbQBpAE8AYgBqAGUAYwB0ACAAVwBpAG4AMwAyAF8AQwBvAG0AcAB1AHQAZQByAFMAeQBzAHQAZQBtAFAAcgBvAGQAdQBjAHQACgAKACQAcwBtAGIAaQBvAHMAIAA9ACAATgBlAHcALQBPAGIAagBlAGMAdAAgAC0AVAB5AHAAZQBOAGEAbQBlACAAUABTAE8AYgBqAGUAYwB0AAoAJABzAG0AYgBpAG8AcwAgAHwAIABBAGQAZAAtAE0AZQBtAGIAZQByACAALQBNAGUAbQBiAGUAcgBUAHkAcABlACAATgBvAHQAZQBQAHIAbwBwAGUAcgB0AHkAIAAtAFYAYQBsAHUAZQAgACQAYgBpAG8AcwAgAC0ATgBhAG0AZQAgAEIAaQBvAHMACgAkAHMAbQBiAGkAbwBzACAAfAAgAEEAZABkAC0ATQBlAG0AYgBlAHIAIAAtAE0AZQBtAGIAZQByAFQAeQBwAGUAIABOAG8AdABlAFAAcgBvAHAAZQByAHQAeQAgAC0AVgBhAGwAdQBlACAAJABiAGEAcwBlAGIAbwBhAHIAZAAgAC0ATgBhAG0AZQAgAEIAYQBzAGUAQgBvAGEAcgBkAAoAJABzAG0AYgBpAG8AcwAgAHwAIABBAGQAZAAtAE0AZQBtAGIAZQByACAALQBNAGUAbQBiAGUAcgBUAHkAcABlACAATgBvAHQAZQBQAHIAbwBwAGUAcgB0AHkAIAAtAFYAYQBsAHUAZQAgACQAYwBoAGEAcwBzAGkAcwAgAC0ATgBhAG0AZQAgAEMAaABhAHMAcwBpAHMACgAkAHMAbQBiAGkAbwBzACAAfAAgAEEAZABkAC0ATQBlAG0AYgBlAHIAIAAtAE0AZQBtAGIAZQByAFQAeQBwAGUAIABOAG8AdABlAFAAcgBvAHAAZQByAHQAeQAgAC0AVgBhAGwAdQBlACAAJABzAHkAcwAgAC0ATgBhAG0AZQAgAFMAeQBzAHQAZQBtAAoAJABzAG0AYgBpAG8AcwAgAHwAIABBAGQAZAAtAE0AZQBtAGIAZQByACAALQBNAGUAbQBiAGUAcgBUAHkAcABlACAATgBvAHQAZQBQAHIAbwBwAGUAcgB0AHkAIAAtAFYAYQBsAHUAZQAgACQAcwB5AHMAUAByAG8AZAB1AGMAdAAgAC0ATgBhAG0AZQAgAFMAeQBzAHQAZQBtAFAAcgBvAGQAdQBjAHQACgAKACQAcwBtAGIAaQBvAHMAIAB8ACAAQwBvAG4AdgBlAHIAdABUAG8ALQBKAHMAbwBuAAoA" + [commands.947d2a9bcd024b21cff05ccc63cbe70f1afa9316aef6b6bb7a32583d64951a07] + command = "powershell.exe -NoProfile -EncodedCommand JABQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQA9ACcAUwBpAGwAZQBuAHQAbAB5AEMAbwBuAHQAaQBuAHUAZQAnADsACgAkAGIAaQBvAHMAIAA9ACAARwBlAHQALQBDAGkAbQBJAG4AcwB0AGEAbgBjAGUAIAAtAEMAbABhAHMAcwBOAGEAbQBlACAAVwBpAG4AMwAyAF8AQgBpAG8AcwAKACQAYgBhAHMAZQBiAG8AYQByAGQAIAA9ACAARwBlAHQALQBDAGkAbQBJAG4AcwB0AGEAbgBjAGUAIAAtAEMAbABhAHMAcwBOAGEAbQBlACAAVwBpAG4AMwAyAF8AQgBhAHMAZQBCAG8AYQByAGQACgAkAGMAaABhAHMAcwBpAHMAIAA9ACAAQAAoAEcAZQB0AC0AQwBpAG0ASQBuAHMAdABhAG4AYwBlACAALQBDAGwAYQBzAHMATgBhAG0AZQAgAFcAaQBuADMAMgBfAFMAeQBzAHQAZQBtAEUAbgBjAGwAbwBzAHUAcgBlACkACgAkAHMAeQBzACAAPQAgAEcAZQB0AC0AQwBpAG0ASQBuAHMAdABhAG4AYwBlACAALQBDAGwAYQBzAHMATgBhAG0AZQAgAFcAaQBuADMAMgBfAEMAbwBtAHAAdQB0AGUAcgBTAHkAcwB0AGUAbQAKACQAcwB5AHMAUAByAG8AZAB1AGMAdAAgAD0AIABHAGUAdAAtAEMAaQBtAEkAbgBzAHQAYQBuAGMAZQAgAC0AQwBsAGEAcwBzAE4AYQBtAGUAIABXAGkAbgAzADIAXwBDAG8AbQBwAHUAdABlAHIAUwB5AHMAdABlAG0AUAByAG8AZAB1AGMAdAAKAAoAJABzAG0AYgBpAG8AcwAgAD0AIABOAGUAdwAtAE8AYgBqAGUAYwB0ACAALQBUAHkAcABlAE4AYQBtAGUAIABQAFMATwBiAGoAZQBjAHQACgAkAHMAbQBiAGkAbwBzACAAfAAgAEEAZABkAC0ATQBlAG0AYgBlAHIAIAAtAE0AZQBtAGIAZQByAFQAeQBwAGUAIABOAG8AdABlAFAAcgBvAHAAZQByAHQAeQAgAC0AVgBhAGwAdQBlACAAJABiAGkAbwBzACAALQBOAGEAbQBlACAAQgBpAG8AcwAKACQAcwBtAGIAaQBvAHMAIAB8ACAAQQBkAGQALQBNAGUAbQBiAGUAcgAgAC0ATQBlAG0AYgBlAHIAVAB5AHAAZQAgAE4AbwB0AGUAUAByAG8AcABlAHIAdAB5ACAALQBWAGEAbAB1AGUAIAAkAGIAYQBzAGUAYgBvAGEAcgBkACAALQBOAGEAbQBlACAAQgBhAHMAZQBCAG8AYQByAGQACgAkAHMAbQBiAGkAbwBzACAAfAAgAEEAZABkAC0ATQBlAG0AYgBlAHIAIAAtAE0AZQBtAGIAZQByAFQAeQBwAGUAIABOAG8AdABlAFAAcgBvAHAAZQByAHQAeQAgAC0AVgBhAGwAdQBlACAAJABjAGgAYQBzAHMAaQBzACAALQBOAGEAbQBlACAAQwBoAGEAcwBzAGkAcwAKACQAcwBtAGIAaQBvAHMAIAB8ACAAQQBkAGQALQBNAGUAbQBiAGUAcgAgAC0ATQBlAG0AYgBlAHIAVAB5AHAAZQAgAE4AbwB0AGUAUAByAG8AcABlAHIAdAB5ACAALQBWAGEAbAB1AGUAIAAkAHMAeQBzACAALQBOAGEAbQBlACAAUwB5AHMAdABlAG0ACgAkAHMAbQBiAGkAbwBzACAAfAAgAEEAZABkAC0ATQBlAG0AYgBlAHIAIAAtAE0AZQBtAGIAZQByAFQAeQBwAGUAIABOAG8AdABlAFAAcgBvAHAAZQByAHQAeQAgAC0AVgBhAGwAdQBlACAAJABzAHkAcwBQAHIAbwBkAHUAYwB0ACAALQBOAGEAbQBlACAAUwB5AHMAdABlAG0AUAByAG8AZAB1AGMAdAAKAAoAJABzAG0AYgBpAG8AcwAgAHwAIABDAG8AbgB2AGUAcgB0AFQAbwAtAEoAcwBvAG4ACgA=" stdout = "{\r\n \"Bios\": {\r\n \"Scope\": {\r\n \"IsConnected\": true,\r\n \"Options\": \"System.Management.ConnectionOptions\",\r\n \"Path\": \"\\\\\\\\localhost\\\\root\\\\cimv2\"\r\n },\r\n \"Path\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_BIOS.Name=\\\"Google\\\",SoftwareElementID=\\\"Google\\\",SoftwareElementState=3,TargetOperatingSystem=0,Version=\\\"Google - 1\\\"\",\r\n \"RelativePath\": \"Win32_BIOS.Name=\\\"Google\\\",SoftwareElementID=\\\"Google\\\",SoftwareElementState=3,TargetOperatingSystem=0,Version=\\\"Google - 1\\\"\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_BIOS\",\r\n \"IsClass\": false,\r\n \"IsInstance\": true,\r\n \"IsSingleton\": false\r\n },\r\n \"Options\": {\r\n \"UseAmendedQualifiers\": false,\r\n \"Context\": \"\",\r\n \"Timeout\": \"10675199.02:48:05.4775807\"\r\n },\r\n \"ClassPath\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_BIOS\",\r\n \"RelativePath\": \"Win32_BIOS\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_BIOS\",\r\n \"IsClass\": true,\r\n \"IsInstance\": false,\r\n \"IsSingleton\": false\r\n },\r\n \"Properties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"SystemProperties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"Qualifiers\": [\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\"\r\n ],\r\n \"Site\": null,\r\n \"Container\": null,\r\n \"PSComputerName\": \"JAY-WIN-1\",\r\n \"__GENUS\": 2,\r\n \"__CLASS\": \"Win32_BIOS\",\r\n \"__SUPERCLASS\": \"CIM_BIOSElement\",\r\n \"__DYNASTY\": \"CIM_ManagedSystemElement\",\r\n \"__RELPATH\": \"Win32_BIOS.Name=\\\"Google\\\",SoftwareElementID=\\\"Google\\\",SoftwareElementState=3,TargetOperatingSystem=0,Version=\\\"Google - 1\\\"\",\r\n \"__PROPERTY_COUNT\": 31,\r\n \"__DERIVATION\": [\r\n \"CIM_BIOSElement\",\r\n \"CIM_SoftwareElement\",\r\n \"CIM_LogicalElement\",\r\n \"CIM_ManagedSystemElement\"\r\n ],\r\n \"__SERVER\": \"JAY-WIN-1\",\r\n \"__NAMESPACE\": \"root\\\\cimv2\",\r\n \"__PATH\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_BIOS.Name=\\\"Google\\\",SoftwareElementID=\\\"Google\\\",SoftwareElementState=3,TargetOperatingSystem=0,Version=\\\"Google - 1\\\"\",\r\n \"BiosCharacteristics\": [\r\n 3,\r\n 42\r\n ],\r\n \"BIOSVersion\": [\r\n \"Google - 1\",\r\n \"Google\",\r\n \"EDK II - 10000\"\r\n ],\r\n \"BuildNumber\": null,\r\n \"Caption\": \"Google\",\r\n \"CodeSet\": null,\r\n \"CurrentLanguage\": null,\r\n \"Description\": \"Google\",\r\n \"EmbeddedControllerMajorVersion\": 255,\r\n \"EmbeddedControllerMinorVersion\": 255,\r\n \"IdentificationCode\": null,\r\n \"InstallableLanguages\": null,\r\n \"InstallDate\": null,\r\n \"LanguageEdition\": null,\r\n \"ListOfLanguages\": null,\r\n \"Manufacturer\": \"Google\",\r\n \"Name\": \"Google\",\r\n \"OtherTargetOS\": null,\r\n \"PrimaryBIOS\": true,\r\n \"ReleaseDate\": \"20110101000000.000000+000\",\r\n \"SerialNumber\": \"GoogleCloud-E0C28085D6A51B8CB3CA91436F22FE83\",\r\n \"SMBIOSBIOSVersion\": \"Google\",\r\n \"SMBIOSMajorVersion\": 2,\r\n \"SMBIOSMinorVersion\": 4,\r\n \"SMBIOSPresent\": true,\r\n \"SoftwareElementID\": \"Google\",\r\n \"SoftwareElementState\": 3,\r\n \"Status\": \"OK\",\r\n \"SystemBiosMajorVersion\": 1,\r\n \"SystemBiosMinorVersion\": 0,\r\n \"TargetOperatingSystem\": 0,\r\n \"Version\": \"Google - 1\"\r\n },\r\n \"BaseBoard\": {\r\n \"Scope\": {\r\n \"IsConnected\": true,\r\n \"Options\": \"System.Management.ConnectionOptions\",\r\n \"Path\": \"\\\\\\\\localhost\\\\root\\\\cimv2\"\r\n },\r\n \"Path\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_BaseBoard.Tag=\\\"Base Board\\\"\",\r\n \"RelativePath\": \"Win32_BaseBoard.Tag=\\\"Base Board\\\"\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_BaseBoard\",\r\n \"IsClass\": false,\r\n \"IsInstance\": true,\r\n \"IsSingleton\": false\r\n },\r\n \"Options\": {\r\n \"UseAmendedQualifiers\": false,\r\n \"Context\": \"\",\r\n \"Timeout\": \"10675199.02:48:05.4775807\"\r\n },\r\n \"ClassPath\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_BaseBoard\",\r\n \"RelativePath\": \"Win32_BaseBoard\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_BaseBoard\",\r\n \"IsClass\": true,\r\n \"IsInstance\": false,\r\n \"IsSingleton\": false\r\n },\r\n \"Properties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"SystemProperties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"Qualifiers\": [\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\"\r\n ],\r\n \"Site\": null,\r\n \"Container\": null,\r\n \"PSComputerName\": \"JAY-WIN-1\",\r\n \"__GENUS\": 2,\r\n \"__CLASS\": \"Win32_BaseBoard\",\r\n \"__SUPERCLASS\": \"CIM_Card\",\r\n \"__DYNASTY\": \"CIM_ManagedSystemElement\",\r\n \"__RELPATH\": \"Win32_BaseBoard.Tag=\\\"Base Board\\\"\",\r\n \"__PROPERTY_COUNT\": 29,\r\n \"__DERIVATION\": [\r\n \"CIM_Card\",\r\n \"CIM_PhysicalPackage\",\r\n \"CIM_PhysicalElement\",\r\n \"CIM_ManagedSystemElement\"\r\n ],\r\n \"__SERVER\": \"JAY-WIN-1\",\r\n \"__NAMESPACE\": \"root\\\\cimv2\",\r\n \"__PATH\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_BaseBoard.Tag=\\\"Base Board\\\"\",\r\n \"Caption\": \"Base Board\",\r\n \"ConfigOptions\": null,\r\n \"CreationClassName\": \"Win32_BaseBoard\",\r\n \"Depth\": null,\r\n \"Description\": \"Base Board\",\r\n \"Height\": null,\r\n \"HostingBoard\": true,\r\n \"HotSwappable\": false,\r\n \"InstallDate\": null,\r\n \"Manufacturer\": \"Google\",\r\n \"Model\": null,\r\n \"Name\": \"Base Board\",\r\n \"OtherIdentifyingInfo\": null,\r\n \"PartNumber\": null,\r\n \"PoweredOn\": true,\r\n \"Product\": \"Google Compute Engine\",\r\n \"Removable\": false,\r\n \"Replaceable\": false,\r\n \"RequirementsDescription\": null,\r\n \"RequiresDaughterBoard\": false,\r\n \"SerialNumber\": \"Board-GoogleCloud-E0C28085D6A51B8CB3CA91436F22FE83\",\r\n \"SKU\": null,\r\n \"SlotLayout\": null,\r\n \"SpecialRequirements\": null,\r\n \"Status\": \"OK\",\r\n \"Tag\": \"Base Board\",\r\n \"Version\": null,\r\n \"Weight\": null,\r\n \"Width\": null\r\n },\r\n \"Chassis\": [{\r\n \"Scope\": {\r\n \"IsConnected\": true,\r\n \"Options\": \"System.Management.ConnectionOptions\",\r\n \"Path\": \"\\\\\\\\localhost\\\\root\\\\cimv2\"\r\n },\r\n \"Path\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_SystemEnclosure.Tag=\\\"System Enclosure 0\\\"\",\r\n \"RelativePath\": \"Win32_SystemEnclosure.Tag=\\\"System Enclosure 0\\\"\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_SystemEnclosure\",\r\n \"IsClass\": false,\r\n \"IsInstance\": true,\r\n \"IsSingleton\": false\r\n },\r\n \"Options\": {\r\n \"UseAmendedQualifiers\": false,\r\n \"Context\": \"\",\r\n \"Timeout\": \"10675199.02:48:05.4775807\"\r\n },\r\n \"ClassPath\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_SystemEnclosure\",\r\n \"RelativePath\": \"Win32_SystemEnclosure\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_SystemEnclosure\",\r\n \"IsClass\": true,\r\n \"IsInstance\": false,\r\n \"IsSingleton\": false\r\n },\r\n \"Properties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"SystemProperties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"Qualifiers\": [\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\"\r\n ],\r\n \"Site\": null,\r\n \"Container\": null,\r\n \"PSComputerName\": \"JAY-WIN-1\",\r\n \"__GENUS\": 2,\r\n \"__CLASS\": \"Win32_SystemEnclosure\",\r\n \"__SUPERCLASS\": \"CIM_Chassis\",\r\n \"__DYNASTY\": \"CIM_ManagedSystemElement\",\r\n \"__RELPATH\": \"Win32_SystemEnclosure.Tag=\\\"System Enclosure 0\\\"\",\r\n \"__PROPERTY_COUNT\": 37,\r\n \"__DERIVATION\": [\r\n \"CIM_Chassis\",\r\n \"CIM_PhysicalFrame\",\r\n \"CIM_PhysicalPackage\",\r\n \"CIM_PhysicalElement\",\r\n \"CIM_ManagedSystemElement\"\r\n ],\r\n \"__SERVER\": \"JAY-WIN-1\",\r\n \"__NAMESPACE\": \"root\\\\cimv2\",\r\n \"__PATH\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_SystemEnclosure.Tag=\\\"System Enclosure 0\\\"\",\r\n \"AudibleAlarm\": null,\r\n \"BreachDescription\": null,\r\n \"CableManagementStrategy\": null,\r\n \"Caption\": \"System Enclosure\",\r\n \"ChassisTypes\": [\r\n 1\r\n ],\r\n \"CreationClassName\": \"Win32_SystemEnclosure\",\r\n \"CurrentRequiredOrProduced\": null,\r\n \"Depth\": null,\r\n \"Description\": \"System Enclosure\",\r\n \"HeatGeneration\": null,\r\n \"Height\": null,\r\n \"HotSwappable\": null,\r\n \"InstallDate\": null,\r\n \"LockPresent\": false,\r\n \"Manufacturer\": \"Google\",\r\n \"Model\": null,\r\n \"Name\": \"System Enclosure\",\r\n \"NumberOfPowerCords\": null,\r\n \"OtherIdentifyingInfo\": null,\r\n \"PartNumber\": null,\r\n \"PoweredOn\": null,\r\n \"Removable\": null,\r\n \"Replaceable\": null,\r\n \"SecurityBreach\": null,\r\n \"SecurityStatus\": 2,\r\n \"SerialNumber\": \"\",\r\n \"ServiceDescriptions\": null,\r\n \"ServicePhilosophy\": null,\r\n \"SKU\": null,\r\n \"SMBIOSAssetTag\": \"\",\r\n \"Status\": null,\r\n \"Tag\": \"System Enclosure 0\",\r\n \"TypeDescriptions\": null,\r\n \"Version\": \"\",\r\n \"VisibleAlarm\": null,\r\n \"Weight\": null,\r\n \"Width\": null\r\n }],\r\n \"System\": {\r\n \"Scope\": {\r\n \"IsConnected\": true,\r\n \"Options\": \"System.Management.ConnectionOptions\",\r\n \"Path\": \"\\\\\\\\localhost\\\\root\\\\cimv2\"\r\n },\r\n \"Path\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_ComputerSystem.Name=\\\"JAY-WIN-1\\\"\",\r\n \"RelativePath\": \"Win32_ComputerSystem.Name=\\\"JAY-WIN-1\\\"\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_ComputerSystem\",\r\n \"IsClass\": false,\r\n \"IsInstance\": true,\r\n \"IsSingleton\": false\r\n },\r\n \"Options\": {\r\n \"UseAmendedQualifiers\": false,\r\n \"Context\": \"\",\r\n \"Timeout\": \"10675199.02:48:05.4775807\"\r\n },\r\n \"ClassPath\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_ComputerSystem\",\r\n \"RelativePath\": \"Win32_ComputerSystem\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_ComputerSystem\",\r\n \"IsClass\": true,\r\n \"IsInstance\": false,\r\n \"IsSingleton\": false\r\n },\r\n \"Properties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"SystemProperties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"Qualifiers\": [\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\"\r\n ],\r\n \"Site\": null,\r\n \"Container\": null,\r\n \"PSComputerName\": \"JAY-WIN-1\",\r\n \"__GENUS\": 2,\r\n \"__CLASS\": \"Win32_ComputerSystem\",\r\n \"__SUPERCLASS\": \"CIM_UnitaryComputerSystem\",\r\n \"__DYNASTY\": \"CIM_ManagedSystemElement\",\r\n \"__RELPATH\": \"Win32_ComputerSystem.Name=\\\"JAY-WIN-1\\\"\",\r\n \"__PROPERTY_COUNT\": 64,\r\n \"__DERIVATION\": [\r\n \"CIM_UnitaryComputerSystem\",\r\n \"CIM_ComputerSystem\",\r\n \"CIM_System\",\r\n \"CIM_LogicalElement\",\r\n \"CIM_ManagedSystemElement\"\r\n ],\r\n \"__SERVER\": \"JAY-WIN-1\",\r\n \"__NAMESPACE\": \"root\\\\cimv2\",\r\n \"__PATH\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_ComputerSystem.Name=\\\"JAY-WIN-1\\\"\",\r\n \"AdminPasswordStatus\": 3,\r\n \"AutomaticManagedPagefile\": false,\r\n \"AutomaticResetBootOption\": true,\r\n \"AutomaticResetCapability\": true,\r\n \"BootOptionOnLimit\": null,\r\n \"BootOptionOnWatchDog\": null,\r\n \"BootROMSupported\": true,\r\n \"BootStatus\": [\r\n 0,\r\n 0,\r\n 0,\r\n 127,\r\n 4,\r\n 255,\r\n 254,\r\n 0,\r\n 0,\r\n 0\r\n ],\r\n \"BootupState\": \"Normal boot\",\r\n \"Caption\": \"JAY-WIN-1\",\r\n \"ChassisBootupState\": 3,\r\n \"ChassisSKUNumber\": null,\r\n \"CreationClassName\": \"Win32_ComputerSystem\",\r\n \"CurrentTimeZone\": 0,\r\n \"DaylightInEffect\": null,\r\n \"Description\": \"AT/AT COMPATIBLE\",\r\n \"DNSHostName\": \"jay-win-1\",\r\n \"Domain\": \"WORKGROUP\",\r\n \"DomainRole\": 2,\r\n \"EnableDaylightSavingsTime\": true,\r\n \"FrontPanelResetStatus\": 3,\r\n \"HypervisorPresent\": true,\r\n \"InfraredSupported\": false,\r\n \"InitialLoadInfo\": null,\r\n \"InstallDate\": null,\r\n \"KeyboardPasswordStatus\": 3,\r\n \"LastLoadInfo\": null,\r\n \"Manufacturer\": \"Google\",\r\n \"Model\": \"Google Compute Engine\",\r\n \"Name\": \"JAY-WIN-1\",\r\n \"NameFormat\": null,\r\n \"NetworkServerModeEnabled\": true,\r\n \"NumberOfLogicalProcessors\": 2,\r\n \"NumberOfProcessors\": 1,\r\n \"OEMLogoBitmap\": null,\r\n \"OEMStringArray\": null,\r\n \"PartOfDomain\": false,\r\n \"PauseAfterReset\": -1,\r\n \"PCSystemType\": 1,\r\n \"PCSystemTypeEx\": 1,\r\n \"PowerManagementCapabilities\": null,\r\n \"PowerManagementSupported\": null,\r\n \"PowerOnPasswordStatus\": 3,\r\n \"PowerState\": 0,\r\n \"PowerSupplyState\": 3,\r\n \"PrimaryOwnerContact\": null,\r\n \"PrimaryOwnerName\": null,\r\n \"ResetCapability\": 1,\r\n \"ResetCount\": -1,\r\n \"ResetLimit\": -1,\r\n \"Roles\": [\r\n \"LM_Workstation\",\r\n \"LM_Server\",\r\n \"NT\",\r\n \"Server_NT\"\r\n ],\r\n \"Status\": \"OK\",\r\n \"SupportContactDescription\": null,\r\n \"SystemFamily\": null,\r\n \"SystemSKUNumber\": null,\r\n \"SystemStartupDelay\": null,\r\n \"SystemStartupOptions\": null,\r\n \"SystemStartupSetting\": null,\r\n \"SystemType\": \"x64-based PC\",\r\n \"ThermalState\": 3,\r\n \"TotalPhysicalMemory\": 4291149824,\r\n \"UserName\": null,\r\n \"WakeUpType\": 6,\r\n \"Workgroup\": \"WORKGROUP\"\r\n },\r\n \"SystemProduct\": {\r\n \"Scope\": {\r\n \"IsConnected\": true,\r\n \"Options\": \"System.Management.ConnectionOptions\",\r\n \"Path\": \"\\\\\\\\localhost\\\\root\\\\cimv2\"\r\n },\r\n \"Path\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_ComputerSystemProduct.IdentifyingNumber=\\\"GoogleCloud-E0C28085D6A51B8CB3CA91436F22FE83\\\",Name=\\\"Google Compute Engine\\\",Version=\\\"\\\"\",\r\n \"RelativePath\": \"Win32_ComputerSystemProduct.IdentifyingNumber=\\\"GoogleCloud-E0C28085D6A51B8CB3CA91436F22FE83\\\",Name=\\\"Google Compute Engine\\\",Version=\\\"\\\"\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_ComputerSystemProduct\",\r\n \"IsClass\": false,\r\n \"IsInstance\": true,\r\n \"IsSingleton\": false\r\n },\r\n \"Options\": {\r\n \"UseAmendedQualifiers\": false,\r\n \"Context\": \"\",\r\n \"Timeout\": \"10675199.02:48:05.4775807\"\r\n },\r\n \"ClassPath\": {\r\n \"Path\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_ComputerSystemProduct\",\r\n \"RelativePath\": \"Win32_ComputerSystemProduct\",\r\n \"Server\": \"JAY-WIN-1\",\r\n \"NamespacePath\": \"root\\\\cimv2\",\r\n \"ClassName\": \"Win32_ComputerSystemProduct\",\r\n \"IsClass\": true,\r\n \"IsInstance\": false,\r\n \"IsSingleton\": false\r\n },\r\n \"Properties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"SystemProperties\": [\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\",\r\n \"System.Management.PropertyData\"\r\n ],\r\n \"Qualifiers\": [\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\",\r\n \"System.Management.QualifierData\"\r\n ],\r\n \"Site\": null,\r\n \"Container\": null,\r\n \"PSComputerName\": \"JAY-WIN-1\",\r\n \"__GENUS\": 2,\r\n \"__CLASS\": \"Win32_ComputerSystemProduct\",\r\n \"__SUPERCLASS\": \"CIM_Product\",\r\n \"__DYNASTY\": \"CIM_Product\",\r\n \"__RELPATH\": \"Win32_ComputerSystemProduct.IdentifyingNumber=\\\"GoogleCloud-E0C28085D6A51B8CB3CA91436F22FE83\\\",Name=\\\"Google Compute Engine\\\",Version=\\\"\\\"\",\r\n \"__PROPERTY_COUNT\": 8,\r\n \"__DERIVATION\": [\r\n \"CIM_Product\"\r\n ],\r\n \"__SERVER\": \"JAY-WIN-1\",\r\n \"__NAMESPACE\": \"root\\\\cimv2\",\r\n \"__PATH\": \"\\\\\\\\JAY-WIN-1\\\\root\\\\cimv2:Win32_ComputerSystemProduct.IdentifyingNumber=\\\"GoogleCloud-E0C28085D6A51B8CB3CA91436F22FE83\\\",Name=\\\"Google Compute Engine\\\",Version=\\\"\\\"\",\r\n \"Caption\": \"Computer System Product\",\r\n \"Description\": \"Computer System Product\",\r\n \"IdentifyingNumber\": \"GoogleCloud-E0C28085D6A51B8CB3CA91436F22FE83\",\r\n \"Name\": \"Google Compute Engine\",\r\n \"SKUNumber\": null,\r\n \"UUID\": \"8580C2E0-A5D6-8C1B-B3CA-91436F22FE83\",\r\n \"Vendor\": \"Google\",\r\n \"Version\": \"\"\r\n }\r\n}\r\n" stderr = "" exit_status = 0 diff --git a/providers/os/resources/smbios/win.go b/providers/os/resources/smbios/win.go index b2c31a870..01ed320d2 100644 --- a/providers/os/resources/smbios/win.go +++ b/providers/os/resources/smbios/win.go @@ -15,11 +15,11 @@ import ( ) const smbiosWindowsScript = ` -$bios = Get-WmiObject -class Win32_Bios -$baseboard = Get-WmiObject Win32_BaseBoard -$chassis = @(Get-WmiObject Win32_SystemEnclosure) -$sys = Get-WmiObject Win32_ComputerSystem -$sysProduct = Get-WmiObject Win32_ComputerSystemProduct +$bios = Get-CimInstance -ClassName Win32_Bios +$baseboard = Get-CimInstance -ClassName Win32_BaseBoard +$chassis = @(Get-CimInstance -ClassName Win32_SystemEnclosure) +$sys = Get-CimInstance -ClassName Win32_ComputerSystem +$sysProduct = Get-CimInstance -ClassName Win32_ComputerSystemProduct $smbios = New-Object -TypeName PSObject $smbios | Add-Member -MemberType NoteProperty -Value $bios -Name Bios