Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  Portable  Battery  Information  

 Content of List Portable Battery Information.ps1
MD5 Hash: CB89B880541DE531C42DF0C1947C76A0
$strComputer = "."

$colItems = get-wmiobject -class "Win32_PortableBattery" -namespace "root\CIMV2" `
-computername $strComputer

foreach ($objItem in $colItems) {
write-host "Availability: " $objItem.Availability
write-host "Battery Status: " $objItem.BatteryStatus
write-host "Capacity Multiplier: " $objItem.CapacityMultiplier
write-host "Caption: " $objItem.Caption
write-host "Chemistry: " $objItem.Chemistry
write-host "Configuration Manager Error Code: " $objItem.ConfigManagerErrorCode
write-host "Configuration Manager User Configuration: " $objItem.ConfigManagerUserConfig
write-host "Creation Class Name: " $objItem.CreationClassName
write-host "Description: " $objItem.Description
write-host "Design Capacity: " $objItem.DesignCapacity
write-host "Design Voltage: " $objItem.DesignVoltage
write-host "Device ID: " $objItem.DeviceID
write-host "Error Cleared: " $objItem.ErrorCleared
write-host "Error Description: " $objItem.ErrorDescription
write-host "Estimated Charge Remaining: " $objItem.EstimatedChargeRemaining
write-host "Estimated Run Time: " $objItem.EstimatedRunTime
write-host "Expected Life: " $objItem.ExpectedLife
write-host "Full-Charge Capacity: " $objItem.FullChargeCapacity
write-host "Installation Date: " $objItem.InstallDate
write-host "Last Error Code: " $objItem.LastErrorCode
write-host "Location: " $objItem.Location
write-host "Manufacture Date: " $objItem.ManufactureDate
write-host "Manufacturer: " $objItem.Manufacturer
write-host "Maximum Battery Error: " $objItem.MaxBatteryError
write-host "Maximum Recharge Time: " $objItem.MaxRechargeTime
write-host "Name: " $objItem.Name
write-host "PNP Device ID: " $objItem.PNPDeviceID
write-host "Power Management Capabilities: " $objItem.PowerManagementCapabilities
write-host "Power Management Supported: " $objItem.PowerManagementSupported
write-host "Smart Battery Version: " $objItem.SmartBatteryVersion
write-host "Status: " $objItem.Status
write-host "Status Information: " $objItem.StatusInfo
write-host "System Creation Class Name: " $objItem.SystemCreationClassName
write-host "System Name: " $objItem.SystemName
write-host "Time On Battery: " $objItem.TimeOnBattery
write-host "Time To Full Charge: " $objItem.TimeToFullCharge
write-host
}


   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a