From 5d63f01fed99d482b5117742ba9102490161d12d Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 15 Sep 2017 08:14:12 -0700 Subject: [PATCH] Update docs for elevated_execute_command with new default command --- website/source/docs/provisioners/powershell.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/provisioners/powershell.html.md b/website/source/docs/provisioners/powershell.html.md index 0b916c413..765760ad9 100644 --- a/website/source/docs/provisioners/powershell.html.md +++ b/website/source/docs/provisioners/powershell.html.md @@ -56,11 +56,11 @@ Optional parameters: endings (if there are any). By default this is false. - `elevated_execute_command` (string) - The command to use to execute the elevated - script. By default this is `powershell if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};{{.Vars}}&'{{.Path}}';exit $LastExitCode`. + script. By default this is `powershell if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'}; . {{.Vars}}; &'{{.Path}}'; exit $LastExitCode`. The value of this is treated as [configuration template](/docs/templates/engine.html). There are two available variables: `Path`, which is the path to the script to run, and - `Vars`, which is the list of `environment_vars`, if configured. + `Vars`, which is the location of a temp file containing the list of `environment_vars`, if configured. - `environment_vars` (array of strings) - An array of key/value pairs to inject prior to the execute\_command. The format should be `key=value`.