Windows 10: Why does PowerShell only close when it's elevated in certain ways?

Discus and support Why does PowerShell only close when it's elevated in certain ways? in Windows 10 Software and Apps to solve the problem; Hey! I been having a problem for a long time, which I had been using a work around for, but trying to circle back and fix this as I want to clean up... Discussion in 'Windows 10 Software and Apps' started by Shawn Harriman2, Jul 23, 2023.

  1. Why does PowerShell only close when it's elevated in certain ways?


    Hey! I been having a problem for a long time, which I had been using a work around for, but trying to circle back and fix this as I want to clean up how my script runs.My script is a batch file which does some work and then runs a script in PowerShellI'm looking to move this all to PowerShell, but what's the point if I can't overcome this obstacle, it's not worth converting the batch code to PowerShell. at that point.Here's when it works and doesn't workWhy does PowerShell only close when it's elevated in certain ways? :Doesn't Work:Right clicking batch file and running as adminHaving PowerShells #Requires -RunAsAdministratorHaving Command Prompt check if adm

    :)
     
    Shawn Harriman2, Jul 23, 2023
    #1
  2. abpc555 Win User

    non elevated powershell?

    Hi,

    I read that I can uninstall apps via the powershell (elevated), and I indeed did this. But what surprised me was that even a non-elevated powershell prompt allowed me to uninstall a number of apps as well.

    Would this mean that I can even reinstall apps via a non-elevated powershell prompt? If so, is there a way of disabling the powershell?

    Thanks.
     
    abpc555, Jul 23, 2023
    #2
  3. c12f15dc-7bff-4426-b6c1-6cd384eeb051, Jul 23, 2023
    #3
  4. abpc555 Win User

    Why does PowerShell only close when it's elevated in certain ways?

    non elevated powershell?

    I don't want a standard account user to open a non elevated powershell and install stuff...
     
    abpc555, Jul 23, 2023
    #4
Thema:

Why does PowerShell only close when it's elevated in certain ways?

Loading...
  1. Why does PowerShell only close when it's elevated in certain ways? - Similar Threads - Why does PowerShell

  2. Why does Powershell crashing cause Edge to close and open?

    in Windows 10 Gaming
    Why does Powershell crashing cause Edge to close and open?: Hello, PowerShell is crashing so many times and when that happens, it closes all browsers and it opens Edge. I tried to disable running at startup, I ran sfc /scannow, I disabled Edge starting up on startup, but it didn't work.How do I fix this?...
  3. Why does Powershell crashing cause Edge to close and open?

    in Windows 10 Software and Apps
    Why does Powershell crashing cause Edge to close and open?: Hello, PowerShell is crashing so many times and when that happens, it closes all browsers and it opens Edge. I tried to disable running at startup, I ran sfc /scannow, I disabled Edge starting up on startup, but it didn't work.How do I fix this?...
  4. Why does this contrast appear on file explorer and on certain minimize, maximize, close...

    in Windows 10 Software and Apps
    Why does this contrast appear on file explorer and on certain minimize, maximize, close...: Whenever I restart my computer, the file explorer looks very weird, with this high contrast theme, and many of the UI elements are messed up. Please tell me how to fix this. I am on windows 11 version 23H2. Microsoft forums is not allowing me to upload an image, and is...
  5. Why does PowerShell only close when it's elevated in certain ways?

    in Windows 10 BSOD Crashes and Debugging
    Why does PowerShell only close when it's elevated in certain ways?: Hey! I been having a problem for a long time, which I had been using a work around for, but trying to circle back and fix this as I want to clean up how my script runs.My script is a batch file which does some work and then runs a script in PowerShellI'm looking to move this...
  6. Why does PowerShell only close when it's elevated in certain ways?

    in Windows 10 Gaming
    Why does PowerShell only close when it's elevated in certain ways?: Hey! I been having a problem for a long time, which I had been using a work around for, but trying to circle back and fix this as I want to clean up how my script runs.My script is a batch file which does some work and then runs a script in PowerShellI'm looking to move this...
  7. Why does my PowerShell Closes immediately after selecting Run with PowerShell

    in Windows 10 Gaming
    Why does my PowerShell Closes immediately after selecting Run with PowerShell: I want to run a file using PowerShell but after after selecting Run with PowerShell. PowerShell closes immediately after launching. I couldn't capture the error message....
  8. Why does my PowerShell Closes immediately after selecting Run with PowerShell

    in Windows 10 Software and Apps
    Why does my PowerShell Closes immediately after selecting Run with PowerShell: I want to run a file using PowerShell but after after selecting Run with PowerShell. PowerShell closes immediately after launching. I couldn't capture the error message....
  9. Keep elevated powershell in Windows Terminal

    in Windows 10 Network and Sharing
    Keep elevated powershell in Windows Terminal: I'm running Windows Terminal v.1.6.10571.0 and love having my Ubuntu, CMD and Powershell sessions all in WT. However, a few things I need to regularly do require me to elevate powershell. When I do this with 'Start-Process Powershell -Verb RunAs' it launches the elevated PS...
  10. non elevated powershell?

    in AntiVirus, Firewalls and System Security
    non elevated powershell?: Hi, I read that I can uninstall apps via the powershell elevated, and I indeed did this. But what surprised me was that even a non-elevated powershell prompt allowed me to uninstall a number of apps as well. Would this mean that I can even reinstall apps via a...