Skip to content

Commit 5539f93

Browse files
authored
Update Restart-VM.md
Updated the 2016 file as well
1 parent b7de26b commit 5539f93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ Accept wildcard characters: False
217217
```
218218
219219
### -Timeout
220+
Specifies the duration of the wait, in seconds. When the timeout elapses, **Restart-VM** returns to the command prompt, even if the virtual machine isn't restarted.
220221
222+
This parameter is only valid with the `-Wait` parameter. The `-Timeout` parameter overrides the `-Wait` parameter's indefinite waiting period.
221223

222224
```yaml
223225
Type: Int32
@@ -247,7 +249,9 @@ Accept wildcard characters: False
247249
```
248250

249251
### -Wait
252+
**Restart-VM** suppresses the PowerShell prompt and blocks the pipeline until the virtual machine has restarted. You can use this parameter in a script to restart the virtual machine and then continue to process when the restart is finished.
250253

254+
The `-Wait` parameter waits indefinitely for the virtual machine to restart. You can use the `-Timeout` parameter to adjust the timing and the `-For` and `-Delay` parameters to wait for particular services to become available on the restarted virtual machine.
251255

252256
```yaml
253257
Type: SwitchParameter

0 commit comments

Comments
 (0)