Remotely Installing Meditech Magic Workstation 4.x
This is an AutoIt script
that can be used to remotely Install Meditech Magic Workstation 4.x
After installing AutoIt this script can be compiled in to an executable,
and since you have to be a superuser to install the Workstation there is a
RunAs function.
Now the superuser's password is stored in the script, so this could be a security issue.
After it's compiled to an executable, I haven't been able to pull the password out, butÂ
use at your own risk.
Here are some features of AutoIt from their website.
Features:
- Easy to learn BASIC-like syntax
- Simulate keystrokes and mouse movements
- Manipulate windows and processes
- Interact with all standard windows controls
- Scripts can be compiled into standalone executables
- Create Graphical User Interfaces (GUIs)
- COM support
- Regular expressions
- Directly call external DLL and Windows API functions
- Scriptable RunAs functions
- Detailed helpfile and large community-based support forums
- Compatible with Windows 95 / 98 / ME / NT4 / 2000 / XP / 2003 / Vista / 2008
- Unicode and x64 support
- Digitally signed for peace of mind
- Works with Windows Vista's User Account Control (UAC)
#include
#Include
_Main()
Func _Main()
ToolTip('Script is installing the newest version of Meditech',0,0)
BlockInput(1)
Sleep(500)
; Fill in the username, password, domain, directory and program appropriate for your system.
Local $sUserName = "superuser"
Local $sPassword = "XXXXXXXXX" ; Your superuser password goes here 'use at your own risk'
Local $sDomain = "yourwindowsdomain"
Local $sDir = "\\fileprintserver\share\test"
Local $sProg = "\\fileprintserver\share\test\MT4-22.exe"
; Run a command prompt as the other user.
Local $pid = RunAsWait($sUserName, $sDomain, $sPassword, 2, $sProg, $sDir)
; Wait for the process to close.
ProcessWaitClose($pid)
BlockInput(0)
ToolTip("")
EndFunc
-Dave
Labels: AutoIt, Magic Workstation
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home