Merge pull request #1796 from rikdev/powershell-no-profile

Disabled load PowerShell profile when start the powershell.exe
This commit is contained in:
Nathan LeClaire 2015-09-10 15:19:47 -07:00
commit 0fb4991068
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ func init() {
}
func execute(args []string) (string, error) {
args = append([]string{"-NoProfile"}, args...)
cmd := exec.Command(powershell, args...)
log.Debugf("[executing ==>] : %v %v", powershell, strings.Join(args, " "))
var stdout bytes.Buffer