List

Every now and then I get these questions regarding power management, sluggish performance in general. As a cheat-sheet, I’ve come up with this PowerShell script that gives you all you need in one run

First, open PowerShell as administrator, and set your execution policy to unrestricted by running this command:

Set-ExecutionPolicy Unrestricted

Then, type the following and run:

cd $env:userprofile\Desktop

$A = gwmi win32_bios | fl SerialNumber
$A += gwmi Win32_PnPSignedDriver | ?{$_.DeviceName -like “*surface*”} | Select DeviceName, DriverVersion, IsSigned
$A | Out-File $env:computername-driverlist.txt

powercfg -batteryreport -output $env:computername-batteryreport.html

The reports will appear as two files on the administrators accounts desktop, one .txt and one .html for reviewing, both with you device name as ID.

Now, of course, if you run this on a device not being a Surface, you must remove the *Surface* in the second line. Also, if you want the files to be stored somewhere else than your administrators desktop – feel free to edit as you please. Ideas or comments? Please comment or give me a heads-up

  • Alex

Leave a Reply

  Category: Microsoft

1 2 3
January 27th, 2017

Use PowerShell to generate driver- and batteryreport

Every now and then I get these questions regarding power management, sluggish performance in general. As a cheat-sheet, I’ve come up with this PowerShell script that gives you all you need in one run

January 1st, 2017

Congratulations 2017 Microsoft MVP!

For the fourth year, I’m truly honored to recieve the highest recognized award for ITpros.

December 18th, 2016

Resolving Modern Device Issues for SMBs

For many SMBs, modern device management have proven to give some challenges, as the devices just like other areas of the tech industry have been moving forwards

May 22nd, 2016

Device management and troubleshooting DIY-style

In a changing IT landscape where we move from managed devices to more or less unmanaged dittos the need for self-healing systems and smart shortcuts are ever increasing.

February 17th, 2016

Surface Book released in major european markets

It’s a little more than four months since the Windows 10 device launch event in NYC witch revealed the Surface Book. By the 18th of february the populear device is shipped in several major european countries.

February 5th, 2016

Guide: Windows Hello with two accounts

Any ITpro in the industry is used to a high number of user accounts, either it is admin- user, limited rights or ad-hoc user accounts.

February 5th, 2016

Download slide deck: Surface Pro&Book explained

For those of you who enjoyed our session Surface Pro&Book explained, or for some reason could not join the session […]

February 4th, 2016

A guide for Surface Data Eraser

Either it’s Repair, repurpose or decomission – secure wipe of your device should allways be a part of your device management lifecycle

February 1st, 2016

Microsoft Surface Deployment Accelerator now supporting Windows 10

A new version of Microsoft Surface Deployment Accelerator is now released from Microsoft. Version 1.9 now supports Window 10

January 1st, 2016

Congratulations 2016 Microsoft MVP!

Congratulations, you’re an Windows and Devices for IT MVP