[Technic] I now like the AutoIt Script :)
sgmayo at mail.bloomfield.k12.mo.us
sgmayo at mail.bloomfield.k12.mo.us
Fri Aug 3 07:04:59 CDT 2007
Thanks to Patti and Bill for pointing out the AutoIt scripter. I hated it
for about a day since I could not get my script to run correctly, but now
I like it. I won't be setting any more teachers up as admins on their
computer so that they can run Sisfin. Just in case anyone else decides
they want to try it, here is the script that I have. I could not get mine
working, but finally asked on the AutoIt forum and they replied right
away. He replied that he thought mine should have worked also, but here
is what he gave me so that the mapping and run ran on one line.
local $user = "username"
local $domain = "domain"
local $passwd = "password"
RunAsSet($user, $domain, $passwd)
Run (@comspec & " /c net use s: \\server\share && S:\test.exe",
@WindowsDir, @SW_MINIMIZE)
I then set the username and passwd to my own user name and password. I
added myself to the administrator account on the computer. I let AutoIt
compile the above so that the password and username are not seen and
dropped the executionable on the desktop (the 'default user' desktop) in
place of the Sisfin shortcut.
I actually got two things out of doing it this way. The teachers can all
log into a computer and run sisfin without being an administrator and I am
also an administrator on all of the computers. There have been several
times that I was logged on as myself and needed to do something but could
not since I was not in the administrator group on the computer, but now I
can.
In case anyone else is thinking about using this. I want to point out
that you only have to install AutoIt on your one computer. The compiled
script is a stand alone executionable and will run on any computer.
Also, you don't have to be in a domain, you could just use the computer
name and a local administrator if you wanted to.
Thanks again to Bill and Patti for pointing this thing out.
Scott
More information about the Technic
mailing list
|