First let me thank all who have rendered assistance. The list has been
a real help. Thanks.
To install a service pack the user must have 'Administrators'
privileges on
the local machine (correct?). Is this the way to determine this?
Win32API::Net::UserGetLocalGroups($thisPC, $user, $pThisArray);
foreach $i (@thisArray) {
if ($i =~ /Administrators/) {
$isAdmin = 1;
}
}
Also, if I log into a workstation as the domain administrator and run
the above, I do not register as an 'Administrators'.
I can still install the service pack though. If you run
the global version of the above and qualify as an administrator, does
that always
mean you have rights to install on the local box?
Win32API::Net::UserGetLocalGroups($domainController, $user,
$pThisArray);
foreach $i (@thisArray) {
if ($i =~ /Administrators/) {
$isAdmin = 1;
}
}
And finally a junior windows question on privileges.
Roth's description of the value returned in 'privilege' below says it
takes 1 of 3 values. Does that mean that all these groups really
distill into one of three privileges "levels"?
Win32::AdminMisc::UserGetAttributes(
server, userName, password, passwordAge, privilege, homeDir, comment,
flags, scriptPath)
Thanks
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs