Sommerville Posted May 21, 2010 Share Posted May 21, 2010 (edited) Hi All,I'm working on an unattended SOE build for my company. I've done this before for XP and got lots of useful info from this site.Issue:How to select " Auto Arrange " for DESKTOP ICONS in W7 using a script or reg patchQuestion:How are other people getting this to work for their W7/W2K8 installs?How I got to work in XP:I used a VBS script to get this working in Windows XP which looked like this. I've tried to reuse by reintroducing the "Show Desktop.scf" file into the Windows 7 build and also tried to use WINDOWS+D to show desktop however neither step works when I actually script it.Dim Act, AppData, Fso, SDSet Act = CreateObject("WScript.Shell")Set Fso = CreateObject("Scripting.FileSystemObject")SD = Act.ExpandEnvironmentStrings("%Systemdrive%")AppData = Act.ExpandEnvironmentStrings("%Appdata%")AppData = AppData & "\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf" Act.Run(Chr(34) & AppData & Chr(34))WScript.Sleep 1500Act.sendkeys "{F5}"WScript.Sleep 800Act.sendkeys "+{F10}"WScript.Sleep 100Act.sendkeys "I"WScript.Sleep 100Act.sendkeys "A"WScript.Sleep 500Act.sendkeys "+{F10}"WScript.Sleep 500Act.sendkeys "%+{TAB}" WScript.Sleep 500Act.sendkeys "%+{TAB}" THANKS FOR YOUR HELP / SUPPORTAlan. Edited May 21, 2010 by Sommerville Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now