in reply to Re: Changing Dial-In options for Windows 2000
in thread Changing Dial-In options for Windows 2000

Why would you suggest 1) Creating a new file 2) Writing VB to that file 3) closing it 4) executing it 5) deleting it .. when you can just do this directly in perl?

my $oContainer = Win32::OLE->GetObject("LDAP://CN=$username,$OU,$DC"); $oContainer->{AccountDisabled} = 0; # FALSE $oContainer->SetInfo();

There's really nothing you can do in VBS that you can't do in perl... and using an all-perl solution is faster & safer.

Replies are listed 'Best First'.
Re: Re: Re: Changing Dial-In options for Windows 2000
by tachyon (Chancellor) on Mar 03, 2003 at 23:01 UTC

    Cool! ++ As for why. Quick and dirty hack to get the job done leveraging VBS? and (limited) Perl knowledge. Your way is much neater. I just did not know about it at the time when we needed it done yesterday ;-) I have only relatively recently started to use Win32::OLE.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print