Ask your Seven xml ? here Sample .xml's including Audit Mode for DVD and other Install's
#401
Posted 29 June 2012 - 05:23 PM
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/VALUE</Key>
<value>1</value> and so forth upto <value>4</value>
that bit is fine and dandy but the naming of the pcs , i will be sharing all pcs on a network so each of the 64 bit ones have to have their own individual name , could i possibly add like <key>IMAGE\VALUE</key> value variable to the specialize for naming each of the 64 bit pcs according to the image number they were run from
#402
Posted 30 June 2012 - 10:15 AM
<ComputerName>*</ComputerName>
otherwise you would have to run a script during specialize to name it
Something like this
IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" SET CompName=*_amd64
ECHO "%CompName%"
WMIC ComputerSystem where Name="COMPUTER-NAME" call Rename Name="%CompName%"
This post has been edited by maxXPsoft: 30 June 2012 - 10:17 AM
#403
Posted 30 June 2012 - 11:30 PM
#404
Posted 03 July 2012 - 05:53 AM
Until now I used DVD’s for my unattended Win7.
Here bellow the CommandLine I used
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>About 275 Portable Utilities</Description>
<CommandLine>cmd /C start /wait c:\Install\UtilsPortable.exe</CommandLine>
</SynchronousCommand>
I finished preparing an unattended Win7 and softwares (16 GB) USB key thanks to Rufus utility
What will be the CommandLine to install an external prog since that prog is located into the same Win7 USB key?
I'll appreciate yr help
#405
Posted 03 July 2012 - 06:42 PM
coucou, on 03 July 2012 - 05:53 AM, said:
I'll appreciate yr help
CDROM variable used same way Post 102 http://www.msfn.org/...post__p__953464
Course can change to whatever like %USBkey%
#406
Posted 04 July 2012 - 01:08 AM
I'll give a try
BTW, may you please let me knwo when the SetupComplete.cmd start, before or after SynchronousCommand (Autounattend.xml)?
Regards
This post has been edited by coucou: 04 July 2012 - 03:17 AM
#407
Posted 04 July 2012 - 12:31 PM
coucou, on 04 July 2012 - 01:08 AM, said:
SetupComplete.cmd:
Add a Custom Script to Windows Setup
Quote
SynchronousCommand:
<FirstLogonCommands> with <SynchronousCommand wcm:action="add">
Quote
When a user with administrative privileges logs in for the first time, these commands are run with elevated access privileges.
Regards
#409
Posted 05 July 2012 - 06:32 AM
I password protect my user install and even the Administrator account I set a pass.
That is how I know it run before logon cause the commands are seen executing. You won't see setupcomplete running though, only commands within it I see some pop up.
#411
Posted 08 July 2012 - 05:35 AM
In theory Setupcomplete.cmd runs after Windows Setup completes while the RunSynchronous commands run during Windows Setup. The partice belie that result.
I did by 3 times a test of SetupComplete.cmd vs SynchronousCommand (Autounattend.xml), when WPI.cmd is launched from SynchronousCommand 4 (see here bellow) or from Setupcomplete.cmd.
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>UberPack v2.0.2 x64 several utilities</Description>
<CommandLine>cmd /C start /wait c:\Install\Win7_UberPacK_HEN_v2.0.2_x64.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Internet Explorer 9 French and Hebrew Languages adding</Description>
<CommandLine>cmd /C start /wait c:\Install\IE9_langs_Install.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>About 275 Portable Utilities</Description>
<CommandLine>cmd /C start /wait c:\Install\UtilsPortable.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<Description>Windows Post Install Wizard</Description>
<CommandLine>cmd /C start /wait c:\Windows\Setup\scripts\WPI.cmd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>.
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>UberPack v2.0.2 x64 several utilities</Description>
<CommandLine>cmd /C start /wait c:\Install\Win7_UberPacK_HEN_v2.0.2_x64.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Internet Explorer 9 French and Hebrew Languages adding</Description>
<CommandLine>cmd /C start /wait c:\Install\IE9_langs_Install.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>3</Order>
<Description>About 275 Portable Utilities</Description>
<CommandLine>cmd /C start /wait c:\Install\UtilsPortable.exe</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<Description>Windows Post Install Wizard</Description>
<CommandLine>cmd /C start /wait c:\Windows\Setup\scripts\WPI.cmd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
When WPI.cmd is launched from SynchronousCommand 4, it started after the SynchronousCommand 1, 2 and 3.
When WPI.cmd is launched from Setupcomplete.cmd, it started at least before the SynchronousCommand 3, if not before 1,2 and 3.
Regards
#412
Posted 08 July 2012 - 11:00 PM
Quote
Note:
Commands in the Setupcomplete.cmd file are executed with local system privilege.
After Windows is installed but before the logon screen appears, Windows Setup searches for the SetupComplete.cmd file in the %WINDIR%\Setup\Scripts\ directory.
If a SetupComplete.cmd file is found, the file is executed. Otherwise, installation continues normally. Windows Setup logs the action in the Setupact.log file.
Note:
You cannot reboot the system and resume running SetupComplete.cmd.
Setup does not verify any exit codes or error levels in the script after executing SetupComplete.cmd.
The functionality of Setupcomplete.cmd differs from the RunSynchronous and RunAsynchronous commands in the following way: Setupcomplete.cmd runs after Windows Setup completes, while the RunSynchronous and RunAsynchronous commands run during Windows Setup.
This post has been edited by maxXPsoft: 08 July 2012 - 11:01 PM
#413
Posted 30 July 2012 - 01:57 PM
I do the same for processorArchitecture="wow64" btw, just in case both versions of IE are being used.
I even tried with untouched default Win7 image, just adding the answer file. Boom. Something is clearly wrong but I have no idea what
<settings pass="specialize">
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableAccelerators>true</DisableAccelerators>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<DisableWelcomePage>true</DisableWelcomePage>
<DisableOOBAccelerators>true</DisableOOBAccelerators>
<EnableLinksBar>false</EnableLinksBar>
<FavoritesDelete>true</FavoritesDelete>
<Home_Page>http://www.google.com</Home_Page>
<SuggestedSitesEnabled>false</SuggestedSitesEnabled>
<ShowInformationBar>true</ShowInformationBar>
<SearchScopes>
<Scope wcm:action="add">
<DisplayQuickPick>false</DisplayQuickPick>
<ScopeKey>Search1</ScopeKey>
<ScopeDisplayName>Google</ScopeDisplayName>
<ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl>
<ScopeDefault>true</ScopeDefault>
<FaviconURL>http://www.google.com/favicon.ico</FaviconURL>
<ShowSearchSuggestions>false</ShowSearchSuggestions>
</Scope>
</SearchScopes>
<DisableDevTools>true</DisableDevTools>
</component>
</settings>
Attached File(s)
-
IEsearch-bug.jpg (41.14K)
Number of downloads: 6
#414
Posted 30 July 2012 - 02:29 PM
Just accidentally managed to find an answer! http://support.micro....com/kb/2444193
Shame on you MS, this is just ridiculous! Of course I bet they will not bother fixing it at all.
#415
Posted 31 July 2012 - 06:27 AM
I run the 32 bit IE because most plugins and stuff work with it so guess that why my scopes did work.
#416
Posted 31 July 2012 - 06:41 AM
The whole thing behaves weirdly anyway. You would expect that setting a search scope in the way I posted here would change things accordingly, but no.
It SEEMS that if you capture such installation where you actually run IE, but cancel the configuration wizard and only change couple different things, the scopes just cannot be set the way you want anyway. After installing with such image the default scope would still be Bing, and Google would be another in the list, which is totally not what I expected. This really baffles me because I need (wan) to set a couple things like opening tabs in the same window, removing few items from the menu bar etc. Grr!
Any ideas?
This post has been edited by TheWalrus: 31 July 2012 - 06:42 AM
#417
Posted 03 August 2012 - 02:27 AM
I tried numerous combinations but everything failed. It seems real simple when explained on technet.
I need this for my Virtual Machine xml where there is only one disk (no partitions). Or maybe i cant be done? meaning there should be atleast one partition on the drive. It cant create partition unattended?
This post has been edited by Tomorrow: 03 August 2012 - 02:30 AM
#418
Posted 03 August 2012 - 06:50 AM
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserData>
<Organization>TEST</Organization>
<FullName>test</FullName>
<AcceptEula>true</AcceptEula>
</UserData>
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Size>100</Size>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Label>system</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Main</Label>
<Letter>C</Letter>
<Order>2</Order>
<PartitionID>2</PartitionID>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows 7 ULTIMATE</Value>
</MetaData>
</InstallFrom>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
<WillShowUI>OnError</WillShowUI>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
</OSImage>
</ImageInstall>
</component>
</settings>
This post has been edited by myselfidem: 03 August 2012 - 06:55 AM
#419
Posted 05 August 2012 - 12:22 PM
myselfidem, on 03 August 2012 - 06:50 AM, said:
I will use this only for virtual machine as im not comfortable using it on real drives (bad suprise to see your data drive wiped out of existance lol).
This post has been edited by Tomorrow: 05 August 2012 - 12:22 PM
#420
Posted 05 August 2012 - 12:33 PM
Tomorrow, on 05 August 2012 - 12:22 PM, said:
Yes, the Disk will be wiped!
*Edit: Unfortunatly we can't keep others partitions, because the full Disk is wiped even if we use: <WillShowUI>Always</WillShowUI>with the example given above!
This post has been edited by myselfidem: 10 August 2012 - 01:28 AM
- ← Powerplan setting by unattend.xml
- Unattended Windows 7/Server 2008R2
- Batch script to install Updates Takes Forever! →



Help
Back to top










