- May
- 13,199
- 180
When there is no persistent PowerShell interpreter PSHELL changes the current working directory to %SYSTEMROOT\System32. It does not do this if a persistent PowerShell interpreter is running,
Code:
v:\> pshell /c
v:\> pshell /s "echo foo"
foo
c:\windows\system32> v:
v:\> pshell /s "echo foo"
foo
v:\>