Jump to content

Recommended Posts

Posted

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 ???

Posted
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.
  • 5 weeks later...
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...