Quickly produce a list of long file path names.

Here is a quick and easy way to produce a list of long path names from a PS prompt. dir has severation options. File is output in current path as txt file (no sorting).

  1. Run PowerShell (As Admin)
  2. Navigate to folder like C:\Users\Daniel
  3. Run the below

Longer than 260 Characters

cmd /c dir /s /b |? {$_.length -gt 260} > longfilenames.txt

Longer than 150 Characters

cmd /c dir /s /b |? {$_.length -gt 150} > longfilenames.txt

Run Command Cheat list

 mstsc - remote desktop
 msconfig - startup and system.ini config
 dxdiag - DirectX config/test
 cmd - command prompt
 control - \control panel
 cleanmgr - disk clean up utility
 Control desktop - display control panel
 eventvwr.msc - event viwwer
 control netconnections - network connections
 regedit - regedit
 taskmgr - task manager
 dcpromo - Active directory
 gpedit.msc - group policy editor

Full MSI Syntax Options for windows installer

Full MSI syntax options


msiexec /Option <Required Parameter> [Optional Parameter]

Install Options
</package | /i> <Product.msi>
Installs or configures a product
/a <Product.msi>
Administrative install – Installs a product on the network
/j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]
Advertises a product – m to all users, u to current user
</uninstall | /x> <Product.msi | ProductCode>
Uninstalls the product

Display Options
Quiet mode, no user interaction
Unattended mode – progress bar only
Sets user interface level
n – No UI
b – Basic UI
r – Reduced UI
f – Full UI (default)
Help information
Restart Options
Do not restart after the installation is complete
Prompts the user for restart if necessary
Always restart the computer after installation
Logging Options
/l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>
i – Status messages
w – Nonfatal warnings
e – All error messages
a – Start up of actions
r – Action-specific records
u – User requests
c – Initial UI parameters
m – Out-of-memory or fatal exit information
o – Out-of-disk-space messages
p – Terminal properties
v – Verbose output
x – Extra debugging information
+ – Append to existing log file
! – Flush each line to the log
* – Log all information, except for v and x options
/log <LogFile>
Equivalent of /l* <LogFile>

Update Options
/update <Update1.msp>[;Update2.msp]
Applies update(s)
/uninstall <PatchCodeGuid>[;Update2.msp] /package <Product.msi | ProductCode>
Remove update(s) for a product

Repair Options
/f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode>
Repairs a product
p – only if file is missing
o – if file is missing or an older version is installed (default)
e – if file is missing or an equal or older version is installed
d – if file is missing or a different version is installed
c – if file is missing or checksum does not match the calculated value
a – forces all files to be reinstalled
u – all required user-specific registry entries (default)
m – all required computer-specific registry entries (default)
s – all existing shortcuts (default)
v – runs from source and recaches local package

Setting Public Properties

How to convert install.esd to install.wim for WDS

So you need to make an install.wim for WDS from the ISO / Media

Important. Before you start, make sure that your machine has Windows ADK installation. and run all commands elevated as CMD(Administrator)

First, lets get info from ESD file to check available images.

These are usually indexed so you can build specific images for the different SKUs of Windows, Pro, Home, Single Language, Education.

In the path of the Windows installation media e.g.

dism /Get-WimInfo /WimFile:install.esd

Now we can build the image, this can take a while as the image is typically 2-3GB

dism /export-image /SourceImageFile:install.esd /SourceIndex:1 /DestinationImageFile:install.wim /Compress:max /CheckIntegrity


Windows Creators Update 10.0.15063

You can check the windows build version of an extracted ISO or USB installed by running the following command

Open Command Prompt


dism /Get-WimInfo /WimFile:E:\sources\install.esd /index:1

For install.wim (Enterprise versions)

dism /Get-WimInfo /WimFile:E:\sources\install.wim /index:1

The Output will be something similar to this

Deployment Image Servicing and Management tool
Version: 10.0.14393.0

Details for image : E:\sources\install.esd

Index : 1
Name : Windows 10 Pro
Description : Windows 10 Pro
Size : 15,278,163,599 bytes
WIM Bootable : No
Architecture : x64
Hal : <undefined>
Version : 10.0.15063
ServicePack Build : 0
ServicePack Level : 0
Edition : Professional
Installation : Client
ProductType : WinNT
ProductSuite : Terminal Server
System Root : WINDOWS
Directories : 19702
Files : 101866
Created : 20/03/2017 - 04:53:17
Modified : 11/04/2017 - 13:02:36
Languages :
 en-GB (Default)

The operation completed successfully.

Version 10.0.15063 is the 11th April 2017 creators update, I am doing this on launch day as I have multiple machines to update and don’t want to accidentally join the Windows Insider programme for production machines.