S
ssg31415926
I want to run this command from within a PowerShell script:
fsutil hardlink create %WINDIR%\system32\windowspowershell
\v1.0\psh.exe %WINDIR%\system32\windowspowershell\v1.0\powershell.exe
It works from with cmd.exe, as you'd expect, but not from within
powershell.exe. (I didn't really expect it to, though.)
It there a way to get powershell to resolve system environment
variables or do I need to retrieve them using PowerShell and build a
command line?
fsutil hardlink create %WINDIR%\system32\windowspowershell
\v1.0\psh.exe %WINDIR%\system32\windowspowershell\v1.0\powershell.exe
It works from with cmd.exe, as you'd expect, but not from within
powershell.exe. (I didn't really expect it to, though.)
It there a way to get powershell to resolve system environment
variables or do I need to retrieve them using PowerShell and build a
command line?