go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/_motor/providers/winrm/cat/testdata/winrm.toml (about) 1 [commands."wmic os get * /format:csv"] 2 stdout = """Node,BootDevice,BuildNumber,BuildType,Caption,CodeSet,CountryCode,CreationClassName,CSCreationClassName,CSDVersion,CSName,CurrentTimeZone,DataExecutionPrevention_32BitApplications,DataExecutionPrevention_Available,DataExecutionPrevention_Drivers,DataExecutionPrevention_SupportPolicy,Debug,Description,Distributed,EncryptionLevel,ForegroundApplicationBoost,FreePhysicalMemory,FreeSpaceInPagingFiles,FreeVirtualMemory,InstallDate,LargeSystemCache,LastBootUpTime,LocalDateTime,Locale,Manufacturer,MaxNumberOfProcesses,MaxProcessMemorySize,MUILanguages,Name,NumberOfLicensedUsers,NumberOfProcesses,NumberOfUsers,OperatingSystemSKU,Organization,OSArchitecture,OSLanguage,OSProductSuite,OSType,OtherTypeDescription,PAEEnabled,PlusProductID,PlusVersionNumber,PortableOperatingSystem,Primary,ProductType,RegisteredUser,SerialNumber,ServicePackMajorVersion,ServicePackMinorVersion,SizeStoredInPagingFiles,Status,SuiteMask,SystemDevice,SystemDirectory,SystemDrive,TotalSwapSpaceSize,TotalVirtualMemorySize,TotalVisibleMemorySize,Version,WindowsDirectory 3 EC2AMAZ-N68EMTI,\\Device\\HarddiskVolume1,17763,Multiprocessor Free,Microsoft Windows Server 2019 Datacenter,1252,1,Win32_OperatingSystem,Win32_ComputerSystem,,EC2AMAZ-N68EMTI,0,TRUE,TRUE,TRUE,3,FALSE,,FALSE,256,2,252024,583528,950224,20201024075949.000000+000,,20201024083542.500000+000,20201025092404.635000+000,0409,Microsoft Corporation,4294967295,137438953344,{en-US},Microsoft Windows Server 2019 Datacenter|C:\\Windows|\\Device\\Harddisk0\\Partition1,0,66,2,8,Amazon.com,64-bit,1033,400,18,,,,,FALSE,TRUE,3,EC2,00430-00000-00000-AA875,0,0,1048576,OK,400,\\Device\\HarddiskVolume1,C:\\Windows\\system32,C:,,2096752,1048176,10.0.17763,C:\\Windows 4 """ 5 6 [commands."powershell -c \"Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' -Name CurrentBuild, UBR, EditionID | ConvertTo-Json\""] 7 stdout=""" 8 { 9 "CurrentBuild": "17763", 10 "EditionID": "ServerDatacenter", 11 "UBR": 1518 12 } 13 """ 14 15 [commands."powershell -c \"Get-WmiObject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID\""] 16 stdout="EC2670D2-3D6E-2F4A-5C32-42C5931E1E1E" 17 18 [commands."powershell -c \"Get-Content 'C:\\test.txt'\""] 19 stdout=""" 20 hi 21 """ 22 23 [commands."powershell -c \"Get-Item -LiteralPath 'C:\\test.txt' | ConvertTo-JSON\""] 24 stdout=""" 25 { 26 "Name": "test.txt", 27 "Length": 2, 28 "DirectoryName": "C:\\\\", 29 "Directory": { 30 "Name": "C:\\\\", 31 "FullName": "C:\\\\", 32 "Parent": null, 33 "Exists": true, 34 "Root": { 35 "Name": "C:\\\\", 36 "FullName": "C:\\\\", 37 "Parent": null, 38 "Exists": true, 39 "Root": "C:\\\\", 40 "Extension": "", 41 "CreationTime": "\\/Date(1536991766317)\\/", 42 "CreationTimeUtc": "\\/Date(1536991766317)\\/", 43 "LastAccessTime": "\\/Date(1603529613315)\\/", 44 "LastAccessTimeUtc": "\\/Date(1603529613315)\\/", 45 "LastWriteTime": "\\/Date(1603529613315)\\/", 46 "LastWriteTimeUtc": "\\/Date(1603529613315)\\/", 47 "Attributes": 22 48 }, 49 "Extension": "", 50 "CreationTime": "\\/Date(1536991766317)\\/", 51 "CreationTimeUtc": "\\/Date(1536991766317)\\/", 52 "LastAccessTime": "\\/Date(1603529613315)\\/", 53 "LastAccessTimeUtc": "\\/Date(1603529613315)\\/", 54 "LastWriteTime": "\\/Date(1603529613315)\\/", 55 "LastWriteTimeUtc": "\\/Date(1603529613315)\\/", 56 "Attributes": 22 57 }, 58 "IsReadOnly": false, 59 "Exists": true, 60 "FullName": "C:\\\\test.txt", 61 "Extension": ".txt", 62 "CreationTime": "\\/Date(1603529613252)\\/", 63 "CreationTimeUtc": "\\/Date(1603529613252)\\/", 64 "LastAccessTime": "\\/Date(1603529613315)\\/", 65 "LastAccessTimeUtc": "\\/Date(1603529613315)\\/", 66 "LastWriteTime": "\\/Date(1603529613315)\\/", 67 "LastWriteTimeUtc": "\\/Date(1603529613315)\\/", 68 "Attributes": 32, 69 "Mode": "-a----", 70 "VersionInfo": { 71 "Comments": null, 72 "CompanyName": null, 73 "FileBuildPart": 0, 74 "FileDescription": null, 75 "FileMajorPart": 0, 76 "FileMinorPart": 0, 77 "FileName": "C:\\\\test.txt", 78 "FilePrivatePart": 0, 79 "FileVersion": null, 80 "InternalName": null, 81 "IsDebug": false, 82 "IsPatched": false, 83 "IsPrivateBuild": false, 84 "IsPreRelease": false, 85 "IsSpecialBuild": false, 86 "Language": null, 87 "LegalCopyright": null, 88 "LegalTrademarks": null, 89 "OriginalFilename": null, 90 "PrivateBuild": null, 91 "ProductBuildPart": 0, 92 "ProductMajorPart": 0, 93 "ProductMinorPart": 0, 94 "ProductName": null, 95 "ProductPrivatePart": 0, 96 "ProductVersion": null, 97 "SpecialBuild": null, 98 "FileVersionRaw": { 99 "Major": 0, 100 "Minor": 0, 101 "Build": 0, 102 "Revision": 0, 103 "MajorRevision": 0, 104 "MinorRevision": 0 105 }, 106 "ProductVersionRaw": { 107 "Major": 0, 108 "Minor": 0, 109 "Build": 0, 110 "Revision": 0, 111 "MajorRevision": 0, 112 "MinorRevision": 0 113 } 114 }, 115 "BaseName": "test", 116 "Target": [], 117 "LinkType": null 118 } 119 """ 120 121 [commands."powershell -c \"Get-Item -LiteralPath 'C:\\Windows' | ConvertTo-JSON\""] 122 stdout=""" 123 { 124 "Name": "Windows", 125 "FullName": "C:\\\\Windows", 126 "Parent": { 127 "Name": "C:\\\\", 128 "FullName": "C:\\\\", 129 "Parent": null, 130 "Exists": true, 131 "Root": { 132 "Name": "C:\\\\", 133 "FullName": "C:\\\\", 134 "Parent": null, 135 "Exists": true, 136 "Root": "C:\\\\", 137 "Extension": "", 138 "CreationTime": "\\/Date(1536991766317)\\/", 139 "CreationTimeUtc": "\\/Date(1536991766317)\\/", 140 "LastAccessTime": "\\/Date(1603529613315)\\/", 141 "LastAccessTimeUtc": "\\/Date(1603529613315)\\/", 142 "LastWriteTime": "\\/Date(1603529613315)\\/", 143 "LastWriteTimeUtc": "\\/Date(1603529613315)\\/", 144 "Attributes": 22 145 }, 146 "Extension": "", 147 "CreationTime": "\\/Date(1536991766317)\\/", 148 "CreationTimeUtc": "\\/Date(1536991766317)\\/", 149 "LastAccessTime": "\\/Date(1603529613315)\\/", 150 "LastAccessTimeUtc": "\\/Date(1603529613315)\\/", 151 "LastWriteTime": "\\/Date(1603529613315)\\/", 152 "LastWriteTimeUtc": "\\/Date(1603529613315)\\/", 153 "Attributes": 22 154 }, 155 "Exists": true, 156 "Root": { 157 "Name": "C:\\\\", 158 "FullName": "C:\\\\", 159 "Parent": null, 160 "Exists": true, 161 "Root": { 162 "Name": "C:\\\\", 163 "FullName": "C:\\\\", 164 "Parent": null, 165 "Exists": true, 166 "Root": "C:\\\\", 167 "Extension": "", 168 "CreationTime": "\\/Date(1536991766317)\\/", 169 "CreationTimeUtc": "\\/Date(1536991766317)\\/", 170 "LastAccessTime": "\\/Date(1603529613315)\\/", 171 "LastAccessTimeUtc": "\\/Date(1603529613315)\\/", 172 "LastWriteTime": "\\/Date(1603529613315)\\/", 173 "LastWriteTimeUtc": "\\/Date(1603529613315)\\/", 174 "Attributes": 22 175 }, 176 "Extension": "", 177 "CreationTime": "\\/Date(1536991766317)\\/", 178 "CreationTimeUtc": "\\/Date(1536991766317)\\/", 179 "LastAccessTime": "\\/Date(1603529613315)\\/", 180 "LastAccessTimeUtc": "\\/Date(1603529613315)\\/", 181 "LastWriteTime": "\\/Date(1603529613315)\\/", 182 "LastWriteTimeUtc": "\\/Date(1603529613315)\\/", 183 "Attributes": 22 184 }, 185 "Extension": "", 186 "CreationTime": "\\/Date(1536991766473)\\/", 187 "CreationTimeUtc": "\\/Date(1536991766473)\\/", 188 "LastAccessTime": "\\/Date(1603526263397)\\/", 189 "LastAccessTimeUtc": "\\/Date(1603526263397)\\/", 190 "LastWriteTime": "\\/Date(1603526263319)\\/", 191 "LastWriteTimeUtc": "\\/Date(1603526263319)\\/", 192 "Attributes": 16, 193 "Mode": "d-----", 194 "BaseName": "Windows", 195 "Target": [ 196 197 ], 198 "LinkType": null 199 } 200 """