Windows 10: unable to open powershell with administrator rights in windows 11

Discus and support unable to open powershell with administrator rights in windows 11 in Windows 10 Gaming to solve the problem; Still unable to access PowerShell as administrator despite following steps outlined in this article... Discussion in 'Windows 10 Gaming' started by ElliottWF, May 11, 2025 at 12:27 PM.

  1. ElliottWF Win User

    unable to open powershell with administrator rights in windows 11


    Still unable to access PowerShell as administrator despite following steps outlined in this article https://answers.microsoft.com/en-us/windows/forum/all/i-am-trying-to-run-powershell-with-administrator/b5eba4a1-2080-47b2-9de8-4bfa37bd4e48

    :)
     
  2. ddelo Win User

    Export All Administrative Events to Excel

    To analyze events, from the Windows Event Viewer, there is a simple way to export all Administrative Events to Excel, with PowerShell.

    Exporting all Administrative Events to Excel is a simple two Step process, as described here:

    Step 1 - Create the Administrative Events View .xml file
    1. Open Eventviewer (%windir%\system32\eventvwr.msc)
    2. Navigate to: Event Viewer (Local) > Custom Views > Administrative Events
    3. In the “Actions” pane select “Filter Current Custom View”.
    4. Select the the XML tab.
    5. Press Ctrl+A to select all the XML code of the Custom View.
    6. Open a notepad, paste the selected code and save the file to your Desktop as AdmEvtView.xml


    Step 2 - Create the csv file with the events
    1. Download the ExportEvtCSV.zip file, which contains the script ExportEvtCSV.ps1 and unzip it, on your Desktop.
      It's not a fancy script, just basic PowerShell commands to create a csv file on the Desktop.
    2. In Windows Search, type “ISE” (without the quotes) to open “Windows PowerShell ISE” and Run as administrator
    3. To allow running the script, change the ExecutionPolicy, for this session. To do that, in the Console pane type:
      Code:
    4. In the Windows PowerShell ISE, open and run the script: ExportEvtCSV.ps1
      The script will create a csv file with a name YYYYMMDD.HHMM.csv on the Desktop
    5. When done, open the newly created .csv file, format the columns as needed and optionally save it as .xlsx, if you wish.
    That’s it! You now have all the Administrative Events in Excel for filtering and further analysis. unable to open powershell with administrator rights in windows 11 :)

    Now to the more technical hard stuff... *Confused

    There is a reason for running the script from within PowerShell ISE!

    It would be great if everything was also working perfectly, when running the script from an elevated PowerShell too.

    We can run it from an elevated PowerShell, which means that you just follow the Step 1, as above but for the Step 2 instead of the ISE you run the script from an elevated PowerShell.

    The problem is that it will work only for anybody who has en-US format for the dates. Everyone else, who has another format (i.e. en-GB, fr-FR, el-GR etc.), the dates are not translated properly by Excel (although the script uses the –UseCulture switch) and remain as text in the en-US format.

    I'm not sure if this a bug of the "export-csv" cmdlet, but although it runs the way it supposed to from within the ISE, from PowerShell there is a problem with the dates format.
    As I haven’t found a way to overcome this obstacle, any suggestion from the PowerShell gurus of the forum (like my good friend Shawn @Brink, for instance), is welcome.
     
  3. Brink Win User
    Mail app will not open on 10041.

    Hello Adam,

    This is the suggested solution below if you haven't already tried it. unable to open powershell with administrator rights in windows 11 :)

    In this Windows 10 build 10041, the Mail, Calendar, and People apps may be broken due to a licensing issue with the Store Beta. To get these apps working again, you need to follow these steps:

    • Open powershell as administrator
    • Run the command Get-appxprovisionedpackage –online | where-object {$_.packagename –like “*windowscommunicationsapps*”} | remove-appxprovisionedpackage –online
    • Re-install Mail, People and Calendar from the Store (green tile)
     
  4. unable to open powershell with administrator rights in windows 11

    Unable to download games from Windows Store with error: 0x803F7000 on Windows 10

    Hi Zak,

    Thank you for posting in Microsoft Community, we appreciate your interest in Windows 10.

    As you are unable to access Windows Store with error 0x803F7000,
    I suggest you to try the steps provided below and see if it helps you to fix the issue.

    Step 1: Run WSReset.exe
    .

    • Press Windows+R key to open
      Run
      box
    • Enter wsreset.exe in the Run command and then tap or click
      OK.
    • Restart your computer and check.

    If resetting Windows Store cache does not help then,

    Step 2: Re-register Windows Store by running the following commands in a CMD window started as Administrator:

    Follow the below steps.

    • Open the Start menu, type Windows PowerShell in the search bar.
    • Right click on the Windows PowerShell and select Run as administrator.
    • Press OK the UAC prompt if shown. That will open an elevated command prompt. (It will show Administrator in the caption.)
    • Then enter the chkdsk command

      PowerShell -ExecutionPolicy Unrestricted

      $manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest
    • Restart the computer and try to download the apps.

    Hope it helps. Reply to the post with an updated status of this issue, we'll be glad to assist you.
     
    Deepika Gowda, May 11, 2025 at 12:35 PM
    #4
Thema:

unable to open powershell with administrator rights in windows 11

Loading...
  1. unable to open powershell with administrator rights in windows 11 - Similar Threads - unable open powershell

  2. unable to open powershell with administrator rights in windows 11

    in Windows 10 Software and Apps
    unable to open powershell with administrator rights in windows 11: Still unable to access PowerShell as administrator despite following steps outlined in this article https://answers.microsoft.com/en-us/windows/forum/all/i-am-trying-to-run-powershell-with-administrator/b5eba4a1-2080-47b2-9de8-4bfa37bd4e48...
  3. Unable to open powershell

    in Windows 10 Gaming
    Unable to open powershell: Whenever i open it it says The shell cannot be started. A failure occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives' threw an exception. [process exited with code 4294901760 0xffff0000]...
  4. Unable to open powershell

    in Windows 10 Software and Apps
    Unable to open powershell: Whenever i open it it says The shell cannot be started. A failure occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives' threw an exception. [process exited with code 4294901760 0xffff0000]...
  5. Unable to open powershell

    in Windows 10 BSOD Crashes and Debugging
    Unable to open powershell: Whenever i open it it says The shell cannot be started. A failure occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives' threw an exception. [process exited with code 4294901760 0xffff0000]...
  6. settings, cmd as administrator, powershell as administrator is not opening

    in Windows 10 Gaming
    settings, cmd as administrator, powershell as administrator is not opening: i can not open my settings app.also no option is showing to start cmd or powershell as administrator. https://answers.microsoft.com/en-us/windows/forum/all/settings-cmd-as-administrator-powershell-as/4e840f44-6303-46b7-a043-4c90e9e935c2
  7. settings, cmd as administrator, powershell as administrator is not opening

    in Windows 10 Software and Apps
    settings, cmd as administrator, powershell as administrator is not opening: i can not open my settings app.also no option is showing to start cmd or powershell as administrator. https://answers.microsoft.com/en-us/windows/forum/all/settings-cmd-as-administrator-powershell-as/4e840f44-6303-46b7-a043-4c90e9e935c2
  8. settings, cmd as administrator, powershell as administrator is not opening

    in Windows 10 Customization
    settings, cmd as administrator, powershell as administrator is not opening: i can not open my settings app.also no option is showing to start cmd or powershell as administrator. https://answers.microsoft.com/en-us/windows/forum/all/settings-cmd-as-administrator-powershell-as/4e840f44-6303-46b7-a043-4c90e9e935c2
  9. unable to open windows programs as administrator--user has admin rights

    in Windows 10 BSOD Crashes and Debugging
    unable to open windows programs as administrator--user has admin rights: start menu does not work, run as admin does not work, services does not work. logged in as administrator in admin group. when asked this question in google "run as administrator" not working, most say go to cmd and run as admin lmao i guess they didn't understand the...
  10. Unable to gain Administration rights

    in Windows 10 Network and Sharing
    Unable to gain Administration rights: Seem since 1909 upgrade I am no longer able to change file defaults ,open Device Manager, Computer Management or add Administration rights to any search. Is there a fix?...