29 novembro 2008

Reset "Local Group Policy"

Excluir manualmente os scripts:

%systemroot%\system32\GroupPolicy\User\registry.pol
%systemroot%\system32\GroupPolicy\User\machine.pol

repor o Local Group Policy Objects para configurações padrão

Start > Run >

secedit /configure /db reset /cfg "c:\windows\security\templates\setup security.inf" /overwrite

from admin account create a new text doc, insert the following:
> >> secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb
> >> /verbose
> >> secedit /refreshpolicy machine_policy /enforce
> >> secedit /refreshpolicy user_policy /enforce
> >>
> >> save it as reset.bat in the root of C:
> >> in the user profile control panel > admin tools > computer mgmt > local
> >> users and groups > right clich user − properties> profile tab > logon
> >> script
> >> enter c:\reset.bat
> >>
> >> logout and login again, if u get an error under the acount saying
> >> permission
> >> denied just run the reset.bat as admin. This will take the security
> >> policies
> >> back to default.