title: Access system32 from VisualStudio 2019 build script
body: <p>In a post build step i want check if OpenSSH.Client and OpenSSH.Server is installed and install it if it is not there. Checking the installed features with Powershell needs administrative privileges.
  Therefore i test the existence of the relevant OpenSSH commands with the following code (extract of long script)</p>
  <pre><code>SET /a res=0
  SET /a three=3
  %windir%\system32\OpenSSH\ssh-keygen.exe /?
  echo Errorlevel %ERRORLEVEL%
  IF %ERRORLEVEL%==%three% (SET /a res=%res%+1)
  %windir%\system32\OpenSSH\ssh-keyscan.exe /?
  echo Errorlevel %ERRORLEVEL%
  IF %ERRORLEVEL%==%three% (SET /a res=%res%+1)
  SET /a check=0
  IF %res% == %check% (
    echo already installed
    goto skipopenSSH
  )
  echo installation
  :skipopenSSH
  </code></pre>
  <p>By checking the existence of the commands no admin privileges are necessary for the check so a normal build will not cause a administrative popup.
  On cmd.exe it works fine, but as a post build step in Visual Studio both commands in %windir%\systrem32\OpenSSH are not found, although the variable is expanded to the same c:\Windows\System32\OpenSSH\*.exe as if executed on commandline.
  After trying the different find mechanisms which all fail i made a test batch file <code>C:\Windows\System32\OpenSSH\ssh-keyscan.exe /?</code>
  which leads to a file not found error if executed as a post build step. So the real question should be: Modifies the visual studio build step commandline the path?</p>