Skip to content
Permalink
Browse files
This closes #1131
WinRm documentation - In Powershell use Start-Process ... -Wait
  • Loading branch information
sjcorbett committed Jan 18, 2016
2 parents 22faee7 + 867b55e commit 981f7c774d308ec821365235f7e7ca6cffb8caa4
Showing 1 changed file with 10 additions and 0 deletions.
@@ -250,6 +250,16 @@ other entities using the standard `attributeWhenReady` mechanism. For example:

install.command: $brooklyn:formatString("c:\\myscript.bat %s", component("db").attributeWhenReady("datastore.url"))

### Powershell - Using Start-Process

When you are invoking a command from a powershell script with `Start-Process` cmdlet,
please use the `-Wait` and the `-PassThru` arguments.
Example `Start-Process C:\mycommand -Wait -PassThru`

Using `-Wait` guarantees that the script process and its children and thus the winrm session won't be terminated until it is finished.
`-PassThru` Returns a process object for each process that the cmdlet started. By default, this cmdlet does not generate any output.
See https://technet.microsoft.com/en-us/library/hh849848.aspx

### Rebooting

Where a reboot is required as part of the entity setup, this can be configured using

0 comments on commit 981f7c7

Please sign in to comment.