Try this
use Win32::NetAdmin;
AddWorkstation( "myNewToy" );
sub AddWorkstation
{
my $name = uc ( substr ( $_[0], 0, 15 ) . "\$") ;
my $password = lc ( substr ( $_[0], 0, 14 ) );
my $domain = "ent-clients";
$pdc = GetPDC( $domain );
if ( Win32::NetAdmi
- Original Message -
From: "Bullock, Howard A." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2001 10:05 AM
Subject: Win32API::File, Net, Registry vs. Lanman, AdminMisc ,etc
> Could someone please contrast and compare the functionality and stability
of
> the Win32API
Could someone please contrast and compare the functionality and stability of
the Win32API modules versus such modules as Lanman and AdminMisc? Were
Lanman and AdminMisc written because the Win32API modules lacking in some
way?
___
Perl-Win32-Admin mail
I am already using Win32API::Net to add/delete users to the domain but I
can't figure out how to add a workstation. The documentation lists a user
flag called UF_WORKSTATION_TRUST_ACCOUNT but what do I use for the other
fields required for level 1?
Any help and/or examples would be appreciate
Does anyone know the answer to this?
I am trying to determine the account names for local accounts on a member
server, when running scripts from a workstation.
When you use $perm->Dump( \@list );
You get an array of references to a hash. To determine the keys of the hash
you can do something