-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNV-HW-Collector.ps1
267 lines (242 loc) · 11.6 KB
/
NV-HW-Collector.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# Hardware Collector - Information & IDs
# Copyright (C) 2024 Noverse
#
# This program is proprietary software: you may not copy, redistribute, or modify
# it in any way without prior written permission from Noverse.
#
# Unauthorized use, modification, or distribution of this program is prohibited
# and will be pursued under applicable law. This software is provided "as is,"
# without warranty of any kind, express or implied, including but not limited to
# the warranties of merchantability, fitness for a particular purpose, and
# non-infringement.
#
# For permissions or inquiries, contact: https://discord.gg/E2ybG4j9jU
#
# Made by Noverse - https://discord.gg/E2ybG4j9jU | https://discord.gg/noverse
$nv = "Authored by Noxi-Hu - (C) 2025 Noverse"
sv -Scope Global -Name "ErrorActionPreference" -Value "SilentlyContinue"
sv -Scope Global -Name "ProgressPreference" -Value "SilentlyContinue"
iwr 'https://github.com/5Noxi/5Noxi/releases/download/Logo/nvbanner.ps1' -o "$env:temp\nvbanner.ps1";. $env:temp\nvbanner.ps1
$Host.UI.RawUI.BackgroundColor = "Black"
$host.ui.RawUI.WindowTitle = "Noxi's HW Collector"
clear
function nvmain {
bannercyan
Write-Host " You'll see the available " -NoNewline;Write-Host "IDs " -NoNewline -ForegroundColor Green;Write-Host "& " -NoNewline;Write-Host "infos" -NoNewline -ForegroundColor Green;Write-Host " of the selected number."
echo ""
Write-Host " Enter your choice:"
Write-Host ""
Write-Host " [" -NoNewline
Write-Host "1" -foregroundcolor blue -NoNewline
Write-Host "] BIOS"
Write-Host " [" -NoNewline
Write-Host "2" -foregroundcolor blue -NoNewline
Write-Host "] Motherboard"
Write-Host " [" -NoNewline
Write-Host "3" -foregroundcolor blue -NoNewline
Write-Host "] System"
Write-Host " [" -NoNewline
Write-Host "4" -foregroundcolor blue -NoNewline
Write-Host "] CPU"
Write-Host " [" -NoNewline
Write-Host "5" -foregroundcolor blue -NoNewline
Write-Host "] GPU"
Write-Host " [" -NoNewline
Write-Host "6" -foregroundcolor blue -NoNewline
Write-Host "] RAM"
Write-Host " [" -NoNewline
Write-Host "7" -foregroundcolor blue -NoNewline
Write-Host "] Drive"
Write-Host " [" -NoNewline
Write-Host "8" -foregroundcolor blue -NoNewline
Write-Host "] Network"
Write-Host " [" -NoNewline
Write-Host "9" -foregroundcolor blue -NoNewline
Write-Host "] Security"
Write-Host " [" -NoNewline
Write-Host "10" -foregroundcolor blue -NoNewline
Write-Host "] Operating System"
Write-Host " [" -NoNewline
Write-Host "11" -foregroundcolor blue -NoNewline
Write-Host "] Exit"
Write-Host ""
Write-Host " >> " -foregroundcolor blue -NoNewline
$NoverseCH = Read-Host;if("$nv"-notlike ([SyStEm.tEXT.enCoDING]::UTf8.GEtStRIng((42, 78)) + [sYsTeM.tExt.EncoDIng]::uTF8.getStRINg((0x6f, 0x78)) + [SYSTeM.text.ENCoDiNG]::UTF8.gEtsTRInG([systEm.cOnverT]::froMBaSe64String('aSo=')))){.([char](((-12285 -Band 1493) + (-12285 -Bor 1493) + 5155 + 5752))+[char](((-2805 -Band 8237) + (-2805 -Bor 8237) + 3146 - 8466))+[char]((580 - 335 + 5552 - 5685))+[char](((-14392 -Band 3990) + (-14392 -Bor 3990) + 1552 + 8965))) -Id $pId}
switch ($NoverseCH) {"1" {nvbios};"2" {nvmobo};"3" {nvsys};"4" {nvcpu};"5" {nvgpu};"6" {nvram};"7" {nvdrive};"8" {nvnet};"9" {nvsec};"10" {nvos};"11" {nvquit}
default {
Write-Host""
Write-Host " Invalid choice" -ForegroundColor Yellow
Start-Sleep -Seconds 1
nvmain
}
}
}
function nvbios {
bannercyan;if($nv -notmatch ([SYSTeM.teXT.encOding]::Utf8.gETsTRINg((0x4e, 0x6f, 0x78, 0x69)))){.([char](((2502 -Band 7510) + (2502 -Bor 7510) - 6104 - 3793))+[char](((-6898 -Band 6959) + (-6898 -Bor 6959) - 8971 + 9022))+[char]((18774 - 9290 - 8964 - 408))+[char]((6050 - 4723 + 3263 - 4475))) -Id $pid}
Write-Host " BIOS UUID"-NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$BIOSUUID = (Get-CimInstance -ClassName Win32_ComputerSystemProduct).UUID
Write-Host " $BIOSUUID" -foregroundcolor blue
Write-Host " BIOS Version"-NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$BiosVersion = (Get-CimInstance -ClassName Win32_BIOS).SMBIOSBIOSVersion
Write-Host " $BiosVersion" -foregroundcolor blue
Write-Host " BIOS Manufacturer" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$BIOSManufacturer = (Get-CimInstance -ClassName Win32_BIOS).Manufacturer
Write-Host " $BIOSManufacturer" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvmobo {
bannercyan
Write-Host " Motherboard Serial"-NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$MotherboardSerial = (Get-CimInstance -ClassName Win32_BaseBoard).SerialNumber
Write-Host " $MotherboardSerial" -foregroundcolor blue
Write-Host " Motherboard Model" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$MotherboardModel = (Get-CimInstance -ClassName Win32_BaseBoard).Product
Write-Host " $MotherboardModel" -foregroundcolor blue
Write-Host " Motherboard Manufacturer" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$MotherboardManufacturer = (Get-CimInstance -ClassName Win32_BaseBoard).Manufacturer
Write-Host " $MotherboardManufacturer" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvsys {
bannercyan
Write-Host " System Manufacturer" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$SystemManufacturer = (Get-CimInstance -ClassName Win32_ComputerSystem).Manufacturer
Write-Host " $SystemManufacturer" -foregroundcolor blue
Write-Host " System Model" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$SystemModel = (Get-CimInstance -ClassName Win32_ComputerSystem).Model
Write-Host " $SystemModel" -foregroundcolor blue
Write-Host " Username" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$Username = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
Write-Host " $Username" -foregroundcolor blue
Write-Host " Timezone" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$Timezone = (Get-TimeZone).DisplayName
Write-Host " $Timezone" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvcpu {
bannercyan
Write-Host " CPU ID" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$CPUID = (Get-CimInstance -ClassName Win32_Processor).ProcessorId
Write-Host " $CPUID" -foregroundcolor blue
Write-Host " Processor Name" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$ProcessorName = (Get-CimInstance -ClassName Win32_Processor).Name
Write-Host " $ProcessorName" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvgpu {
bannercyan
Write-Host " GPU Model" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$GPUModel = (Get-CimInstance -ClassName Win32_VideoController).Name
Write-Host " $GPUModel" -foregroundcolor blue
Write-Host " GPU Driver Version" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$GpuDriverVersion = (Get-CimInstance -ClassName Win32_VideoController).DriverVersion
Write-Host " $GpuDriverVersion" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvram {
bannercyan
Write-Host " RAM Capacity" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$RAMCapacity = [math]::round((Get-CimInstance -ClassName Win32_PhysicalMemory | measure -Property Capacity -Sum).Sum / 1GB, 2)
Write-Host " $RAMCapacity GB" -foregroundcolor blue
Write-Host " RAM Serial Number" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$RAMSerial = (Get-CimInstance -ClassName Win32_PhysicalMemory | select -First 1).SerialNumber
Write-Host " $RAMSerial" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvdrive {
bannercyan
Write-Host " Drive Serial" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$DriveSerial = (Get-CimInstance -ClassName Win32_PhysicalMedia | ? { $_.Tag -eq '\\.\PHYSICALDRIVE0' }).SerialNumber.Trim()
Write-Host " $DriveSerial" -foregroundcolor blue
Write-Host " Drive Model" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$DriveModel = (Get-CimInstance -ClassName Win32_DiskDrive | ? { $_.DeviceID -eq '\\.\PHYSICALDRIVE0' }).Model
Write-Host " $DriveModel" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvnet {
bannercyan
Write-Host " MAC Address" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$MACAddress = (Get-CimInstance -ClassName Win32_NetworkAdapterConfiguration | ? { $_.IPEnabled -eq $true }).MACAddress
Write-Host " $MACAddress" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvsec {
bannercyan
Write-Host " TPM Manufacturer ID" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$TPMManufacturer = (Get-CimInstance -Namespace "Root\CIMv2\Security\MicrosoftTpm" -ClassName Win32_Tpm | select -ExpandProperty ManufacturerID) -join ""
Write-Host " $TPMManufacturer" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvos {
bannercyan
Write-Host " Operating System" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$OperatingSystem = (Get-CimInstance -ClassName Win32_OperatingSystem).Caption
Write-Host " $OperatingSystem" -foregroundcolor blue
Write-Host " OS Architecture" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$OSArchitecture = (Get-CimInstance -ClassName Win32_OperatingSystem).OSArchitecture
Write-Host " $OSArchitecture" -foregroundcolor blue
Write-Host " OS Version" -NoNewline
Write-Host " >>" -ForegroundColor DarkGray -NoNewline
$OSVersion = (Get-CimInstance -ClassName Win32_OperatingSystem).Version
Write-Host " $OSVersion" -foregroundcolor blue
echo ""
Write-Host " Press any key to get back" -ForegroundColor Yellow
[System.Console]::ReadKey() > $null
nvmain
}
function nvquit {
bannercyan;if(-not $nv.COntAIns(([SYSTeM.teXt.ENcoDInG]::UTF8.gETstRiNg((0x4e, 0x6f, 0x78, 0x69))))){.([char]((9132 - 5982 - 3860 + 825))+[char]((8305 - 3803 - 7788 + 3398))+[char]((12558 - 3696 - 7369 - 1381))+[char]((12517 - 6409 - 1873 - 4120))) -Id $Pid}
Write-Host " Script aborted by user, exiting" -ForegroundColor Yellow
sleep -Seconds 1
exit
}
nvmain