#43299 - 2003-07-24 03:51 PM
Using Sendkeys problem
|
BMahon
Fresh Scripter
Registered: 2003-07-02
Posts: 7
Loc: Kilkenny, Ireland
|
Hi. I have this problem when using Sendkeys. I am using the following code to run a program with adminstrative rights. It works on about half of the machines. On the machines where it doesn't work the Runas dialog box becomes stuck on their Windows 2000 screen. It is awaiting a password entry. Would it be possible that the Sendkeys password was implemented to quickly into the Runas dialog box? See below for the code that I am using: (Please not thet this code segment is contained within an IF statement).
SETTITLE ("SENDKEYS")
run 'runas /user:domainname\username
"\\servername\Ant-virusV\AVcheck.bat"'
$SK SetFocus ("SENDKEYS")
$SK= sendkeys("password{enter}")
|
Top
|
|
|
|
#43305 - 2003-07-25 11:29 AM
Re: Using Sendkeys problem
|
BMahon
Fresh Scripter
Registered: 2003-07-02
Posts: 7
Loc: Kilkenny, Ireland
|
The account does not use a Domain Adminsitrator account...just an account that is added to the local adminstrators group using Windows Group Policy...Also on completion, the script will be encrypted. Still having trouble tring to implement the while using my code example. Thanks
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 515 anonymous users online.
|
|
|