diff --git a/provisioner/powershell/provisioner.go b/provisioner/powershell/provisioner.go index f48693e4d..e28becef0 100644 --- a/provisioner/powershell/provisioner.go +++ b/provisioner/powershell/provisioner.go @@ -460,8 +460,8 @@ func (p *Provisioner) createCommandTextNonPrivileged() (command string, err erro func getWinRMPassword() string { winRMPass, _ := commonhelper.RetrieveSharedState("winrm_password") return winRMPass - } + func (p *Provisioner) createCommandTextPrivileged() (command string, err error) { // Prepare everything needed to enable the required env vars within the remote environment envVarPath, err := p.prepareEnvVars(true)