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
Quiet mode, no user interaction
/passive
Unattended mode – progress bar only
/q[n|b|r|f]
Sets user interface level
n – No UI
b – Basic UI
r – Reduced UI
f – Full UI (default)
/help
Help information
Restart Options
/norestart
Do not restart after the installation is complete
/promptrestart
Prompts the user for restart if necessary
/forcerestart
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
[PROPERTY=PropertyValue]

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.

D:\Win10\sources
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

For ESD

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.

 

Reinstalling Edge

Microsoft Edge, is tightly integrated with Windows 10, however sometimes it needs some basic understanding in order to troubleshoot.

Here are some useful facts.

Edge uses an internal Extensible Storage Engine (ESE) database to store favorites. The location of the database is:

C:\Users\YourName\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\DataStore\Data\nouser1\120712-049\DBStore\spartan.edb

To fully reset Edge

  1. Click the three dots . . .  > Settings > Clear
  2. Close Edge
  3. Remove everything from the following location:
C:\Users\%username\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe

Reinstall

Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -Verbose}

Confirm Logged Events

Get-Appxlog | Out-GridView

Useful Run Commands

Here are some useful run commands

Can be run from the Run window

capture

Or CMD prompt

capture

Windows Function Run Command
Add Hardware Wizard hdwwiz
Adding a new Device devicepairingwizard
Advanced User Accounts azman.msc
Advanced User Accounts netplwiz
Backup and Restore sdclt
Calculator calc
Certificates certmgr.msc
Character Map charmap
ClearType Tuner cttune
Color Management colorcpl
Command Prompt cmd
Component Services comexp.msc
Component Services dcomcnfg
Computer Management compmgmt.msc
Computer Management compmgmtlauncher
Connect to a Projector displayswitch
Control Panel control
Credential Backup and Restore Wizard credwiz
Data Execution Prevention systempropertiesdataexecutionprevention
Date and Time timedate.cpl
Device Manager hdwwiz.cpl
Diagnostics Troubleshooting Wizard msdt
Digitizer Calibration Tool tabcal
DirectX Diagnostic Tool dxdiag
Disk Cleanup cleanmgr
Disk Defragmenter dfrgui
Disk Management diskmgmt.msc
Display dpiscaling
Display Color Calibration dccw
DPAPI Key Migration Wizard dpapimig
Driver Verifier Manager verifier
Ease of Access Center utilman
Event Viewer eventvwr.msc
Fax Cover Page Editor fxscover
Game Controllers joy.cpl
Getting Started irprops.cpl
IExpress Wizard iexpress
Internet Explorer iexplore
Internet Options inetcpl.cpl
Language Pack Installer lpksetup
Local Users and Groups lusrmgr.msc
Magnifier magnify
Malicious Software Removal Tool mrt
Math Input Panel mip
Microsoft Management Console mmc
Mouse main.cpl
NAP Client Configuration napclcfg.msc
Narrator narrator
Network Connections ncpa.cpl
New Scan Wizard wiaacmgr
Notepad notepad
ODBC Data Source Administrator odbcad32
On-Screen Keyboard osk
Open Documents Folder documents
Open Downloads Folder downloads
Open Favorites Folder favorites
Open Pictures Folder pictures
Open Recent Folder recent
Open Videos folder videos
Paint mspaint
Pen and Touch tabletpc.cpl
People Near Me collab.cpl
Performance Monitor perfmon.msc
Performance Options systempropertiesperformance
Phone and Modem telephon.cpl
Phone Dialer dialer
Power Options powercfg.cpl
Printer User Interface printui
Private Character Editor eudcedit
Problem Steps Recorder psr
Programs and Features appwiz.cpl
Region and Language intl.cpl
Registry Editor regedit
Remote Access Phonebook rasphone
Remote Desktop Connection mstsc
Resource Monitor resmon
SAM Lock Tool syskey
Screen Resolution desk.cpl
Services services.msc
Set Program Access and Computer Defaults computerdefaults
Share Creation Wizard shrpubw
Shared Folder Wizard shrpubw
Shared Folders fsmgmt.msc
Snipping Tool snippingtool
Sound mmsys.cpl
Sound recorder soundrecorder
SQL Server Client Network Utility cliconfg
Sticky Notes stikynot
Sync Center mobsync
System Configuration msconfig
System Configuration Editor sysedit
System Information msinfo32
System Properties sysdm.cpl
System Properties (Advanced Tab) systempropertiesadvanced
System Properties (Hardware Tab) systempropertieshardware
System Properties (Remote Tab) systempropertiesremote
System Properties (System Protection Tab) systempropertiesprotection
System Restore rstrui
Task Manager taskmgr
Task Scheduler taskschd.msc
Taskbar and Start Menu control.exe /name Microsoft.TaskbarandStartMenu
Troubleshooting control.exe /name Microsoft.Troubleshooting
Trusted Platform Module (TPM) Management tpm.msc
User Account Control Settings useraccountcontrolsettings
User Accounts control.exe /name Microsoft.UserAccounts
Utility Manager utilman
Version Reporter Applet winver
Volume Mixer sndvol
Windows Action Center wscui.cpl
Windows Activation Client slui
Windows Anytime Upgrade WindowsAnytimeUpgradeui
Windows Anytime Upgrade Results windowsanytimeupgraderesults
Windows Disc Image Burning Tool isoburn
Windows DVD Maker dvdmaker
Windows Easy Transfer migwiz
Windows Explorer explorer
Windows Fax and Scan wfs
Windows Features optionalfeatures
Windows Firewall firewall.cpl
Windows Journal journal
Windows Media Player wmplayer
Windows Memory Diagnostic Scheduler mdsched
Windows Mobility Center mblctr
Windows PowerShell powershell
Windows PowerShell ISE powershell_ise
Windows Remote Assistance msra
Windows Repair Disc recdisc
Windows Script Host wscript
Windows Update wuapp
Windows Update Standalone Installer wusa
WMI Management wmimgmt.msc
WordPad write
XPS Viewer xpsrchvw

Windows Environment Commands

Windows Environment Commands

These are my most frequently used, often to just get to a location on the SystemRoot quickly. None of these are case sensistive

%USERPROFILE% - Equivalent of ~ on *nix systems.
%WINDIR% - Windows Directory although it seems to hav ebeen superseded by %SystemRoot%
%APPDATA% - Goes to the roaming folder
%LOCALAPPDATA% - goes to the local folder
%LOGONSERVER% -  goes to \\domain_logon_server
%PROGRAMFILES% - C:\Program Files
%PROGRAMFILES(X86)% - C:\Program Files (x86)
%PSModulePath% - Powershell Modules Path