Get-OSDWinPE

Get-Help -Full

1
PS C:\> Get-Help Get-OSDWinPE -Full
2
3
NAME
4
Get-OSDWinPE
5
6
SYNOPSIS
7
Common WinPE Commands using wpeutil and Microsoft DaRT RemoteRecovery
8
9
10
SYNTAX
11
Get-OSDWinPE [-AddModules] [[-ImportModule] <String[]>] [[-CallScript] <String>] [-InitializeNetwork] [-InitializeNetworkNoWait]
12
[-WaitForNetwork] [-WaitForRemovableStorage] [-DisableFirewall] [-UpdateBootInfo] [-RemoteRecovery] [-Reboot] [-Shutdown]
13
[<CommonParameters>]
14
15
16
DESCRIPTION
17
Common WinPE Commands using wpeutil and Microsoft DaRT RemoteRecovery
18
19
20
PARAMETERS
21
-AddModules [<SwitchParameter>]
22
PowerShell Module Parameter
23
Searches all Drives for <drive>:\Modules directory
24
Copies Modules content to System32 $PSModulesPath
25
26
Required? false
27
Position? named
28
Default value False
29
Accept pipeline input? false
30
Accept wildcard characters? false
31
32
-ImportModule <String[]>
33
PowerShell Module Parameter
34
Imports a PowerShell Module by Name
35
PowerShell Module must exist in $PSModulePath
36
37
Required? false
38
Position? 1
39
Default value
40
Accept pipeline input? false
41
Accept wildcard characters? false
42
43
-CallScript <String>
44
PowerShell Script Parameter
45
Searches all Drives for <drive>:\$ImportModule file
46
Calls <drive>:\$ImportModule in the current PS Session
47
48
Required? false
49
Position? 2
50
Default value
51
Accept pipeline input? false
52
Accept wildcard characters? false
53
54
-InitializeNetwork [<SwitchParameter>]
55
wpeutil InitializeNetwork
56
Initializes network components and drivers and sets the computer name to a randomly-chosen value
57
58
Required? false
59
Position? named
60
Default value False
61
Accept pipeline input? false
62
Accept wildcard characters? false
63
64
-InitializeNetworkNoWait [<SwitchParameter>]
65
wpeutil InitializeNetwork /NoWait
66
Initializes network components and drivers and sets the computer name to a randomly-chosen value
67
The /NoWait option will skip the time where your PC would otherwise wait to acquire an IP address
68
If you don't use /NoWait, Windows PE will wait to acquire an address before it finishes loading your WinPE session
69
/NoWait is helpful for environments that don't use DHCP
70
71
Required? false
72
Position? named
73
Default value False
74
Accept pipeline input? false
75
Accept wildcard characters? false
76
77
-WaitForNetwork [<SwitchParameter>]
78
wpeutil WaitForNetwork
79
Waits for the network card to be initialized
80
Use this command when creating scripts to make sure that the network card has been fully initialized before continuing
81
82
Required? false
83
Position? named
84
Default value False
85
Accept pipeline input? false
86
Accept wildcard characters? false
87
88
-WaitForRemovableStorage [<SwitchParameter>]
89
wpeutil WaitForRemovableStorage
90
During the Windows PE startup sequence, this command will block startup until the removable storage devices, such as USB hard
91
drives, are initialized
92
93
Required? false
94
Position? named
95
Default value False
96
Accept pipeline input? false
97
Accept wildcard characters? false
98
99
-DisableFirewall [<SwitchParameter>]
100
wpeutil DisableFirewall
101
Disables the Firewall
102
103
Required? false
104
Position? named
105
Default value False
106
Accept pipeline input? false
107
Accept wildcard characters? false
108
109
-UpdateBootInfo [<SwitchParameter>]
110
wpeutil UpdateBootInfo
111
Populates the registry with information about how Windows PE boots
112
After you run this command, query the registry. For example:
113
reg query HKLM\System\CurrentControlSet\Control /v PEBootType
114
The results of this operation might change after loading additional driver support.
115
To determine where Windows PE is booted from, examine the following:
116
PEBootType: Error, Flat, Remote, Ramdisk:SourceIdentified Ramdisk:SourceUnidentified, Ramdisk:OpticalDrive
117
PEBootTypeErrorCode: HRESULT code
118
PEBootServerName: Windows Deployment Services server name
119
PEBootServerAddr: Windows Deployment Services server IP address
120
PEBootRamdiskSourceDrive: Source drive letter, if available.
121
PEFirmwareType: Firmware boot mode: 0x1 for BIOS, 0x2 for UEFI.
122
If you are not booting Windows Deployment Services, the best way to determine where Windows PE booted from is to first check
123
for PEBootRamdiskSourceDrive registry key
124
If it is not present, scan the drives of the correct PEBootType and look for some kind of tag file that identifies the boot
125
drive
126
127
Required? false
128
Position? named
129
Default value False
130
Accept pipeline input? false
131
Accept wildcard characters? false
132
133
-RemoteRecovery [<SwitchParameter>]
134
RemoteRecovery.exe -nomessage
135
Microsoft Diagnostic and Recovery Toolset Remote Recovery
136
137
Required? false
138
Position? named
139
Default value False
140
Accept pipeline input? false
141
Accept wildcard characters? false
142
143
-Reboot [<SwitchParameter>]
144
wpeutil Reboot
145
Reboots the computer
146
147
Required? false
148
Position? named
149
Default value False
150
Accept pipeline input? false
151
Accept wildcard characters? false
152
153
-Shutdown [<SwitchParameter>]
154
wpeutil Shutdown
155
Shutdown the computer
156
157
Required? false
158
Position? named
159
Default value False
160
Accept pipeline input? false
161
Accept wildcard characters? false
162
163
<CommonParameters>
164
This cmdlet supports the common parameters: Verbose, Debug,
165
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
166
OutBuffer, PipelineVariable, and OutVariable. For more information, see
167
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
168
169
INPUTS
170
171
OUTPUTS
172
173
NOTES
174
175
176
19.10.1 David Segura @SeguraOSD
177
178
179
RELATED LINKS
180
https://osd.osdeploy.com/module/functions/get-osdwinpe
Copied!
Last modified 2yr ago
Copy link