Friday, October 28, 2011

Reset Local Security Policy

Today im showing you a very simple .Bat file to reset your local security policy.

Have you ever logged on to a computer as the administrator but been told that you dont have admin priviledges. I have!

So this simple command resets the local security policy to default.


echo off
c:
cd\
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
shutdown -r -t 10
pause

It can take a little while but has worked everytime for me. After it has done it, the computer will restart. If you dont want it to do this (it needs to for it to take effect) then you can just delete the line that starts with 'shutdown'

No comments: