Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

GUI script to reboot a Windows partition back to an OS X partition System
You can use AutoIT, a free basic-like GUI scripting application to automate the bootcamp.exe in Windows to force a reboot back into OS X.

This is sort of part 2 to my previous hint found here. This AutoIT script can be automated by whatever mechanism you use to manage a Windows partition on your Macs, like Active Directory, Citrix, Novell/Netware, SCCM, or other third party tools to run scripts and policies in your enterprise.

It basically just opens the Boot Camp executable file in Windows and then simulates mouse clicks. This is how I forced users back into OS X after non admins would boot into Windows. Here is the script:
;; boot_to_osx.au3
;;
;; there's no way to do this with the command line or anything,
;; so here's a little autoit script to use apple's provided
;; utility to bless the OSX drive.
 
#requireadmin
Local $dom = envget("USERDOMAIN")
;;runas("maptestadmin",$dom,"m4pt3st",0,"C:\Windows\system32\AppleControlPanel.exe")
Run("C:\Windows\system32\AppleControlPanel.exe")
WinWait("Boot Camp Control Panel")
WinActivate("Boot Camp Control Panel")
WinWaitActive ("Boot Camp Control Panel")
ControlClick ("Boot Camp Control Panel", "", "[CLASSNN:SysListView321]", "left", 1, 40, 20)
ControlClick("Boot Camp Control Panel", "OK", 1)
Run("C:\Windows\system32\shutdown.exe -f -r -t 0")
You can find the AutoIT software from their site, and it is a free product. In our case we had Zen Works auto launch and monitor our testing application that users needed to use Windows on. Once that process was terminated in any way at all, the AutoIT script kicked off and forced a user back into OS X. We only wanted our users using Windows for that single application and nothing else.

[crarko adds: I haven't tested this one.]
    •    
  • Currently 3.33 / 5
  You rated: 2 / 5 (6 votes cast)
 
[4,068 views]  

GUI script to reboot a Windows partition back to an OS X partition | 3 comments | Create New Account
Click here to return to the 'GUI script to reboot a Windows partition back to an OS X partition' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
GUI script to reboot a Windows partition back to an OS X partition
Authored by: sharby on Jun 03, '11 07:54:56AM

Actually, you've been able to do this from the command line since BootCamp 3.0. See this support article from Apple: http://support.apple.com/kb/HT3802



[ Reply to This | # ]
GUI script to reboot a Windows partition back to an OS X partition
Authored by: dougmaui on Jun 05, '11 12:46:19PM

I was also trying to move folders out from underneath a parent to the root drive. I could command-drag each individually, but I had 500 folders to move. I looked around and couldn't find a reasonable way to move multiple folders to the root at the same time. I stumbled across Shift-Drag and this did exactly what I was looking for. If you select a large group using shift-click top and shift-click bottom, then you need to command-click the last folder on the list or you will just get a single folder move (it unselects) when you move to your new location.

Trés simplement!



[ Reply to This | # ]
GUI script to reboot a Windows partition back to an OS X partition
Authored by: tom larkin on Jun 06, '11 07:20:53AM

Sharby,

Your link doesn't go anywhere. Boot camp cannot Managed anything with in Windows to my knowledge. This is a script you can use Windows directory services or management software to run via a policy.

Edited on Jun 06, '11 07:21:13AM by tom larkin



[ Reply to This | # ]