Windows 10: When I run powershell as an admin I'm getting the following when running commands.

Discus and support When I run powershell as an admin I'm getting the following when running commands. in Windows 10 Gaming to solve the problem; PS C:\windows\system32> dism/online/cleanup-image/checkhealth dism/online/cleanup-image/checkhealth : The term 'dism/online/cleanup-image/checkhealth'... Discussion in 'Windows 10 Gaming' started by CAM JACK1, Mar 9, 2024.

  1. CAM JACK1 Win User

    When I run powershell as an admin I'm getting the following when running commands.


    PS C:\windows\system32> dism/online/cleanup-image/checkhealth dism/online/cleanup-image/checkhealth : The term 'dism/online/cleanup-image/checkhealth' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + dism/online/cleanup-image/checkhealth + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: dism/online/cleanup-image/checkhealth:String [], CommandNotFoundExcept ion + FullyQualifiedErrorId :

    :)
     
    CAM JACK1, Mar 9, 2024
    #1

  2. Error on running PowerShell commands

    Hi Micah,

    Thank you for posting your query on Microsoft Community.

    We regret the inconvenience caused to you. Let me assist you.

    Provide us with the below details for better clarity on the issue.

    1. Are you trying any command or a script on the PowerShell?

    2. Do you get the error on typing the command or after hitting Enter?

    I suggest you to try running the Windows PowerShell as an Admin and check if the issue persists. Right click on the launch file and select
    Run as Administrator to check if it helps.

    Please get back you us with the required details so that we can assist you further.
     
    Pawan Dhondiyal, Mar 9, 2024
    #2
  3. Bree Win User
    running DOS as ADMIN

    I suggested that in post #4 but @bromberg doesn't seem to have tried it yet...
     
    Bree, Mar 9, 2024
    #3
  4. Pattik Win User

    When I run powershell as an admin I'm getting the following when running commands.

    Running Powershell as admin


    To get around having to right click to run powershell as an admin...have you tried getting to powershell via the Task Manager? Open Task Manager via Ctl-Alt-Delete, then click on More details (if needed). From the File Menu, select Run new task. You can then click on the box that says "create this task with admin privileges", type powershell in the dialog box and enter. That eliminates the need to right click to run as an admin.
     
    Pattik, Mar 9, 2024
    #4
Thema:

When I run powershell as an admin I'm getting the following when running commands.

Loading...
  1. When I run powershell as an admin I'm getting the following when running commands. - Similar Threads - run powershell admin

  2. Command Prompt and Powershell will ONLY Run as Admin

    in Windows 10 Gaming
    Command Prompt and Powershell will ONLY Run as Admin: I am unable to open either Command Prompt or Powershell normally. If I select the "Run as Administrator" option they will both run fine. When I try to run them the box comes up for about 2 seconds and then closes. Nothing is ever displayed in the box.The problem is that I...
  3. Command Prompt and Powershell will ONLY Run as Admin

    in Windows 10 Software and Apps
    Command Prompt and Powershell will ONLY Run as Admin: I am unable to open either Command Prompt or Powershell normally. If I select the "Run as Administrator" option they will both run fine. When I try to run them the box comes up for about 2 seconds and then closes. Nothing is ever displayed in the box.The problem is that I...
  4. When I run powershell as an admin I'm getting the following when running commands.

    in Windows 10 Software and Apps
    When I run powershell as an admin I'm getting the following when running commands.: PS C:\windows\system32> dism/online/cleanup-image/checkhealth dism/online/cleanup-image/checkhealth : The term 'dism/online/cleanup-image/checkhealth' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if...
  5. Getting the below error when running the powershell commands remotly with elivated shell...

    in Windows 10 Gaming
    Getting the below error when running the powershell commands remotly with elivated shell...: We have a Windows 2019 server which have DNS server installed on it. and we run some powershell commands remotly on this server with elivated shell permissions, it was working fine until last week and all of the sudden we are getting the below error. Task Execution Failed on...
  6. Getting the below error when running the powershell commands remotly with elivated shell...

    in Windows 10 BSOD Crashes and Debugging
    Getting the below error when running the powershell commands remotly with elivated shell...: We have a Windows 2019 server which have DNS server installed on it. and we run some powershell commands remotly on this server with elivated shell permissions, it was working fine until last week and all of the sudden we are getting the below error. Task Execution Failed on...
  7. Getting the below error when running the powershell commands remotly with elivated shell...

    in Windows 10 Software and Apps
    Getting the below error when running the powershell commands remotly with elivated shell...: We have a Windows 2019 server which have DNS server installed on it. and we run some powershell commands remotly on this server with elivated shell permissions, it was working fine until last week and all of the sudden we are getting the below error. Task Execution Failed on...
  8. Error when running application with PowerShell version 7: "Get-ExecutionPolicy" command not...

    in Windows 10 Gaming
    Error when running application with PowerShell version 7: "Get-ExecutionPolicy" command not...: Description: I encountered an error while running my application with PowerShell version 7. The error message states: "Get-ExecutionPolicy: The 'Get-ExecutionPolicy' command was found in the module 'Microsoft.PowerShell.Security', but the module could not be loaded. For more...
  9. Error when running application with PowerShell version 7: "Get-ExecutionPolicy" command not...

    in Windows 10 Software and Apps
    Error when running application with PowerShell version 7: "Get-ExecutionPolicy" command not...: Description: I encountered an error while running my application with PowerShell version 7. The error message states: "Get-ExecutionPolicy: The 'Get-ExecutionPolicy' command was found in the module 'Microsoft.PowerShell.Security', but the module could not be loaded. For more...
  10. How to have a command run when opening PowerShell?

    in Windows 10 Software and Apps
    How to have a command run when opening PowerShell?: Hi there everyone. I did a quick search of the forums but didn't see anything covering this. I recently found this program called winfetch that displays the Windows logo in ASCII along with system info. It's a single command to run, and I was wanting to configure PS 7 to run...