This is the Example to enable r disable a tab in propertie while right clicking
var key = "HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa\\ForceGuest";
var shell = WScript.CreateObject( "WScript.Shell" );
var e = shell.RegRead( key );
if( e == 0 )
{
shell.RegWrite( key, 1, "REG_DWORD" );
WScript.Echo( "Security tab disabled" );
}
else if( e == 1 )
{
shell.RegWrite( key, 0, "REG_DWORD" );
WScript.Echo( "Security tab still enbled" );
}
else
WScript.Echo( "Error in script" );
save it as .js
Wednesday, June 11, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment