GetGroups( $Server, $GroupType, < $List | \@List | \%List > [, $Prefi
+x ] )
This will, if successful, populate the @List array with the names
+of the
user groups that match the group type $GroupType. If $Prefix is p
+assed in
then only groups with names beginning with $Prefix (case insensiti
+ve) will
be stored into the array.
$Server is either:
- The name of the machine the accounts reside on in either "\\\s
+erver" or "//server" format.
- The name of a domain as in "Accounting" where the user account
+s reside.
- An empty string ("") which returns the user accounts for the l
+ocal machine.
GetUsers( $Server, $UserPrefix, < $List | \@List | \%List > )
This will, if successful, populate the @List array with the names
+of the
user accounts which begin with $UserPrefix.
$UserPrefix can be an empty string in which all user accounts will
+ be returned. This parameter is
case insensitive.
$Server is either:
- The name of the machine the accounts reside on in either "\\\s
+erver" or "//server" format.
- The name of a domain as in "Accounting" where the user account
+s reside.
- An empty string ("") which returns the user accounts for the l
+ocal machine.
The third parameter can either be a scalar, an array reference or
+a hash reference. If it
is an array then upon success the group names populate the array.
+ If it is a scalar then
it is converted into a hash reference. Hash references are popula
+ted with the user id, full
name, comment, and account flags.
Returns:
The number of group names stored in the array or hash.
I havent finished putting any code together for this yet but am busy with it and will post it as I have it.
-----
Of all the things I've lost in my life, its my mind I miss the most.
|