Windows 10: How to run a .bat file as administrator in startup?

Discus and support How to run a .bat file as administrator in startup? in Windows 10 Support to solve the problem; Hello. As BitDefender as an ongoing error, I want to run a small "bdfix.bat" at login time. But this .bat file MUST be run as an administrator to work.... Discussion in 'Windows 10 Support' started by Burgurne, Nov 3, 2018.

  1. Burgurne Win User

    How to run a .bat file as administrator in startup?


    Hello.
    As BitDefender as an ongoing error, I want to run a small "bdfix.bat" at login time. But this .bat file MUST be run as an administrator to work. How do I do that? *Redface

    :)
     
    Burgurne, Nov 3, 2018
    #1
  2. Farzad_K Win User

    Run a .bat file as Admin During Startup

    Thanks. I have tried that and yet the selection of Run as administrator under the Advanced Properties doesn't seem to stay and the .bat file does not get executed with that level.

    Farzad
     
    Farzad_K, Nov 3, 2018
    #2
  3. CapnM Win User
    Suddenly can't run bat files as administrator


    New, weird, behavior --

    If I right click on a bat file, and Run as Administrator, all I get is a brief flash (perhaps a command window?).
    Just double clicking on it runs as expected (though not elevated, which is what I need).
    If I open an elevated command window and run the bat file within that window it works fine.

    So I have a workaround, but it's still annoying.
    It's always worked as expected in the past, I last used the batch files about a week ago.

    Tested with a simple bat file (echo "hello", pause). Same results.

    The fact that it is only a problem when I try Run as Administrator has me baffled.

    WIn10 Home build 10240, administrator user account
     
    CapnM, Nov 3, 2018
    #3
  4. XweAponX Win User

    How to run a .bat file as administrator in startup?

    Suddenly can't run bat files as administrator


    Are you right-clicking on the file and running it "as administrator"? Because with Bat files, you should open a Command Prompt (Admin) By pressing Windows key+X, then after it is open, CD to the folder where the BAT files are, and then run it. That way, you can see if it ran or if it failed.
     
    XweAponX, Nov 3, 2018
    #4
Thema:

How to run a .bat file as administrator in startup?

Loading...
  1. How to run a .bat file as administrator in startup? - Similar Threads - run bat file

  2. Run a .bat file as Admin During Startup

    in Windows 10 Customization
    Run a .bat file as Admin During Startup: Hello, I have a batch file that executes certain commands and one of these commands requires admin privilege. When I place this file in the startup folder the command fails. Right clicking on it and setting it to run as admin doesn't work. I am told scripts can be...
  3. Bat Files Won't Run?

    in Windows 10 Gaming
    Bat Files Won't Run?: Basically I'm installing BattlEye for a Steam game and I click the .bat file in the game's subfolder to download it (when I was prompted to download it I clicked no but now I practically need it for most servers), and I download the .bat from the main website and it also...
  4. Suddenly can't run bat files as administrator

    in Windows 10 Support
    Suddenly can't run bat files as administrator: New, weird, behavior -- If I right click on a bat file, and Run as Administrator, all I get is a brief flash (perhaps a command window?). Just double clicking on it runs as expected (though not elevated, which is what I need). If I open an elevated command window and run...
  5. 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...
  6. Running as Administrator from Startup shortcut?

    in Windows 10 Support
    Running as Administrator from Startup shortcut?: Up until now one of my programs has always run on booting up. Its shortcut is in my Startup folder. I have now re-configured the shortcut to 'Run as Administrator', for all users. It works correctly when d-clicked manually. But it no longer starts on startup. Is that to...
  7. Trouble running .bat files

    in Windows 10 Support
    Trouble running .bat files: Hi, I'm trying to run .bat files on Windows 10, but it tells me that "This app can't run on your PC". It doesn't matter what I use it for, .bat files just won't run anyway. Are .bat files no longer supported? (ran fine on Windows 7) Any workarounds? I'm no expert on...
  8. 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...
  9. Can't Run .Bat Files

    in Windows 10 Support
    Can't Run .Bat Files: I try to run .bat files and the just run in note pad. There is no "open with" option. 48199
  10. Have a .bat file start up as "run as administrator" in start up.

    in Windows 10 Support
    Have a .bat file start up as "run as administrator" in start up.: Hi, Let me start with my setup. In File explorer I have a library called "Start up" . This contains 2 paths: Path 1 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup and Path 2 C:\Users\AJ ANNING\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup...