Skip to content

Commit f94f1b5

Browse files
authored
Merge pull request MicrosoftDocs#2802 from msbemba/patch-124
Update Restart-VM.md
2 parents a4584e2 + 7bdac05 commit f94f1b5

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-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

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 virtual machine isn't restarted.
222+
223+
This parameter is only valid with the `-Wait` parameter. The `-Timeout` parameter 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 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.
255+
256+
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.
251257

252258
```yaml
253259
Type: SwitchParameter

docset/winserver2022-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)