Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Ask your Seven xml ? here


  • Please log in to reply
598 replies to this topic

#426
Tomorrow

Tomorrow

    Advanced Member

  • Member
  • PipPipPip
  • 375 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Thank you for your detailed answer. It helps me alot.

Edited by Tomorrow, 16 August 2012 - 09:58 AM.



How to remove advertisement from MSFN

#427
Lucius_Snow

Lucius_Snow
  • Member
  • 8 posts
  • OS:none specified
  • Country: Country Flag
Hello all,

Does anybody know how to skip the reboot progress bar with the 10 seconds ? I can't find any entry for this into "autounattend.xml"

Thanks !

#428
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,887 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Way back with early XP i was sitting there one day and clicked the Restart button and on reboot it BSOD. From that day forward I'll wait it out. :w00t:
Probably have to hack a dll. Don't think it is nowhere in xml settings.
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#429
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag
Has anyone seen a barebones template for Windows 8 anywhere. Not looking for fancy, looking for generic so I can refer people here from social.technet.

What do you think Max, should we send W8 people to this thread, would you host the XML's in the first post. My guess is 90% of their questions are gonna already be answered in this thread.

#430
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,887 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Has anyone seen a barebones template for Windows 8 anywhere. Not looking for fancy, looking for generic so I can refer people here from social.technet.

What do you think Max, should we send W8 people to this thread, would you host the XML's in the first post. My guess is 90% of their questions are gonna already be answered in this thread.

I have one picked up from LiveFreeDead. I can add link to first post but I'll show it here cause it does some interesting things to
Enable FirstLogon As Admin
Comp Flags for setupcomplete.cmd


Windows 8 xml is almost exactly same as Win 7. Some things changed

Example Windows 8 xml. Download Link in first post here
Technet - You'll notice some new stuff in <OOBE>

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" 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">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-US</InputLocale>
            <UserLocale>en-US</UserLocale>
            <UILanguage>en-US</UILanguage>
            <SystemLocale>en-US</SystemLocale>
        </component>
        <component name="Microsoft-Windows-Setup" 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">
            <UserData>
                <AcceptEula>true</AcceptEula>
                <ProductKey>
                    <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <Organization>Home</Organization>
                <FullName>Computer</FullName>
            </UserData>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" 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">
            <ComputerName>PCNAME</ComputerName>
        </component>
        <component name="Microsoft-Windows-Deployment" 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">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Description>Enable FirstLogon As Admin</Description>
                    <Path>reg add &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers&quot; /v &quot;%WINDIR%\Setup\Scripts\FirstLogon.cmd&quot; /t REG_SZ /d &quot;RUNASADMIN&quot; /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>4</Order>
                    <Description>Comp Flags for setupcomplete.cmd</Description>
                    <Path>reg add &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers&quot; /v &quot;%WINDIR%\Setup\Scripts\setupcomplete.cmd&quot; /t REG_SZ /d RUNASADMIN /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Enable Admin Account</Description>
                    <Order>5</Order>
                    <Path>net user administrator /active:yes</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" 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">
            <AutoLogon>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Username>Administrator</Username>
            </AutoLogon>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Description>Post Setup OEM</Description>
                    <Order>100</Order>
                    <CommandLine>cmd /c %WINDIR%\Setup\Scripts\FirstLogon.cmd</CommandLine>
                </SynchronousCommand>
            </FirstLogonCommands>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <NetworkLocation>Home</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            </OOBE>
            <TimeZone>Tasmania Standard Time</TimeZone>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Description>Default Administrator Account</Description>
                        <DisplayName>Administrator</DisplayName>
                        <Group>Administrators</Group>
                        <Name>Administrator</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
        </component>
        <component name="Microsoft-Windows-International-Core" 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">
            <InputLocale>en-AU</InputLocale>
            <SystemLocale>en-AU</SystemLocale>
            <UILanguage>en-AU</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>en-AU</UserLocale>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:f:/build8/win8x64/sources/install.wim#Windows 8 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by maxXPsoft, 01 September 2012 - 07:42 PM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#431
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Way back with early XP i was sitting there one day and clicked the Restart button and on reboot it BSOD. From that day forward I'll wait it out. :w00t:
Probably have to hack a dll. Don't think it is nowhere in xml settings.

I agree with you maxXPsoft, and yes it's needed to hack a dll.

Regards
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#432
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag
Thanks Max. I ripped out the stuff I didn't like, made it en-US across the board and put it to Chicago time. Readers just need to search for "EDIT" and make minor changes. I've tested the x86 version in a VM and it worked for me.

Windows 8 - x86

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <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>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-US</InputLocale>
            <UserLocale>en-US</UserLocale>
            <UILanguage>en-US</UILanguage>
            <SystemLocale>en-US</SystemLocale>
        </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">
            <UserData>
                <AcceptEula>true</AcceptEula>
                <ProductKey>
                     <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>                                               
                     <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <Organization>EDIT</Organization>
                <FullName>EDIT</FullName>
            </UserData>
        </component>
    </settings>
    <settings pass="specialize">
        <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-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">
            <ComputerName>EDIT</ComputerName>
        </component>
        <component name="Microsoft-Windows-Deployment" 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">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Enable Admin Account</Description>
                    <Order>1</Order>
                    <Path>net user administrator /active:yes</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </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>
                <HideLocalAccountScreen>false</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>false</HideOnlineAccountScreens> 
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Home</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>             
            </OOBE>
            <TimeZone>Central Standard Time</TimeZone>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                    <Password>
                        <Value>EDIT</Value>
                        <PlainText>true</PlainText>
                    </Password>
                        <Description>Default Administrator Account</Description>
                        <DisplayName>Administrator</DisplayName>
                        <Group>Administrators</Group>
                        <Name>Administrator</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
        </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">
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>en-US</UserLocale>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:f:/build8/win8x64/sources/install.wim#Windows 8 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Windows 8 - amd64

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" 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">
            <SetupUILanguage>
                <UILanguage>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-US</InputLocale>
            <UserLocale>en-US</UserLocale>
            <UILanguage>en-US</UILanguage>
            <SystemLocale>en-US</SystemLocale>
        </component>
        <component name="Microsoft-Windows-Setup" 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">
            <UserData>
                <AcceptEula>true</AcceptEula>
                <ProductKey>
                     <Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>                                               
                     <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <Organization>EDIT</Organization>
                <FullName>EDIT</FullName>
            </UserData>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Security-SPP-UX" 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">
            <SkipAutoActivation>true</SkipAutoActivation>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" 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">
            <ComputerName>EDIT</ComputerName>
        </component>
        <component name="Microsoft-Windows-Deployment" 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">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Description>Enable Admin Account</Description>
                    <Order>1</Order>
                    <Path>net user administrator /active:yes</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" 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">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>false</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>false</HideOnlineAccountScreens> 
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Home</NetworkLocation>
                <ProtectYourPC>3</ProtectYourPC>            
            </OOBE>
            <TimeZone>Central Standard Time</TimeZone>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                    <Password>
                        <Value>EDIT</Value>
                        <PlainText>true</PlainText>
                    </Password>
                        <Description>Default Administrator Account</Description>
                        <DisplayName>Administrator</DisplayName>
                        <Group>Administrators</Group>
                        <Name>Administrator</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
        </component>
        <component name="Microsoft-Windows-International-Core" 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">
            <InputLocale>en-US</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>en-US</UserLocale>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:f:/build8/win8x64/sources/install.wim#Windows 8 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

EDIT: Added skip auto activation to specialize pass for preserving readers MAK keys. I'll need to double check the oobe, there might be a few useless settings in this, work in progress

Edited by MrJinje, 02 September 2012 - 04:59 AM.


#433
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Question:

<ProtectYourPC>, what exactly do the settings do?

I know which popup it is and what the values are, but it's not exactly clear what they do.

1 Specifies the recommended level of protection for your computer.
2 Specifies that only updates are installed
3 Specifies that automatic protection is disabled.

blabla... What in the hell is recommended level of protection? What's automatic protection?



#434
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,761 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

blabla... What in the hell is recommended level of protection? What's automatic protection?


It picks from the 3 Update options in OOBE. I can't find a good picture of it, but it is equivalent to "Install Updates Automatically (Recommended)" option in the "Choose how Windows can install updates" page in Control Panel.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#435
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Do you mean it is ONLY related to Windows Update? The description is bloody confusing!

#436
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,887 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Yes description is not good. You must set it or get the popup. I have always used <ProtectYourPC>3</ProtectYourPC> so it may be also for defender and Security essentials if you have nothing else.
I also use reg to make sure at Firstlogoncommands it checks but let me decide.
;62 Microsoft Update settings
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000002
"IncludeRecommendedUpdates"=dword:00000001
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#437
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Yeah I am doing more or less the same thing and it works like a charm.

I absolutely hate how by default WU installs those screwed up drivers for everything before you remember to check what's going on in the background. Usually the bloody thing gladly overwrites drivers you install during unattended setup!




I am a bit lost with something else atm though. I am playing around with some cosmetic nonsenses. Right now I am trying to set an icon for the standard windows.delete shell command, but there's permissions problem of some sort. I've always sucked at understanding this part of Windows, unfortunately.

What I want to do is mount an image, load registry, and change some values. 99% of things work well, but for (I assume) security reasons some keys are kind of protected or locked.
This is what I'm trying to import into the mounted registry:
[HKEY_LOCAL_MACHINE\Wim_Software\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.delete]
"Icon"="imageres.dll,-89"

I just can't change this value at all. Digging into it a little I realized the local administrator account I am running under only has read permissions! Wth! I eventually managed to take ownership and change it, but it's pain in the a**, and naturally this is supposed to be part of what a batch file does. How should I go around this specific thing?

Edited by TheWalrus, 28 September 2012 - 11:28 AM.


#438
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,761 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

Do you mean it is ONLY related to Windows Update? The description is bloody confusing!


It certainly is. And the worst part is there is no setting you can use to pick the "Check for updates but let me choose whether to download and install them" setting. :(

I just can't change this value at all. Digging into it a little I realized the local administrator account I am running under only has read permissions! Wth! I eventually managed to take ownership and change it, but it's pain in the a**, and naturally this is supposed to be part of what a batch file does. How should I go around this specific thing?


What had the permission before? Was it TrustedInstaller?
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#439
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Yup, trustedinstaller. No idea what that is.

#440
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
About Trustedinstaller:

Windows Resource Protection

The "Trusted Installer" account is used to secure core operating system files and registry keys. Protected files and registry keys have an access control list applied that prevents other user accounts and programs that execute under any other user account except the TrustedInstaller account from making changes.


You need takeownership to change a file protected with owner trustedinstaller !

About Auto Update, I use this reg file, like shown by maxXPsoft:

AutoUpdate.reg
Windows Registry Editor Version 5.00

;-------------------------------------------------------------------
; - Configuring Automatic Updates: Options Updates Windows Updates -
;-------------------------------------------------------------------
; AUOptions:1|2|3|4 
; 1 = Never check for updates (not recommended)
; 2 = Search for updates but let me choose whether to download and install
; 3 = Download updates but let me choose whether to install them
; 4 = Install updates automatically
; ScheduledInstallDay 
; Range = 0|1|2|3|4|5|6|7. 0 = Each day; 1 to 7 = days of the week from Sunday (1) to Saturday (7)
; Recommendation = 0 
; ScheduledInstallTime 
; Range = n; where n = Time of day in 24-hour format (0-23). Recommendation = 1 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
"ConfigVer"=dword:00000001
"ElevateNonAdmins"=dword:00000001
"AUOptions"=dword:00000004
"ScheduledInstallDay"=dword:00000000
"ScheduledInstallTime"=dword:00000003
"IncludeRecommendedUpdates"=dword:00000001
"EnableFeaturedSoftware"=dword:00000001

Edited by myselfidem, 29 September 2012 - 01:52 AM.

For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).

#441
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,038 posts
  • OS:none specified
  • Country: Country Flag
Hey Walrus, if you want to try editing the registry as trustedinstaller without changing permissions, might be easier with the dvexexec.exe tool

devxexec.exe /user:TrustedInstaller regedit.exe

Or maybe you can edit this snip to reg add as TrustedInstaller at the command line. Keeps it simple and stupid, compared to batch scripting SetACL take ownership. EDIT: It cannot pass a variable to the command line, but it can run a batch file directly, so that's a start.

devxexec.exe /user:TrustedInstaller mybatch.cmd

reg add HKLM\Wim_Software\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.delete /v "Icon" /t REG_EXPAND_SZ /d "C:\pathto\myicon.ico"

Edited by MrJinje, 30 September 2012 - 06:06 AM.


#442
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

That doesn't sound bad. Will give it a shot. Thanks.

#443
Mikka

Mikka

    Junior

  • Member
  • Pip
  • 80 posts
  • OS:none specified
  • Country: Country Flag
Hi,

I've got an annoying problem with my current autounattend.xml (generated and successfully checked by SIM).

I want to flexibly install Windows 7 x86 SP1 (and x64 later on) for any edition (at start selected by the user).
Unfortunately, while processing the xml file Windows setup throws an error, saying that the settings for unattended setup couldn't be applied [offlineServicing].
Edit: A screenshot of this error has been posted here.

I tried commenting out the offlineServicing part, that didn't fix it. I verified version="6.1.7601.17514" and stuff, but no chance.

Now, I've got no clue what's wrong as I cannot check for logs in the virtual machine for the (failed) installation (some MSCE guy advised that).

See below what I've got so far.
Any tips, tweaks and additions are highly welcome! :yes:

Attached File  Autounattend.xml   15.65KB   17 downloads

Edited by Mikka, 25 October 2012 - 07:46 AM.


#444
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,761 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

Try your install without using the <servicing> object you have at the top.

There seems to be some issues with how those are setup anyways. For example, you have "FreeCell" but the help says "InboxGames\FreeCell" instead.
Is every install to be disabling these packages? Did you try using DISM to disable these features in the install.wim?

WSIM validating is not a 100% check on everything, because it has rules for the objects, and checks the XML syntax but it doesn't actually compare it against a live setup. So there are still ways to have a valid (as per WSIM) xml and still generate an error, such as you have seen here.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#445
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,887 posts
  • OS:Windows 7 x64
  • Country: Country Flag
<servicing> is most likely the answer as Tripredacus said.
I have Win 7 Pro and from the feature export Dism /image:C:\zMountDir /Format:Table /Get-Features > %userprofile%\Desktop\zFeatures.txt
on a mounted image there is this which means it is removing it anyway which might cause errors.
Feature Name : Hearts
State : Disable Pending

Feature Name : FreeCell
State : Disable Pending

There is a way to capture the log files. Look here
http://www.msfn.org/...486#entry888486
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#446
Mikka

Mikka

    Junior

  • Member
  • Pip
  • 80 posts
  • OS:none specified
  • Country: Country Flag

Try your install without using the <servicing> object you have at the top.

There seems to be some issues with how those are setup anyways. For example, you have "FreeCell" but the help says "InboxGames\FreeCell" instead.

You were right, after removing <servicing> the setup doesn't complain any more.
Good idea checking for "InboxGames\...", however it doesn't work. It's a tedious task to check which line is the culprit.

(Nice Microsoft ****-up by the way, thank SatanGod I'm no "regular" Windows admin.)

I have Win 7 Pro and from the feature export Dism /image:C:\zMountDir /Format:Table /Get-Features > %userprofile%\Desktop\zFeatures.txt
on a mounted image there is this which means it is removing it anyway which might cause errors.

Hm, I'd played around with dism 2 years ago, there were quite a few glitches giving me a rough time.
Maybe I'll revert to WinToolkit 1.5.0.1 to sort out some components.

There is a way to capture the log files. Look here
http://www.msfn.org/...486#entry888486

Thanks for the hint, I'll have a look at it. :)


Unfortunately, my Autounattend.xml still has got some flaws...
I'd like to install whatever w7 edition was selected at start, without pasting keys from \sources\product.ini.
That's why I manually changed the <ProduKey><Key /> part and also the file ei.cfg to read:

[EditionID]

[Channel]
OEM
[VL]
0


Now the following window pops up:

Attached File  nag1.jpg   21.27KB   10 downloads

I need to unset the tick and click on Skip / Überspringen to continue. That's bad.
After that another window appears to activate some default settings, in short: my unattended setup is gone!

Edited by Tripredacus, 25 October 2012 - 02:42 PM.


#447
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,761 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

(Nice Microsoft ****-up by the way, thank SatanGod I'm no "regular" Windows admin.)


Language like this will not be tolerated. Don't do it again. :angry:
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#448
Mikka

Mikka

    Junior

  • Member
  • Pip
  • 80 posts
  • OS:none specified
  • Country: Country Flag
Sorry for the expression, I was miffed about the SIM labour...
It won't happen again.

#449
Octopuss

Octopuss

    I am the walrus

  • Member
  • PipPipPipPipPipPip
  • 1,127 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

I could use some help with some batch files basics.

I am installing various software during FirstLogonCommands. It is done with two different commands actually, one is basic installation package for anything, and the other are some additions for specific machines. The last command starts the WinSAT index "recount" or however is it called.

I am not very educated about batch scripting, and I could use some help explaning a few things.

What exactly is the difference between simply putting "somefile.cmd" in the command and using "cmd /c" and "start /wait"? I read some documentation on ss64 but it's very unclear to me.

I also don't want the commands to run in parallel, I need them to be executed one after each other.



edit: Let me elaborate further.

<FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <CommandLine>cmd /c start /wait %SystemRoot%\setup\scripts\install-basic.cmd</CommandLine>
                    <Description>ruzne instalace</Description>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <CommandLine>cmd /c start /wait %SystemRoot%\setup\scripts\install-extra.cmd</CommandLine>
                    <Description>ruzne instalace</Description>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <CommandLine>cmd /c start /min winsat formal</CommandLine>
                    <Description>WinSAT</Description>
                </SynchronousCommand>
            </FirstLogonCommands>

Why does the above open command prompt, run the script, BUT doesn't close the window when finished installing what it should? If I type exit it moves onto the next one. I don't get it.

Edited by TheWalrus, 02 December 2012 - 03:58 PM.


#450
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,887 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Using the Start /wait they should run one after the other

put Exit on last line of each file
on the winsat you could put cmd /k which tells it to carry it out and continue
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN