馬上加入Android 台灣中文網,立即免費下載應用遊戲。
您需要 登錄 才可以下載或查看,沒有帳號?註冊
x
【軟體名稱】:Windows資訊顯示器 v4 (樓主自製+完全開源)
【軟體版本】:v4
【版本類型】:樓主自製+完全開源版
【軟體語言】:繁體中文
【檔案大小】:11.5 KB
【作業系統】:Windows 10 以上 (虛擬機、舊版、精簡版 Windows 可能會無法正常執行)
----------------------------------------------------------------------------------------------
【軟體介紹】:
想知道 Windows 的詳細資訊,但是不知如何查看?
不想要為了"一時的好奇心"而無奈安裝大型軟體?
那你就來對帖啦!
樓主幫您做了一個bat,讓您可以一鍵查看Windows的詳細資訊,而且不只如此,
還完全開源,讓您可以一覽無餘、安心的使用此程式。
(建議您只在apk.tw下載此程式,因為其他論壇的都不是我發的)
----------------------------------------------------------------------------------------------
【v3 與 v4 的差別】:
1. 新增"查看網路mac位址"功能 (用戶"eddie6721"提供此想法)。
2. 新增"查看主機板資訊"功能 (用戶"ericwu0323"提供此想法)。
3. 修改"硬碟資訊"的顯示格式 (用戶"o夢天使o"提供此想法)。
4. 修復"查看 Windows 激活金鑰"功能的問題。
如果有任何建議或是問題,歡迎在下方留言,我會盡快回覆。
----------------------------------------------------------------------------------------------
【軟體內部程式碼】:
- @echo off
- title Win資訊顯示器(by hone7576)
- cls
- powershell -Command ^
- "Write-Host '歡迎使用 Windows資訊顯示器 v4' -ForegroundColor DarkGreen; " ^
- "Write-Host ''; " ^
- "Write-Host '╔═══════════════════════════════。繼續使用即代表同意下列條款。═══════════════════════════════╗' -ForegroundColor Red; " ^
- "Write-Host '║ ║' -ForegroundColor Red; " ^
- "Write-Host '║ 1.此程式由hone7576開發,保證安全無毒,而且開源免費,如果您是付費獲得的,就代表您被騙了! ║' -ForegroundColor Red; " ^
- "Write-Host '║ ║' -ForegroundColor Red; " ^
- "Write-Host '║ 2.本人只會將此程式發布到apk.tw論壇,其他來源均為轉載。 ║' -ForegroundColor Red; " ^
- "Write-Host '║ ║' -ForegroundColor Red; " ^
- "Write-Host '║ 3.此程式僅供廣大網友們能夠 『更加方便的查看 Windows 的各種資訊』, ║' -ForegroundColor Red; " ^
- "Write-Host '║ 禁止用於其他用途(例如:盜取他人金鑰),否則後果自負。 ║' -ForegroundColor Red; " ^
- "Write-Host '║ ║' -ForegroundColor Red; " ^
- "Write-Host '║ 4.此程式需要使用較新的 Windows 功能,舊版 Windows 可能無法使用此程式。 ║' -ForegroundColor Red; " ^
- "Write-Host '║ ║' -ForegroundColor Red; " ^
- "Write-Host '║ 5.除了此條款之外,歡迎盡情修改此程式。 ║' -ForegroundColor Red; " ^
- "Write-Host '║ ║' -ForegroundColor Red; " ^
- "Write-Host '║ 6.如果您未經hone7576許可,禁止修改或刪除此條款。 ║' -ForegroundColor Red; " ^
- "Write-Host '║ ║' -ForegroundColor Red; " ^
- "Write-Host '║ 7.hone7576保留修改此條款之權利。 ║' -ForegroundColor Red; " ^
- "Write-Host '║ ║' -ForegroundColor Red; " ^
- "Write-Host '╚═══════════════════════════════。繼續使用即代表同意上述條款。═══════════════════════════════╝' -ForegroundColor Red; " ^
- "Write-Host ''; " ^
- "Write-Host ''; " ^
- "Write-Host '3秒後可以跳過此頁面。'; " ^
- "Start-Sleep -Seconds 3; " ^
- "Write-Host ''; " ^
- "Write-Host '您可以跳過了,按下任意按鍵以跳過此頁面....' -ForegroundColor DarkGreen"
- pause >nul
- cls
- echo 正在收集 Windows 的資訊....
- powershell -Command ^
- "$windows_type = ((Get-WmiObject -Class Win32_OperatingSystem).Caption -replace 'Microsoft ', '').Trim(); " ^
- "$windows_version = (Get-WmiObject -Class Win32_OperatingSystem).Version; " ^
- "$build_number = (Get-WmiObject -Class Win32_OperatingSystem).BuildNumber; " ^
- "if ([Environment]::Is64BitOperatingSystem) { $os_arch = '64 位元' } else { $os_arch = '32 位元' }; " ^
- "$country_code = (Get-WmiObject -Class Win32_OperatingSystem).CountryCode; " ^
- "$service_pack = (Get-WmiObject -Class Win32_OperatingSystem).CSDVersion; " ^
- "$install_date_temp = [Management.ManagementDateTimeConverter]::ToDateTime((Get-WmiObject -Class Win32_OperatingSystem).InstallDate); " ^
- "$install_date = '{0}年{1}月{2}日' -f $install_date_temp.Year, $install_date_temp.Month, $install_date_temp.Day; " ^
- "$last_boot_temp = [Management.ManagementDateTimeConverter]::ToDateTime((Get-WmiObject -Class Win32_OperatingSystem).LastBootUpTime); " ^
- "$last_boot = '{0}年{1}月{2}日' -f $last_boot_temp.Year, $last_boot_temp.Month, $last_boot_temp.Day; " ^
- "$manufacturer = (Get-WmiObject -Class Win32_ComputerSystem).Manufacturer.Trim(); " ^
- "$model = (Get-WmiObject -Class Win32_ComputerSystem).Model.Trim(); " ^
- "$baseboard = Get-WmiObject -Class Win32_BaseBoard; " ^
- "$bios_version = (Get-WmiObject -Class Win32_BIOS).SMBIOSBIOSVersion.Trim(); " ^
- "$cpu_name_temp = (Get-WmiObject -Class Win32_Processor).Name.Trim(); " ^
- "$cpu_name = [string]::Join('、', $cpu_name_temp); " ^
- "$gpu_name_temp = Get-WmiObject -Class Win32_VideoController | ForEach-Object { $_.Caption.Trim() }; " ^
- "$gpu_name = [string]::Join('、', $gpu_name_temp); " ^
- "$ram_size_B = (Get-WmiObject -Class Win32_ComputerSystem).TotalPhysicalMemory; " ^
- "if ($ram_size_B) { $ram_size_GB = [math]::Round($ram_size_B / 1GB, 2) }; " ^
- "$product_key = (Get-WmiObject -Class SoftwareLicensingService).OA3xOriginalProductKey; " ^
- "if (-not $product_key) { $product_key = try {Get-ItemProperty 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SoftwareProtectionPlatform' -Name BackupProductKeyDefault | ForEach-Object {$_.BackupProductKeyDefault}} catch { $null }; " ^
- "if (-not $product_key) { $product_key = cmd /c wmic path softwarelicensingservice get OA3xOriginalProductKey | findstr /v OA3xOriginalProductKey | findstr /v Value } }; " ^
- "cls; " ^
- "if ($windows_type) { Write-Host 'Windows 版本 :' $windows_type } else { Write-Host 'Windows 版本 : (未知)' }" ^
- "if ($windows_version) { Write-Host 'Windows 詳細版本 :' $windows_version } else { Write-Host 'Windows 詳細版本 : (未知)' }; " ^
- "if ($build_number) { Write-Host '建構號 :' $build_number } else { Write-Host '建構號 : (未知)' }; " ^
- "if ($os_arch) { Write-Host '系統架構 :' $os_arch } else { Write-Host '系統架構 : (未知)' }; " ^
- "if ($country_code) { Write-Host '國家代號 :' $country_code } else { Write-Host '國家代號 : (未知)' }; " ^
- "if ($service_pack) { Write-Host '服務包版本 :' $service_pack } else { Write-Host '服務包版本 : 無' }; " ^
- "Write-Host ''; " ^
- "if ($product_key) { Write-Host 'Windows 激活金鑰 :' $product_key -ForegroundColor Blue } else { Write-Host 'Windows 激活金鑰 : 無法偵測到金鑰,您的 Windows 可能尚未激活。' }; " ^
- "Write-Host ''; " ^
- "Write-Host '═════════════════════════════════════════════════════════════════════════╣'; " ^
- "Write-Host ''; " ^
- "Write-Host '系統安裝(更新)日期 :' $install_date; " ^
- "Write-Host '最近一次的開機時間 :' $last_boot; " ^
- "Write-Host ''; " ^
- "Write-Host '═════════════════════════════════════════════════════════════════════════╣'; " ^
- "Write-Host ''; " ^
- "if ($manufacturer) { Write-Host '電腦製造商 :' $manufacturer } else { Write-Host '電腦製造商 : 無,您的電腦可能不是套裝機。' }; " ^
- "if ($model) { Write-Host '電腦型號 :' $model } else { Write-Host '電腦型號 : 無,您的電腦可能不是套裝機。' }; " ^
- "Write-Host ''; " ^
- "Write-Host '═════════════════════════════════════════════════════════════════════════╣'; " ^
- "Write-Host ''; " ^
- "if ($baseboard) { Write-Host '主機板製造商 :' $($baseboard.Manufacturer.Trim()); Write-Host ' 主機板型號 :' $($baseboard.Product.Trim()); Write-Host ' 主機板版本 :' $($baseboard.Version.Trim()); Write-Host ' 硬體編號 :' $($baseboard.SerialNumber.Trim()); } else { Write-Host '主機板詳細資訊 : (未知)'}; " ^
- "if ($bios_version) { Write-Host ' BIOS 版本 :' $bios_version } else { Write-Host 'BIOS 版本 : (未知)' }; " ^
- "Write-Host ''; " ^
- "Write-Host '════════════════════════════════════════════════════════════════════════════════════════════════════════════╣'; " ^
- "Write-Host ''; " ^
- "if ($cpu_name) { Write-Host '處理器型號 :' $cpu_name } else { Write-Host '處理器型號 : (未知)' }; " ^
- "Write-Host ''; " ^
- "if ($gpu_name) { Write-Host '顯示卡型號 :' $gpu_name } else { Write-Host '顯示卡型號 : (未知)' }; " ^
- "Write-Host ''; " ^
- "Write-Host '════════════════════════════════════════════════════════════════════════════════════════════════════════════╣'; " ^
- "Write-Host ''; " ^
- "Get-PhysicalDisk | ForEach-Object { '硬碟型號 : ' + $_.FriendlyName + ' 【總容量約為 ' + [math]::Round($_.Size / 1GB, 2) + ' GB】' }; " ^
- "Write-Host ''; " ^
- "Get-Volume | Where-Object { $_.DriveLetter } | ForEach-Object { '硬碟資訊 : ' + $_.DriveLetter + ': 總容量約為 ' + [math]::Round($_.Size / 1GB, 2) + ' GB 【已使用 ' + [math]::Round(($_.Size - $_.SizeRemaining) / 1GB, 2) + ' GB,剩餘 ' + [math]::Round($_.SizeRemaining / 1GB, 2) + ' GB】' }; " ^
- "Write-Host ''; " ^
- "Write-Host '════════════════════════════════════════════════════════════════════════════════════════════════════════════╣'; " ^
- "Write-Host ''; " ^
- "if ($ram_size_GB) { Write-Host '記憶體總容量 :' '大約為' $ram_size_GB 'GB (' $ram_size_B 'B)' } else { Write-Host '記憶體容量 : (未知)' }; " ^
- "Get-WmiObject -Class Win32_PhysicalMemory | ForEach-Object { $cap=[math]::Round($_.Capacity/1GB,2); Write-Host ''; Write-Host '記憶體插槽 :' $_.DeviceLocator; Write-Host ' 硬體製造商 :' $_.Manufacturer; Write-Host ' 記憶體容量 :' $cap 'GB'; if ($_.Speed) { Write-Host ' 記憶體時脈 :' $_.Speed 'MHz' } else { Write-Host ' 記憶體時脈 : (未知)' }; Write-Host ' 硬體編號 :' $_.PartNumber; $smbiosType=$_.SMBIOSMemoryType; switch ($smbiosType) { 0 { $memType = '未知' } 1 { $memType = 'Other' } 2 { $memType = 'DRAM' } 3 { $memType = 'Synchronous DRAM' } 4 { $memType = 'Cache DRAM' } 5 { $memType = 'EDO' } 6 { $memType = 'EDR' } 7 { $memType = 'VRAM' } 8 { $memType = 'SRAM' } 9 { $memType = 'RAM' } 10 { $memType = 'ROM' } 11 { $memType = 'Flash' } 12 { $memType = 'EEPROM' } 13 { $memType = 'FEPROM' } 14 { $memType = 'EPROM' } 15 { $memType = 'CDRAM' } 16 { $memType = '3DRAM' } 17 { $memType = 'SDRAM' } 18 { $memType = 'SGRAM' } 19 { $memType = 'RDRAM' } 20 { $memType = 'DDR' } 21 { $memType = 'DDR2' } 22 { $memType = 'DDR2 FB-DIMM' } 24 { $memType = 'DDR3' } 26 { $memType = 'DDR4' } 34 { $memType = 'DDR5' } default { $memType = '未知 (代號 :' + $smbiosType + ')' } }; Write-Host ' 記憶體規格 :' $memType }; " ^
- "Write-Host ''; " ^
- "Write-Host '═════════════════════════════════════════════════════════════════════════╣'; " ^
- "Write-Host ''; " ^
- "Get-NetIPConfiguration | ForEach-Object { if ($_.IPv4Address) { Write-Host '網路適配器 :'$_.InterfaceAlias -ForegroundColor Yellow; Write-Host ' MAC 位址 :' $_.NetAdapter.MacAddress; Write-Host ' IPv4 位址 :'($_.IPv4Address.IPAddress); } if ($_.IPv4DefaultGateway) { Write-Host ' 預設閘道 :'$_.IPv4DefaultGateway.NextHop; } Write-Host '' }; " ^
- "Write-Host '═════════════════════════════════════════════════════════════════════════╣'; " ^
- "Write-Host ''; " ^
- "Write-Host '如要離開此程式,請直接關閉此視窗....'"
- :pause
- pause >nul
- goto pause
複製代碼
----------------------------------------------------------------------------------------------
【截圖】:
|
評分
-
查看全部評分

|