Showing posts with label boot. Show all posts
Showing posts with label boot. Show all posts

Sunday, August 20, 2017

Tips&Tricks – Trace and Analyze Windows Boot and Shutdown with Windows Performance Toolkit

Although most of us know Windows Assessment and Deployment Kit (ADK) for the..Deployment part, there is another great tool there called Windows Performance Toolkit.

This tool can help IT Administrators to analyze performance data in a very practical way using a graphical user interface that really simplifies reading the collected traces.

It’s specially useful when we need to troubleshooting boot or shutdown times.

After installing the tool it’s super easy to start using it to analyze a machine.

Here are some simple command-lines to startup (attention that all commands are case sensitive):

Boot Tracing
xbootmgr –trace boot –traceFlags BASE+CSWITCH+DRIVERS+POWER –resultPath C:\YourPath

Shutdown Tracing
xbootmgr –trace shutdown –noPrepReboot –traceFlags BASE+CSWITCH+DRIVERS+POWER –resultPath C:\YourPath

The above command will generate a the trace files that you can analyze to troubleshoot for example a long boot, and see if the issue is caused by any driver, software, service, etc.

For a very nice, complete and very very informative article about Windows Performance Toolkit please read the following post from MSFN website:
MSFN - Trace Windows 7 boot/shutdown/hibernate/standby/resume issues

Wednesday, December 2, 2015

WDS - Injecting VMware VMXNET3 Driver Error


I'm creating a new WDS + MDT infrastructure almost from scratch and I'm using VMware for deployment and image creation.
Because I'm using VMware VMXNET3 for network and VMware ParaVirtual SCSI for storage I needed to inject this 2 drivers on my Windows Deployment Servers (WDS) boot image for installing the created images.

Doing this on MDT when creating the boot images for the litetouch deployment has no issue, but for the boot.wim for installing images (extracted for the sources\boot.wim of Windows DVD) something goes wrong.
For some unknown although the VMware ParaVirtual driver gets easily inject, the VMXNET3 driver don't.
Not really investigated the reason, but has a workaround, follow this easy steps.

So what we're going to do it's to inject the drivers on boot.wim file using DISM:
  1. First copy the file from a DVD/ISO (it's located on "...\sources\boot.wim") and copy it to a local drive (ex.: D:\Temp\)

  2. Than you'll need to mount the WIM file:
    DISM /Mount-Image /ImageFile:D:\Temp\boot.wim /Index:2 /MountDir:D:\Temp\MountPoint

  3. Now, you're ready to inject the VMware VMXNET3 Driver (or any other drivers), you just need to point to the *.inf file:
    DISM /Image:D:\Temp\MountPoint /Add-Driver /Driver:D:\Temp\Drivers\VMwareVMXNET3\vmxnet3ndis6.inf

  4. Drivers injected, now unmount and commit changes:
    DISM /Unmount-Image /MountDir:D:\Temp\MountPoint /Commit

And you're done!
Now you just need to publish that boot.wim on your WDS and deploy images.