Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Win32 Sample Code for checking if a user is in the group "Power Users" on a Windows (XP) machine?

by romandas (Pilgrim)
on Oct 24, 2009 at 17:08 UTC ( #803055=note: print w/ replies, xml ) Need Help??


in reply to Win32 Sample Code for checking if a user is in the group "Power Users" on a Windows (XP) machine?

An additional module you can use is Win32::OLE for tapping into the Windows Management Interface (WMI).

As for providing sample code.. it wouldn't be very kind of you to ask for code without providing some of your own first. Might I suggest using a search engine, such as Google, to search for the terms 'perl', 'wmi', and 'groups'. There are tons of examples out there.

If you're really stuck, check out Microsoft's Scriptomatic. It can create the code you're looking for, and will even do it in Perl!


Comment on Re: Win32 Sample Code for checking if a user is in the group "Power Users" on a Windows (XP) machine?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://803055]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2015-07-08 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls