Please feel free to provide feedback or file bugs here.

Powershell does not interpret set variables

Powershell has (optionally) replaced cmd as a standard shell in Windows 10.

However it is a pity that Powershell is not able to interpret commands that rely on usage of variables that are defined in "set"

like %computername%, %windir%, %userprofile%, %appdata% etc
etc

Please respect your own system variables in use for decades Microsoft. Thank you a lot.
There must be way without breaking this.

try issuing a simple

cd %appdata%

in powershell (often used in KB articles), good luck and have fun (or not).

Imho while I could understand limitations this is pretty odd.

3 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Karl H. shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    7 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Karl H. commented  ·   ·  Flag as inappropriate

        "Anything CMD can do Powershell should be able to do. Powershell is just supposed to be able to do more than what CMD can. " Unfortunately that is not the case often enough I face the issue that using del /s /q does not work or similar commands using parameters and it forces me to issue cmd in ps to get back to working console.
        on the other hand remove-childitem -recurse does not have the same result in some cases.

      • WSLUser commented  ·   ·  Flag as inappropriate

        I can confirm this is still an issue that it really shouldn't be. Anything CMD can do Powershell should be able to do. Powershell is just supposed to be able to do more than what CMD can. You should be fixing this Microsoft to help us Windows developers continue doing things the way they should in addition to the new things.

      Feedback and Knowledge Base