Skip to content

Commit 0736c21

Browse files
authored
Update Restart-VM.md
Added information about wait and timeout parameters.
1 parent c2dede3 commit 0736c21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docset/winserver2019-ps/hyper-v/Restart-VM.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ Accept wildcard characters: False
218218
219219
### -Timeout
220220
221+
Specifies the duration of the wait, in seconds. When the timeout elapses, Restart-VM returns to the command prompt, even if the VM isn't restarted.
222+
223+
The Timeout parameter is only valid with the Wait parameter. Timeout overrides the Wait parameter's indefinite waiting period.
221224
222225
```yaml
223226
Type: Int32
@@ -248,6 +251,9 @@ Accept wildcard characters: False
248251
249252
### -Wait
250253
254+
Restart-VM suppresses the PowerShell prompt and blocks the pipeline until the VM has restarted. You can use this parameter in a script to restart VM and then continue to process when the restart is finished.
255+
256+
The Wait parameter waits indefinitely for the VM to restart. You can use Timeout to adjust the timing and the For and Delay parameters to wait for particular services to become available on the restarted VM.
251257
252258
```yaml
253259
Type: SwitchParameter

0 commit comments

Comments
 (0)