[Technic] I now like the AutoIt Script :)
pjones
pjones at shs.k12.mo.us
Mon Aug 6 09:34:16 CDT 2007
Your Welcome but it was Bill who pointed the script to me. You think SIS would point people that way, too. We only use the SISFIN not the student records but I assume it is the same way. TElling people they have to run as a local admin is not a good selling point to techs. :)
Patti
-----Original Message-----
From: technic-bounces at lists.more.net on behalf of sgmayo at mail.bloomfield.k12.mo.us
Sent: Mon 8/6/2007 8:33 AM
To: technic at lists.more.net
Subject: Re: [Technic] I now like the AutoIt Script :)
> 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
Btw, Bill had shown me his script also and I was wondering why he had it
delete the sisfin shortcut each time. I now realize why. Each time that
a user has to update Sisfin, it puts the icon back on the desktop, so it
must be deleted. You have to add one more line to the script above, so
the whole script would be:
SCRIPT
local $user = "user"
local $domain = "domain"
local $passwd = "password"
RunAsSet($user, $domain, $passwd)
RunWait (@comspec & " /c net use s: \\bes-serve\sis &&
C:\sisfin\siswin32\sisfin.exe", @WindowsDir, @SW_MINIMIZE)
FileDelete("c:\documents and settings\all users\desktop\sis financial
accounting software.lnk")
That is if when you set sisfin up that you set it up to run for 'anyone
using the computer'. If you set it up for just one user then you would
need to change the 'all users' in the delete command to the name of the
users.
Thanks again Bill and Patti for pointing out this scripter!
Scott
_______________________________________________
Technic mailing list
Technic at lists.more.net
http://lists.more.net/mailman/listinfo/technic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4358 bytes
Desc: not available
Url : http://lists.more.net/archives/technic/attachments/20070806/0e056335/attachment-0001.bin
More information about the Technic
mailing list
|