Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

PSHELL changes directory

$
0
0
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:\>

Viewing all articles
Browse latest Browse all 1689

Trending Articles