Freigeben über


PowerShell でバッテリーのモデルを調べる

?????????????????(???)??????????????????????????????????????PowerShell ? WMI ???????????????????????????

PS C:\> Get-WmiObject win32_battery

??????????????????????????????????? name ???????????????

PS C:\> (Get-WmiObject win32_battery).name

??????????????????????????????????????????

????: Win32_Battery class [WMI]

?????????????????????????????????????????????????

Powershell, Has my Dell a dangerous battery Part 2 ?
https://mow001.blogspot.com/2006/08/powershell-has-my-dell-dan_115705284548014997.html

CheckBattery.ps1 ??????????????????????????????????????????????????????WMI ??????????????????????????????

??????????????????????????

  • $wc = new new-object net.webclient
  • $r = [regex]" ([A-Z0-9]..