Marc_Lemar Posted October 30, 2013 Posted October 30, 2013 I am trying to run a .bat file that clears a log file on a windows 8 laptop each time the user logs on if I have UAC turned off it works fine but then the apps on the Metro screen don' work, but if UAC is turned back on then it wont run due to it not being an elevated cmd prompt. Is there a command line I can put at the start of the .bat file which will elevate the prompt so the remainder of the file can run ???
SYNACK Posted October 30, 2013 Posted October 30, 2013 Can you not run the batch file as a scheduled task that is triggered at each logon on the laptop, that way you could have it run as an administrator or system and not need to sacrifice security.
free780 Posted October 30, 2013 Posted October 30, 2013 If a domain laptop use gpp to remove the file.
aclarke Posted November 29, 2013 Posted November 29, 2013 Try running this as a scheduled task run with the highest privilege. I believe this should still work on Windows 8 as it does with Windows 7.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now