<HTML>
<HEAD>
<TITLE>Re: [Casper] boot camp commands on windows</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Tom,<BR>
<BR>
I&#8217;m glad that you&#8217;ve got a working solution, but you and JAMF will have to pardon my soapbox about Apple since I see an Apple email address copied on this message.<BR>
<BR>
I know that one of the folks in our area worked out a similar solution a long while back with screen control, but to me this is a hack and not a real solution. All Apple needs to do is add some simple command line interaction with their application and MANY people would not be going through what you&#8217;ve been going through. I just don&#8217;t get what the hang up is on Apple&#8217;s part, like this request is somehow foreign in an Enterprise environment they seemingly want to be a part of, particularly in education where I think they are pushing dual-platform systems and hardware.<BR>
<BR>
I&#8217;ve gone through my Apple channels with no response regarding this and talk about frustration...<BR>
<BR>
Tom, let us know how reliable this turns out to be for you.<BR>
<BR>
Thanks...and good night.<BR>
<BR>
Craig<BR>
<BR>
On 7/9/08 5:37 PM, &quot;Thomas Larkin&quot; &lt;<a href="TLARKI@kckps.org">TLARKI@kckps.org</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Well,<BR>
<BR>
After a long and hard day of surfing the web and google searching every possibility my Novell/software developer guy I work with actually figured it out. &nbsp;Now, when a user logs into windows there is an object policy in Novell that if they have the bootcamp.exe installed on their machine it will automatically launch the MAP testing software. &nbsp;Now, once they exit the machine it runs a script which invokes a freeware program called autoIT. &nbsp;AutoIT will detect the current open window and can open and execute programs. &nbsp;So we told it to open up the boot camp manager in windows, select OS X start up disk and you can map mouse coordinates for current open windows. &nbsp;He basically mapped out where the OK button is located to reboot and then told it to reboot the system. &nbsp;Then it reboots back into OS X. &nbsp;&nbsp;I found this all on a thread from Bombich's site.<BR>
<BR>
This would also be great for anyone who was deploying dual booting OS X/Windows boxes and wanted the machine to after it was done imaging reboot windows to run sysprep just once, and then reboot back into OS X permanently.<BR>
<BR>
here is the script:<BR>
<BR>
;; boot_to_osx.au3<BR>
;;<BR>
;; there's no way to do this with the command line or anything,<BR>
;; so here's a little autoit script to use apple's provided<BR>
;; utility to bless the OSX drive.<BR>
<BR>
#requireadmin<BR>
Local $dom = envget(&quot;USERDOMAIN&quot;)<BR>
;;runas(&quot;maptestadmin&quot;,$dom,&quot;m4pt3st&quot;,0,&quot;C:\Windows\system32\AppleControlPanel.exe&quot;)<BR>
Run(&quot;C:\Windows\system32\AppleControlPanel.exe&quot;)<BR>
WinWait(&quot;Boot Camp Control Panel&quot;)<BR>
WinActivate(&quot;Boot Camp Control Panel&quot;)<BR>
WinWaitActive (&quot;Boot Camp Control Panel&quot;)<BR>
ControlClick (&quot;Boot Camp Control Panel&quot;, &quot;&quot;, &quot;[CLASSNN:SysListView321]&quot;, &quot;left&quot;, 1, 40, 20)<BR>
ControlClick(&quot;Boot Camp Control Panel&quot;, &quot;OK&quot;, 1)<BR>
Run(&quot;C:\Windows\system32\shutdown.exe -f -r -t 0&quot;)<BR>
<BR>
<BR>
here is the app autoIT<BR>
<BR>
<a href="http://www.autoitscript.com/autoit3/downloads.shtml">http://www.autoitscript.com/autoit3/downloads.shtml</a><BR>
<BR>
<BR>
Here is the bombich link<BR>
<BR>
<a href="http://forums.bombich.com/viewtopic.php?p=45711">http://forums.bombich.com/viewtopic.php?p=45711</a><BR>
<BR>
Of course Steve Rose, the guy I work with is the genius that put it all together.<BR>
<BR>
Thomas Larkin<BR>
TIS Department<BR>
KCKPS USD500<BR>
<a href="tlarki@kckps.org">tlarki@kckps.org</a><BR>
cell: &nbsp;913-449-7589<BR>
office: &nbsp;913-627-0351<BR>
<BR>
&gt;&gt;&gt; &quot;Thomas Larkin&quot; &lt;<a href="TLARKI@kckps.org">TLARKI@kckps.org</a>&gt; 7/9/2008 12:19 PM &gt;&gt;&gt;<BR>
Sorry if this is beating a dead horse, but I even have some peopel at Apple helping me on this one. &nbsp;I am also, on a side note, missing the corporate world now where you don't need to micromanage your users as much.<BR>
<BR>
So, I know that the exe file for boot camp in Windows lives here<BR>
<BR>
C:\Program Files\Boot Camp\KbMgr.exe<BR>
<BR>
I was thinking I could do a simple script like this (and my Windows scripting skills suck)<BR>
<BR>
@echo off<BR>
rem run your program and wait until its done<BR>
start /wait \\path\to\maptest ......<BR>
<BR>
rem bootcampfix &nbsp;....<BR>
C:\Program Files\Boot Camp\KbdMgr.exe&quot;.... &nbsp;Restart in Mac OS X....<BR>
<BR>
rem schedule reboot NOW. during testing change 0 to 60<BR>
rem reboot can be stopped by shutdown -a from a cmd prompt (start menu/run cmd)<BR>
shutdown -r -t 0<BR>
<BR>
However I don't think it works, well I know it doesn't work.<BR>
<BR>
Thomas Larkin<BR>
TIS Department<BR>
KCKPS USD500<BR>
<a href="tlarki@kckps.org">tlarki@kckps.org</a><BR>
cell: &nbsp;913-449-7589<BR>
office: &nbsp;913-627-0351<BR>
<BR>
_______________________________________________<BR>
Casper mailing list<BR>
<a href="Casper@list.jamfsoftware.com">Casper@list.jamfsoftware.com</a><BR>
<a href="http://list.jamfsoftware.com/mailman/listinfo/casper">http://list.jamfsoftware.com/mailman/listinfo/casper</a><BR>
<BR>
_______________________________________________<BR>
Casper mailing list<BR>
<a href="Casper@list.jamfsoftware.com">Casper@list.jamfsoftware.com</a><BR>
<a href="http://list.jamfsoftware.com/mailman/listinfo/casper">http://list.jamfsoftware.com/mailman/listinfo/casper</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>