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: Surface

1 2
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

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

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

October 18th, 2015

Speaking at TechDays Stockholm – Microsoft Surface is Commitment, Excellence, Intelligence and Focus

TechDays is a must-attend-to for every ITpro who works with Microsoft’s products, platforms and solutions. The theme of TechDays 2015 is […]

March 26th, 2015

New firmware for Surface – Disable components in UEFI

It’s not often I write about newly released firmwares for the Surface platforms, However, todays release is somewhat special.

February 24th, 2015

Watch our session: Optimizing Surface deployment and connected standby

Did you miss Olav and my session at NIC earlier in february?
Don’t be sad, now you can catch up on your Surface skills