Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 surveying the Monastery: (10)
As of 2014-08-28 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (257 votes), past polls