Shell Scripts or.SH files are like batch files of Windows which can be executed in Linux or Unix. It is possible to run.sh or Shell Script file in Windows 10 using Windows Subsystem for Linux. Oct 03, 2019 Home Windows Operating Systems Windows 10 Forums We and our AD Partners use cookies to understand how you use our site, improve your experience and serve you personalized content and advertising. Learn how we use cookies in our cookie policy.By continuing to.
Viewed 781 times
While on Windows 7, I've created a lot of batch files (
.bat
) to automate some tasks.Batch File Samples
Now that I've moved to a different machine with Windows 10 (we've skipped Win8), I'm having some issues with them.
My domain user was added to the machine's local Administrators Group and I've disabled UAC (just as I had on Win7).
To be able to control Services (
net stop
, net start
), the Command Prompt must be running as Administrator. This can be achieved by setting an advanced property in a shortcut to the batch file (quite annoying since I have many), but it won't work if I want the batch file to run on startup (in the Startup folder of the Start Menu) — the batch file will just not start if 'Run as administrator' is set on its shortcut.I can't seem to find a solution to this problem - what I find is either about Win7, require some additional commands in the batch files (such as
Ƭᴇcʜιᴇ007runas
) or giving rights to specific services. I don't think I had to jump thru any hoops in Win7 for this to work, but it's been a while.Windows 10 Batch File Example
102k16 gold badges164 silver badges229 bronze badges
Run Batch File Windows 10
GoozakGoozak