I am facing an issue where both Windows PowerShell V1.0 and SharePoint Online Management Shell

Jayesh Kashte 20 Reputation points
2025-02-05T04:34:17.2066667+00:00

I am facing an issue where both Windows PowerShell and SharePoint Online Management Shell open briefly and then close immediately, even when I try running them as an administrator. I have attempted basic troubleshooting, including running PowerShell in safe mode, checking execution policies, and reinstalling the SharePoint module, but the issue persists.

Could you advise on any additional steps to resolve this

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,991 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,621 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 38,646 Reputation points Microsoft Vendor
    2025-02-05T06:50:24.44+00:00

    Hi @Jayesh Kashte,

    Initially I recommend that you check if you are updated with the latest version of Windows 10. Press Windows key + i and go to Update and Security, click Check for updates and do ALL pending updates;

    Then I recommend that you use the commands below in sequence:

    Sfc /scannow
    DISM.exe /Online /Cleanup-image /Scanhealth
    Dism.exe /Online /Cleanup-Image /CheckHealth
    DISM.exe /Online /Cleanup-image /Restorehealth
    Dism.exe /Online /Cleanup-Image /startComponentCleanup
    

    Finally restart your PC and try running PowerShell again.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.