Command Reference
Root scripts
| File |
Role |
PSWinDeploy.psd1 |
Main configuration |
secrets.vault.psd1 |
Credentials (vault) |
Initialize-PSWinDeploy.ps1 |
Initial installation (interactive menu) |
Update-PSWinDeploy.ps1 |
Update from an archive or folder |
Unblock-PSWinDeploy.ps1 |
Remove the Internet Zone.Identifier from downloaded files |
Build-WinPE.ps1 |
Build WinPE (generated by Initialize-PSWinDeploy.ps1) |
Start-API.ps1 |
Launch the Pode API |
| Key |
Action |
Description |
| S |
Shares |
Configure and test network shares & driver structure |
| L |
Logs |
View deployment logs |
| N |
Notifications |
Configure Mail / Teams |
| M |
Update |
Update from an archive or folder |
| U |
Unblock |
Remove Zone.Identifier |
| I |
Re-initialize |
Re-run initialization |
PowerShell modules
| Module |
Role |
Config.psm1 |
Reads PSWinDeploy.psd1 |
NetShare.psm1 |
SMB connection, vault, New-SmbMapping |
WinPE-Builder.psm1 |
WinPE build (copype, DISM, packages) |
TaskSequence.psm1 |
Executes deployment sequences |
ProfileManager.psm1 |
Manages deployment profiles |
DiskSelector.psm1 |
Disk selection and partitioning |
WIM-Manager.psm1 |
WIM image management |
Notify.psm1 |
Mail and Teams notifications |
Scripts
| Script |
Role |
Context |
Start-Deploy.ps1 |
Deployment entry point |
WinPE |
Deploy-Assistant.ps1 |
Sequence editor (console) |
Server |
Build-WinPE-Assistant.ps1 |
WinPE build assistant |
Server |
Export-WIMImage.ps1 |
Export a WIM image |
Server |
Key exported functions
| Function |
Module |
Purpose |
Get-PSWinDeployConfig |
Config |
Load and return the resolved configuration |
Initialize-SecretVault |
NetShare |
Create/update the secrets vault (DPAPI or AES) |
Build-WinPE |
WinPE-Builder |
Build a bootable WinPE image |
Invoke-TaskSequence |
TaskSequence |
Execute a runtime sequence JSON |
Get-DeployProfile / Test-DeployProfile |
ProfileManager |
Read / validate a profile |
Select-TargetDisk |
DiskSelector |
Interactive disk picker in WinPE |
Export-WIMImage / Import-WIMImage |
WIM-Manager |
Capture / apply a WIM |
Test-NotifyConfig |
Notify |
Send a test notification on one or all channels |
Useful DISM commands
:: List images in a WIM
dism /Get-WimInfo /WimFile:"E:\PSWinDeploy\WinPE\Workspace\media\sources\boot.wim"
:: Mount / unmount
dism /Mount-Image /ImageFile:boot.wim /Index:1 /MountDir:C:\mount
dism /Unmount-Image /MountDir:C:\mount /Commit