Jump to content

Windows 7 - Basics


Raoul

Recommended Posts

Hello All,

I just went from XP to Windows 7 RTM (X86).

I never used Vista.

So now I am trying to find out the basics of Unattended Windows 7.

I found out that AIK can help me with the answerfile, I just need to go through all the lines, and edit where needed.

But I have some questions also, like:

- The $OEM$ folder, can I still use this in Windows 7?

- The CMDlines.txt, does this work on Windows 7?

- Is there some sort or RunOnceEx?

Or something else to call executables?

One other question, in XP I had to extract all file from the image and then edit them and rebuild iso.

I assume Windows 7 works in that way also? But since I had to extract install.wim only to make the answerfile, I am not sure about this.

Im gonna check the Windows 7 Toolkit later today.

All help is welcome! Thanks in advance! :thumbsup_anim:

edit:

Found something:

RunSynchronousRunSynchronous specifies one or more commands to run synchronously on the system during the windowsPE configuration pass. RunSynchronous commands are executed in the order specified in the section; each command must finish before the next command runs.

RunSynchronous commands are always executed before RunAsynchronous commands in the same pass.

All RunSynchronous commands run in the system context.

Thats something like cmdlines/runonceex.

But is it possible to call a file from the DVD? (With XP you had runonceex from cd).

Edited by Raoul
Link to comment
Share on other sites

Edit:

Changed file name to autounattend.xml.

Edited a lot, also added username etc. etc.

Only thing to do for me during setup should be partitioning now, maybee some more.

autounattend.xml:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing></servicing>
<settings pass="specialize">
<component name="Microsoft-Windows-UnattendedJoin" 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">
<Identification>
<JoinWorkgroup>MSHOME</JoinWorkgroup>
</Identification>
</component>
<component name="Security-Malware-Windows-Defender" 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">
<DisableAntiSpyware>true</DisableAntiSpyware>
</component>
<component name="Microsoft-Windows-International-Core" 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">
<UILanguage>nl-NL</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>nl-NL</UserLocale>
<SystemLocale>nl-NL</SystemLocale>
<InputLocale>en-US</InputLocale>
</component>
<component name="Microsoft-Windows-IE-InternetExplorer" 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">
<SearchScopes>
<Scope wcm:action="add">
<ScopeDefault>true</ScopeDefault>
<ScopeDisplayName>Google</ScopeDisplayName>
<SuggestionsURL>http://clients5.google.com/complete/search?hl={language}&q={searchTerms}&client=ie8&inputencoding={inputEncoding}&outputencoding={outputEncoding}</SuggestionsURL>
<ScopeUrl>http://www.google.nl/search?hl=en&q={searchTerms}&meta=</ScopeUrl>
<ScopeKey>SearchProvider1</ScopeKey>
<FaviconURL>http://www.google.nl/favicon.ico</FaviconURL>
</Scope>
</SearchScopes>
<Home_Page>http://www.nu.nl</Home_Page>
<ShowInformationBar>true</ShowInformationBar>
<ShowMenuBar>true</ShowMenuBar>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<BlockPopups>yes</BlockPopups>
<FilterLevel>Low</FilterLevel>
<SuggestedSitesEnabled>false</SuggestedSitesEnabled>
<PlaySound>true</PlaySound>
<DisableDataExecutionPrevention>true</DisableDataExecutionPrevention>
<DisableDevTools>false</DisableDevTools>
<DisableAccelerators>true</DisableAccelerators>
<DisableOOBAccelerators>true</DisableOOBAccelerators>
<Help_Page>http://www.google.nl</Help_Page>
<NoDial>true</NoDial>
</component>
<component name="Microsoft-Windows-Security-SPP-UX" 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">
<SkipAutoActivation>true</SkipAutoActivation>
</component>
<component name="Microsoft-Windows-SQMApi" 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">
<CEIPEnabled>0</CEIPEnabled>
</component>
<component name="Microsoft-Windows-SystemRestore-Main" 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">
<DisableSR>0</DisableSR>
</component>
<component name="Microsoft-Windows-Shell-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">
<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
<ComputerName>*</ComputerName>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<RegisteredOrganization>Unattended</RegisteredOrganization>
<RegisteredOwner>Raoul</RegisteredOwner>
<ShowWindowsLive>true</ShowWindowsLive>
<TimeZone>W. Europe Standard Time</TimeZone>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
</component>
</settings>
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" 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">
<SetupUILanguage>
<UILanguage>nl-NL</UILanguage>
<WillShowUI>Never</WillShowUI>
</SetupUILanguage>
<SystemLocale>nl-NL</SystemLocale>
<UILanguage>nl-NL</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>nl-NL</UserLocale>
<InputLocale>en-US</InputLocale>
</component>
<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">
<ComplianceCheck>
<DisplayReport>Never</DisplayReport>
</ComplianceCheck>
<DiskConfiguration>
<WillShowUI>Always</WillShowUI>
</DiskConfiguration>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<VerticalResolution>1024</VerticalResolution>
<RefreshRate>60</RefreshRate>
</Display>
<EnableFirewall>true</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
<DynamicUpdate>
<Enable>true</Enable>
</DynamicUpdate>
<UpgradeData>
<WillShowUI>Never</WillShowUI>
</UpgradeData>
<UserData>
<AcceptEula>true</AcceptEula>
<FullName>Raoul</FullName>
<Organization>Unattended</Organization>
</UserData>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/INDEX</Key>
<Value>1</Value>
</MetaData>
</InstallFrom>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-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">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<RegisteredOwner>Raoul</RegisteredOwner>
<ShowWindowsLive>true</ShowWindowsLive>
<TimeZone>W. Europe Standard Time</TimeZone>
<AutoLogon>
<Enabled>true</Enabled>
<Username>Raoul</Username>
</AutoLogon>
<Display>
<ColorDepth>32</ColorDepth>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
<HorizontalResolution>1024</HorizontalResolution>
<DPI>96</DPI>
</Display>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<DisplayName>Raoul</DisplayName>
<Group>Administrators</Group>
<Name>Raoul</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<VisualEffects>
<FontSmoothing>Standard</FontSmoothing>
</VisualEffects>
<WindowsFeatures>
<ShowInternetExplorer>true</ShowInternetExplorer>
<ShowMediaCenter>true</ShowMediaCenter>
<ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
</WindowsFeatures>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
<RegisteredOrganization>Unattended</RegisteredOrganization>
</component>
<component name="Microsoft-Windows-Sidebar" 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">
<Gadget1>%PROGRAMFILES%\Windows Sidebar\Gadgets\Weather.Gadget</Gadget1>
<Gadget2>%PROGRAMFILES%\Windows Sidebar\Gadgets\Clock.Gadget</Gadget2>
<Gadget3>%PROGRAMFILES%\Windows Sidebar\Gadgets\Calendar.Gadget</Gadget3>
<Gadget4>%PROGRAMFILES%\Windows Sidebar\Gadgets\Radio538.Gadget</Gadget4>
</component>
</settings>
<settings pass="offlineServicing">
<component name="Microsoft-Windows-LUA-Settings" 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">
<EnableLUA>false</EnableLUA>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:d:/7work/dvd/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by Raoul
Link to comment
Share on other sites

well about runonce

you should see this

and this

both of them answers your own question

Yes, I just saw those, im gonna try that instead of the runblabla in xml.

But I would appreciate it if someone can help me a bit with the answerfile, im stuck.

edit:

Okay, updated a lot.

Hopefully it will work.

I assume the setupcomplete.cmd is called by the setup, no user interference needed?

I havent tried George his way, since I need a more specified explanation of how it works.

Edited by Raoul
Link to comment
Share on other sites

Hello,

Update:

Answerfile is working fine, need some adjustments tho.

setupcomplete.cmd is working fine! :)

Things I need help with atm:

- I dont set a password in my answerfile, since im never using passwords at my homepc.

At the end of the setup of Windows 7 it tells me that I have to change my password, that I dont have, so I change it from nothing to nothing, but is there a way to do this with the answerfile?

Things I'm still looking for:

- Small Icons on desktop.

- IE8 and Computer Icon on desktop.

- Power Options, Screen off in 20 minutes and computer to sleep mode -> never.

- I want to see file-extensions, how? :) -> Done!

- I want "Run.." in start-menu, how? :) -> Done!

Thanks in advance!! (Y)

Edited by Raoul
Link to comment
Share on other sites

Hello,

Update:

Answerfile is working fine, need some adjustments tho.

setupcomplete.cmd is working fine! :)

Things I need help with atm:

- I dont set a password in my answerfile, since im never using passwords at my homepc.

At the end of the setup of Windows 7 it tells me that I have to change my password, that I dont have, so I change it from nothing to nothing, but is there a way to do this with the answerfile?

- I want to pre-set the small icons on desktop, how? :)

- I want to have IE8 and (My) Computer icon on dekstop, how? :)

- I want to see file-extensions, how? :)

- I want "Run.." in start-menu, how? :)

Thanks in advance!! (Y)

that is a Registry tweaks

but sadly i can't find any registry for Win 7 yet

so you can do it by your self

first set then to another setting just remove the icon from desktop

and remove see extension and remove Run in start menu

then install "InstallWatch"

and just do the Tweaks and it will get the registry

Link to comment
Share on other sites

Hmm, can someone explain InstallWatch, since it doesnt do anything?

How can I follow the things that are written to registry when addin IE8 and Computer icon to desktop?

Edited by Raoul
Link to comment
Share on other sites

Hmm, can someone explain InstallWatch, since it doesnt do anything?

How can I follow the things that are written to registry when addin IE8 and Computer icon to desktop?

ok sure

just remove the ie icon from desktop

then go to install watch

and go to SnapShot button

then wait until it's done

then minimize it

then go and add IE Icon

then go back to install watch

and click on analyze

it would make the different between two snapshot

and the registry changed should be found

Link to comment
Share on other sites

ok sure

just remove the ie icon from desktop

then go to install watch

and go to SnapShot button

then wait until it's done

then minimize it

then go and add IE Icon

then go back to install watch

and click on analyze

it would make the different between two snapshot

and the registry changed should be found

Thanks dude! :thumbsup_anim:

edit:

Unfortunately it doesnt work that way, I checked the whole exported .reg file, copied only the following:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]
"IconSize"=dword:00000020

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"PromptOnSecureDesktop"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\381b4222-f694-41f0-9685-ff5bb260df2e\238c9fa8-0aad-41ed-83f4-97be242c8f20\29f6c1db-86da-48c5-9fdb-f2b67b1f44da]
"ACSettingIndex"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\381b4222-f694-41f0-9685-ff5bb260df2e\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e]
"ACSettingIndex"=dword:000004b0

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
"SystemPowerPolicy"=hex:01,00,00,00,00,00,00,00,00,00,00,00,10,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,5a,00,00,00,02,00,00,00,04,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,05,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,0a,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,b0,04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,b0,04,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,

All the other stuff was not good, were other things. (All HKU).

- The registry entry to get Small icons on Desktop

- The registry entry to add desktop icons of IE8 and Computer.

- The registry enty for Power Options, since I want to turnoff Sleep Mode / Hibernate.

Edited by Raoul
Link to comment
Share on other sites

  • 3 weeks later...

Quick question:

I want to remove some icons made by installed programs, but this doesnt work in my cleanupscript:

DEL "%UserProfile%\Bureaublad\VLC media player.lnk"
DEL "%UserProfile%\Bureaublad\QuickTime Player.lnk"
DEL "%UserProfile%\Bureaublad\Malwarebytes' Anti-Malware.lnk"
DEL "%UserProfile%\Bureaublad\Adobe Reader 9.lnk"

Or should I use Desktop instead of the Dutch Bureaublad, I am using Dutch Win7 image.

??

Edited by Raoul
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...