Windows 10: "Run as Administrator" appears on every file

Discus and support "Run as Administrator" appears on every file in Windows 10 Ask Insider to solve the problem; [IMG] Hello. When I right click a file of any type (image, sound etc) there is an option for the file to be "Run as Administrator". How do I remove... Discussion in 'Windows 10 Ask Insider' started by /u/ViperJohnGR, Nov 10, 2020.

  1. "Run as Administrator" appears on every file

    /u/ViperJohnGR, Nov 10, 2020
    #1
  2. Kem Mon Win User

    I occasionally have a file that is visible in File Explorer but does not appear on the desktop. How can I fix this?

    I understand, update us as soon as you performed the suggested troubleshooting. After doing so and still the issue
    persists, kindly perform a SFC and DISM. It is possible that there is a system file corruption causing the file to disappear. To run SFC and DISM, follow these steps:



    Run SFC Scan: 

    To run an
    SFC scan, follow these steps
    (Kindly perform it again for 3 times after DISM):


    • Run
      Command Prompt as Administrator.  

    • Type
      sfc /scannow
      and hit
      Enter.   



    Run DISM Tool: 

    To perform
    DISM, follow these steps:


    • Run
      Command Prompt as Administrator.  

    • Type the following command:  

      • DISM.exe /Online /Cleanup-image /scanhealth  

      • DISM.exe /Online /Cleanup-image /Restorehealth  



    NOTE:
    This might take a while to finish scanning.
    Do not cancel.



    If possible, kindly provide us the return message so that we can investigate it further.



    Regards.
     
    Kem Mon, Nov 10, 2020
    #2
  3. 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. "Run as Administrator" appears on every file :)

    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, Nov 10, 2020
    #3
  4. "Run as Administrator" appears on every file

    Administrator permission needed for saving online files

    Hi Kareld,

    We appreciate you for being part of Windows 10.

    From the description of the issue, I understand that you are unable to take full ownership of the files and folders.

    I would recommend you to see if you are logged in administrator account, if not then enable it. Please follow the below steps.

    I would suggest you to enable the built in administrator account.

    You need to run the command from an elevated command prompt. To do that you need to do the following:


    • Press the Windows key t+ R from the keyboard to open the Run Command Dialog Box

    • Enter cmd and right-click on the
      Command Prompt result that should appear.

    • This opens a list of options at the bottom. Select
      Run as administrator there.

    • Accept the UAC prompt

    • Enter the following command to enable the hidden administrator account:
      net user administrator /active:yes

      Kindly let us know if you need any further assistance with Windows. We are glad to assist you.Thank you.
     
    Kiran Kishore, Nov 10, 2020
    #4
Thema:

"Run as Administrator" appears on every file

Loading...
  1. "Run as Administrator" appears on every file - Similar Threads - Run Administrator appears

  2. 'Run as Administrator'

    in Windows 10 Software and Apps
    'Run as Administrator': I have got this annoying issue where my windows 11 computer randomly crashes and I read I need to scan but having issues getting there with sfc /scannow it says I need to be administrator, tried to type command recommendation but now I am trying to do the whole "Run as...
  3. Every program running in administrator mode by default.

    in Windows 10 Gaming
    Every program running in administrator mode by default.: Hi, every program I open in Windows 11 runs in administrator mode by default. Whether I open it in the taskbar, by the desktop icon, or by the start menu, it still happens, and I'd like to fix this....
  4. Every program running in administrator mode by default.

    in Windows 10 Software and Apps
    Every program running in administrator mode by default.: Hi, every program I open in Windows 11 runs in administrator mode by default. Whether I open it in the taskbar, by the desktop icon, or by the start menu, it still happens, and I'd like to fix this....
  5. Windows File Explorer and Run as Administrator

    in Windows 10 Software and Apps
    Windows File Explorer and Run as Administrator: I run Windows 10.0.19044 on a Thinkpad X1 16GB, 1TB. I have a shortcut to Windows File Explorer that executes: C:\windows\explorer.exe /e,H:\I have mapped a network drive, "H", to a network location. I have set the properties of the shortcut to "Run as Administrator". When I...
  6. Windows File Explorer and Run as Administrator

    in Windows 10 Network and Sharing
    Windows File Explorer and Run as Administrator: I run Windows 10.0.19044 on a Thinkpad X1 16GB, 1TB. I have a shortcut to Windows File Explorer that executes: C:\windows\explorer.exe /e,H:\I have mapped a network drive, "H", to a network location. I have set the properties of the shortcut to "Run as Administrator". When I...
  7. run as administrator

    in Windows 10 Customization
    run as administrator: How can I log in as administrator? https://answers.microsoft.com/en-us/windows/forum/all/run-as-administrator/646a029d-39ea-4540-9ce7-5da26d6fd2d4
  8. Add "Run as administrator" to MSP files

    in Windows 10 Customization
    Add "Run as administrator" to MSP files: This question can be asked for MSI files as well, so we can say that doing so for MSI files is also useless, since eventually we'll get to the Admin mode when needed even if we don't run MSI files as Admin!
  9. How to run File Explorer as Administrator

    in Windows 10 Support
    How to run File Explorer as Administrator: What I don't understand is why with administrator rights, I can't access or delete files or even save files to the Windows folder. I also don't have the option if I right click to run File Explorer with Administrator rights. [img] If I Right Click on another...
  10. On how to run a .ps1 file as Administrator

    in Windows 10 Support
    On how to run a .ps1 file as Administrator: Hello everyone, If you have had a chance of going through the great Brink's Tutorial Apps - Uninstall in Windows 10 (I strongly advice you do), you may have noticed that, if you wish to automatize, at least to a certain extent, the procedure of getting rid of Windows 10...