Add Open PowerShell window here as administrator in Windows 10  

Page 3 of 10 FirstFirst 12345 ... LastLast

  1. Posts : 5
    Windows_10_1809_Edu_x64
       #20

    Hi,

    thank you for your work, it's really nice and helped me alot since today.

    Now I got a problem:
    If I open the powershell as admin, the current directory is every time "C:\WINDOWS\System32\WindowsPowerShell\v1.0" - I don't got the problem from the beginning.

    Maybe there are other people with the same problem? Do you need additional informations?

    Yours.
      My Computer


  2. Posts : 13,848
    Win10 Version 22H2 Pro and Home, Win11 Pro and Home
       #21

    The version of PowerShell that is opened will on a default installation of Win10 show a different Folder, as (Admin) it goes to C:\Windows\System32 but the other choice goes to C:\User\USERNAME.
      My Computers


  3. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #22

    thethinker said:
    Hi,

    thank you for your work, it's really nice and helped me alot since today.

    Now I got a problem:
    If I open the powershell as admin, the current directory is every time "C:\WINDOWS\System32\WindowsPowerShell\v1.0" - I don't got the problem from the beginning.

    Maybe there are other people with the same problem? Do you need additional informations?

    Yours.
    Hello thethinker, and welcome to Ten Forums.

    Does the prompt in the elevated PowerShell have the correct path?
      My Computers


  4. Posts : 5
    Windows_10_1809_Edu_x64
       #23

    Brink said:
    Hello thethinker, and welcome to Ten Forums.

    Does the prompt in the elevated PowerShell have the correct path?

    Thank you,

    only 1 PowerShell promt is opened and the path is incorrect
    If I open the PowerShell (without admin - not elevated) the path is correct
      My Computer


  5. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #24

    thethinker said:
    Thank you,

    only 1 PowerShell promt is opened and the path is incorrect
    If I open the PowerShell (without admin - not elevated) the path is correct
    Just to verify, the path in the title bar is not the actual path. The path you see at the blinking prompt inside the PowerShell window is the actual path it is opened to.

    If that is not correct, then please go ahead and post a screenshot of the PowerShell window, and say what the full path should be instead.
      My Computers


  6. Posts : 5
    Windows_10_1809_Edu_x64
       #25

    Brink said:
    Just to verify, the path in the title bar is not the actual path. The path you see at the blinking prompt inside the PowerShell window is the actual path it is opened to.

    If that is not correct, then please go ahead and post a screenshot of the PowerShell window, and say what the full path should be instead.
    Add Open PowerShell window here as administrator in Windows 10-unbenannt.png

    C:\Users\User\Desktop\Microsoft_Windows_10_1809_[17763]\wim\Installer\exe\WinRAR


    I've tried on C:\ - there it works and the cd is C:\
      My Computer


  7. Posts : 13,848
    Win10 Version 22H2 Pro and Home, Win11 Pro and Home
       #26

    These are how mine open on the default install of Win10, standard on top, Admin on bottom:
    Add Open PowerShell window here as administrator in Windows 10-image.png
    Add Open PowerShell window here as administrator in Windows 10-image.png
    Added note: because of the clients I've worked with over several years I don't customize most of my computers very much, makes it easier to see what they see when having problems. Besides, they are also available for sale or give-away as the need arises.
      My Computers


  8. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #27

    thethinker said:
    C:\Users\User\Desktop\Microsoft_Windows_10_1809_[17763]\wim\Installer\exe\WinRAR

    I've tried on C:\ - there it works and the cd is C:\

    After doing some testing using the same path as yours, I found the problem.

    The [ ] brackets in the folder name in red below is the issue. Something about having both brackets in it will cause the path to not be correct. If you rename the folder in red below to remove the brackets, it will work.

    C:\Users\User\Desktop\Microsoft_Windows_10_1809_[17763]\wim\Installer\exe\WinRAR
      My Computers


  9. Posts : 5
    Windows_10_1809_Edu_x64
       #28

    Brink said:
    After doing some testing using the same path as yours, I found the problem.

    The [ ] brackets in the folder name in red below is the issue. Something about having both brackets in it will cause the path to not be correct. If you rename the folder in red below to remove the brackets, it will work.

    C:\Users\User\Desktop\Microsoft_Windows_10_1809_[17763]\wim\Installer\exe\WinRAR
    Thank you, I've found the problem too.
    Maybe you can add it into the program-information or you can fix the problem and update the files.

    Thank you very much for your (fast) help!

    Sincerly yours
      My Computer


  10. Posts : 5
    Windows_10_1809_Edu_x64
       #29

    You can skip the Brackets with backticks (`)

    cd C:\`[Test`]
    Maybe you can use this to fix the issue

    Yours
    Edit: It's actually really strange, I get these problems only if I open the ps-promt elevated, if I open it in non-admin mode, it starts in the right path, even with the []-brackets
      My Computer


 

Tutorial Categories

Add Open PowerShell window here as administrator in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:32.
Find Us




Windows 10 Forums