Something like this should work:
use Win32::AdminMisc;
$domain = "MYDOMAIN";
$pdc = Win32::AdminMisc::GetPDC($domain);
@names = qw(guest administrator);
$oldpassword = "foo";
$newpassword = "bar";
Win32::AdminMisc::GetMachines($pdc,UF_WORKSTATION_TRUST_ACCOUNT|UF_SERVER_TR
UST_ACCOUNT,\@machine
Hi all,
It's embarassing to ask again but does anyone has a script
that can change the local passwords on a mixed farm of NT and 2000 pro?
Thanks
:)Sherman
___
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState
To eliminate problems like this, Microsoft provides a program called
"QCHAIN.EXE".
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q296861
-Original Message-
From: Edward G. Orton [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:36 AM
To: Tom Bryan; Timothy Johnson; Pe
- Original Message -
From: "Tom Bryan" <[EMAIL PROTECTED]>
To: "Timothy Johnson" <[EMAIL PROTECTED]>; "Perl-win32"
<[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 2:23 PM
Subject: Re: pass keystrokes
> Well that seems to work wonderfully. Good to know as well.
Thanks for
> your help
>
Well that seems to work wonderfully. Good to know as well. Thanks for
your help
-Tom
Timothy Johnson wrote:
>
> Actually, the patch files themselves have switches that will suppress
> rebooting. I think for most of them the switch is "/r:n".
>
> -Original Message-
> From: macnerd [m
Thank you to all who have made suggestions or sent code snippets. I
think I have enough now to make it work but I'll have to play with it a
bit to get the hang of it. We're short-handed here this weekend and
have a couple big projects to do so it may be a few days till I catch
up. If I come up
Cool. That's the best way then. GUITest should be
*ONLY* used it there is absolutely no way. But it's
great that its there, because sometimes this situation
exists.
For me, I use OLE Automation for Outlook testing, but
for creating profiles, I'm screwed. M$ encrypts the
stuff in the registry
If all that is left is setting the environment variables, try using
Win32::AdminMisc::SetEnvVar() to finish up the job. It will broadcast the
change to all non-dos programs.
-Original Message-
From: JM [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:17 PM
To: 'Ky-Anh Phan';
Actually, the patch files themselves have switches that will suppress
rebooting. I think for most of them the switch is "/r:n".
-Original Message-
From: macnerd [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 9:02 AM
To: 'Tom Bryan'; [EMAIL PROTECTED]
Subject: RE: pass keystroke
i found it here:
http://www.cpan.org/modules/by-module/Win32/setupsup.1.0.1.0.zip
but it doesnt appear in the folder list. It also looks to be a little
old so maybe
I should go with win32::CtrlGui or win32::Guitest
macnerd wrote:
>
> I did a search for setupsup on both activestate and cpan.
>
Title: RE: keystrokes
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>ppm search setupsup
Packages available from http://Jenda.Krynicky.cz/perl:
Win32-Setupsup [1.0.1] Remote control for windows applications.
C:\>
-Original Message-
From: ma
I did a search for setupsup on both activestate and cpan.
Where does one get information for this tool?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On
> Behalf Of Tom
> Bryan
> Sent: Friday, March 15, 2002 8:11 AM
> To: Perl-win32
> Subject: keystrokes
>
You need to get Win32::GuiTest to put in keystrokes on click on
buttons. There was even a recent article in the Febuary edition
of Windows Developer. I managed to grab a copy from Borders before
they resorted their magazines.
Check out these URLs for more information:
Install and Binaries
Thanks for your help guys, I think I am going with win32:setupsup. I
seems to be what Im looking for
-Tom
___
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
win32::setupsup might do what you need
Tom Bryan <[EMAIL PROTECTED]>
Hi guys,
I have written a perl script, called from a .bat file invoked at logon
and it basically looks through a list of Microsoft OS patches based on
OSbuild and then looks in the registry to see if the machine has the
patch. This all works fine and if you dont have the patch well it does
a sy
not really perl... but, i use netdom and autologin registry keys as well,
note: the nt and 2k netdom tools from the nt/2k resource kits are a little
diffrent.
basically i set the machine up to autologin.. then put a scripts in the
startup menu that
1)calls the relevent scripts below,
2)deletes
17 matches
Mail list logo