New
#1
Run a .BAT Script without the Need for "Run as Administrator"
Hi all
I created a small .BAT script that runs CHKDSK/F on several partitions,
and when I run this script, I get "Access Denied", and "You need to run it as Admin"..
If I RightClick the .BAT file and Choose "Run as Administrator", then the script runs well.
My question:
Is there something I can do, so I don't need to RightClick + "Run as Administrator" all the time?
I tried searching in google, and found 1 solution which is to create a shortcut to the .BAT file,
and set the shortcut to run it as Admin.
It's nice, yet it means the need to create such shortcut for various .BAT files.
Instead,
I would like to ask If there's maybe some System Wide solution,
for example,
to tell Windows 10 that I would like .BAT files (in general) to run as Admin, and not worry about it..
Maybe via the Registry, or Group Policy, or something like that.
Anyone knows If such option exists?
Thank you