I'm trying to reset permissions in the HKLM\SOFTWARE\Microsoft\SMS\Client key and subkey in the Registry using Win32::Perms to no avail.  I'm running version 0.2002.03.01.  Here is the code I've got.

-------------------------------------------------------------------------------------

$RegKey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\SMS\\Client";

$Perms = new Win32::Perms($RegKey) || die "Error binding to $ClientHKey\n";
$Perms->Remove(-1);
$Perms->Owner('Administrators');
$Perms->Allow('Administrators', GENERIC_ALL, INHERIT);
$Perms->Allow('Everyone', READ, INHERIT);
$Perms->SetRecurse("$RegKey");
$Perms->Close();

-------------------------------------------------------------------------------------

Any help is greatly appreciated.

Rob

Reply via email to