Windows 10: Getting the below error when running the powershell commands remotly with elivated shell...

Discus and support Getting the below error when running the powershell commands remotly with elivated shell... in Windows 10 Gaming to solve the problem; 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... Discussion in 'Windows 10 Gaming' started by Raj Martha_ICCR, Oct 16, 2023.

  1. 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 Attempt 1 Element not found. Exception from HRESULT: 0x80070490 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: : [Write-Error], COMException + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException1 i ran sfc scan and it did not fixed the issue2 i restored the server to older

    :)
     
    Raj Martha_ICCR, Oct 16, 2023
    #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, Oct 16, 2023
    #2
  3. Malformed PowerShell command Get-AppXPackage error

    I have tried all of the suggested corrections for a start menu that is not working. The last command in the most reasonable suggestion uses as it's last two statements PowerShell and the one listed below. I have tried
    this command several times, making sure there are no typing errors and every time I get the Error message below. Is there any way to repair the database disk image which is indicated as "malformed"?

    ========================================================================================

    S C:\WINDOWS\system32> Get-AppXPackage -AllUsers |Where-Object {$_.InstallLocation -like "*SystemApps*"} | Foreach {Add

    >>> -AppxPackage -DesableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

    Get-AppXPackage : The database disk image is malformed

    The database disk image is malformed

    At line:1 char:1

    + Get-AppXPackage -AllUsers |Where-Object {$_.InstallLocation -like "*S ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo
    : NotSpecified: Getting the below error when running the powershell commands remotly with elivated shell... :)) [Get-AppxPackage], Exception

    + FullyQualifiedErrorId : Syste
     
    Jo B.Taylor, Oct 16, 2023
    #3
  4. tcebob Win User

    Getting the below error when running the powershell commands remotly with elivated shell...

    Can't run command in PowerShell but OK in Cmd

    I tried the suggested command and it does work manually in Power Shell. But Task Scheduler chokes on it.


    Getting the below error when running the powershell commands remotly with elivated shell... 179039d1519919659t-cant-run-command-powershell-but-ok-cmd-add-.jpg


    If i say "Yes" it breaks up the command string to "%C:\program" with the rest of the command as an argument.
     
    tcebob, Oct 16, 2023
    #4
Thema:

Getting the below error when running the powershell commands remotly with elivated shell...

Loading...
  1. Getting the below error when running the powershell commands remotly with elivated shell... - Similar Threads - Getting below error

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

    in Windows 10 Gaming
    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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. Error while running PIP3 command on powershell

    in Windows 10 Installation and Upgrade
    Error while running PIP3 command on powershell: Please assist me to sort out the issue on the below screenshot.The command is 100% correct because I ran it on another computer it is working.I'm getting error that " the term pip3 is not recognized "I have seen all the differences of pip vs pip3 as well.I am wondering if i...
  9. Error while running PIP3 command on powershell

    in Windows 10 Gaming
    Error while running PIP3 command on powershell: Please assist me to sort out the issue on the below screenshot.The command is 100% correct because I ran it on another computer it is working.I'm getting error that " the term pip3 is not recognized "I have seen all the differences of pip vs pip3 as well.I am wondering if i...
  10. Error while running PIP command on powershell

    in Windows 10 Customization
    Error while running PIP command on powershell: Please assist me to sort out the issue on the below screenshot. The command is 100% correct because I ran it on another computer it is working. [ATTACH] I am wondering if i can post powershell issues here or there is another website specific for powershell problems...