Windows 10: I can't open windows security nor make PowerShell an administrator.

Discus and support I can't open windows security nor make PowerShell an administrator. in Windows 10 Gaming to solve the problem; Help, I can't seem to open windows security. Every time I do I get told I can't because I don't have an app to open the said program. It then offers a... Discussion in 'Windows 10 Gaming' started by need_hlp78, Jan 9, 2023.

  1. I can't open windows security nor make PowerShell an administrator.


    Help, I can't seem to open windows security. Every time I do I get told I can't because I don't have an app to open the said program. It then offers a link to the Microsoft store to download said app. But nothing appears 1st image. I can't find it in the app section in the settings to reset it. And i tried putting said code that was said to be put that I found in reply to a question with the same problem, please help.

    :)
     
    need_hlp78, Jan 9, 2023
    #1
  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. I can't open windows security nor make PowerShell an administrator. :)

    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.
     
    ddelo, Jan 9, 2023
    #2
  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. I can't open windows security nor make PowerShell an administrator. :)

    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)
     
    Brink, Jan 9, 2023
    #3
  4. Drone Win User

    I can't open windows security nor make PowerShell an administrator.

    Drone, Jan 9, 2023
    #4
Thema:

I can't open windows security nor make PowerShell an administrator.

Loading...
  1. I can't open windows security nor make PowerShell an administrator. - Similar Threads - can't open security

  2. I can't open powershell

    in Windows 10 Gaming
    I can't open powershell: I have try it in Terminal: but it can't start with error code: [process exited with code 4294901760 0xffff0000]Please help me! https://answers.microsoft.com/en-us/windows/forum/all/i-cant-open-powershell/a72573a4-3714-414e-bddd-dc15d98fa745
  3. I can't open powershell

    in Windows 10 Software and Apps
    I can't open powershell: I have try it in Terminal: but it can't start with error code: [process exited with code 4294901760 0xffff0000]Please help me! https://answers.microsoft.com/en-us/windows/forum/all/i-cant-open-powershell/a72573a4-3714-414e-bddd-dc15d98fa745
  4. I can't open windows security nor make PowerShell an administrator.

    in Windows 10 Software and Apps
    I can't open windows security nor make PowerShell an administrator.: Help, I can't seem to open windows security. Every time I do I get told I can't because I don't have an app to open the said program. It then offers a link to the Microsoft store to download said app. But nothing appears 1st image. I can't find it in the app section in the...
  5. 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
  6. 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
  7. 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
  8. Can't use Powershell and cannot open Windows Security.

    in Windows 10 BSOD Crashes and Debugging
    Can't use Powershell and cannot open Windows Security.: I woke up this morning and got on my PC and I tried using the Windows key on my keyboard and nothing happened, so I tried to type into the search bar and nothing worked. This has never happened before and I tried using the run command and it doesn't work, this may be a virus...
  9. [SOLVED] Help, pls. Can't Open Settings nor Powershell

    in Windows 10 Customization
    [SOLVED] Help, pls. Can't Open Settings nor Powershell: I downloaded an update and after my computer booted up, I tried opening settings but it couldn't open. It flashes and closes aswell as powershell. I searched up some solutions and none of them work. help frens? [MY MAN JOHN SOLVED IT, SAY THANKS TO HIM]...
  10. Help, pls. Can't Open Settings nor Powershell

    in Windows 10 Customization
    Help, pls. Can't Open Settings nor Powershell: I downloaded an update and after my computer booted up, I tried opening settings but it couldn't open. It flashes and closes aswell as powershell. I searched up some solutions and none of them work. help frens?...