Jump to content

Current_User Regtweaks doesn't work ?


Recommended Posts

HKEY_USERS\.Default is not the structure for the Default User profile. The .Default structure is for settings when the system is at the logon screen, whether it be the Welcome Screen or the Press Ctrl+Alt+Del to Logon screen. In other words, it's for the default settings to use when no user is logged on. This is why you're not seeing the settings applied to new users logging into the system.

Link to comment
Share on other sites


Thanks a lot for that info nmX.Memnoch! Makes sense than...

Does that mean using sysprep /generalize with <CopyProfile> tag is the only option we have to apply regtweaks to Default User Profile "online" than?

Martin

Edited by FireGeier
Link to comment
Share on other sites

  • 4 weeks later...

I've got the same issue here and I'm still trying to find an easy way to apply HKCU tweaks for default user (as for now, only hklm tweaks are applied and not even the true Administrator account with autologon inherits from hkcu, only .default has them applied but as it's been said it's only used when no user is logged on so it's of no use anyway)

If I understand correctly what I see in setupact.txt, CopyProfile seems to be run before RunSynchronous during specialize pass...

Link to comment
Share on other sites

  • 3 months later...

I followed the "Copying the actual user profile over to the profile of default user" guide from Firegeier, but for some unknown reason my current_user regtweaks still do not seem to be applied to the default user profile.

Could someone please post a working unattend.xml so i can compare it with my unattend.xml?

Ruud

Link to comment
Share on other sites

same as ruudboek, user reg tweaks arn't being applied, even when following the "copy user profile to default user guide"

Any help on this would be greatly appreciated, this is the last step in my custom disc.

Link to comment
Share on other sites

Hello Martin,

i am using Windows Vista Ultimate, not OEM. This is my autounattend.xml:

<?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>NL-NL</UILanguage>
</SetupUILanguage>
<InputLocale>en-US</InputLocale>
<SystemLocale>NL-NL</SystemLocale>
<UILanguage>NL-NL</UILanguage>
<UserLocale>NL-NL</UserLocale>
<UILanguageFallback>en-US</UILanguageFallback>
</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>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>name</FullName>
<Organization>none</Organization>
</UserData>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/Index</Key>
<Value>1</Value>
</MetaData>
</InstallFrom>
<WillShowUI>OnError</WillShowUI>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<EnableNetwork>true</EnableNetwork>
<EnableFirewall>true</EnableFirewall>
<LogPath>%SystemRoot%\temp</LogPath>
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<RunAsynchronous>
<RunAsynchronousCommand wcm:action="add">
<Path>cmd /c md "%windir%\panther\unattend"</Path>
<Order>1</Order>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Path>cmd /c copy "c:\install\unattend.xml" "%windir%\panther\unattend" /y</Path>
<Order>2</Order>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Path>cmd /c format c: /fs:ntfs /q /x /y</Path>
<Order>3</Order>
</RunAsynchronousCommand>
<RunAsynchronousCommand wcm:action="add">
<Path>cmd /c format d: /fs:ntfs /q /x /y</Path>
<Order>4</Order>
</RunAsynchronousCommand>
</RunAsynchronous>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Security-Licensing-SLC-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-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">
<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i:\ -m"</Path>
<Order>1</Order>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /audit</Path>
</RunSynchronousCommand>
</RunSynchronous>
</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">
<BlockPopups>yes</BlockPopups>
<Help_Page>http://www.google.com</Help_Page>
<Home_Page>http://www.google.com</Home_Page>
<IEWelcomeMsg>false</IEWelcomeMsg>
<PlaySound>true</PlaySound>
<ShowInformationBar>true</ShowInformationBar>
</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">
<AutoLogon>
<Password>
<Value>password</Value>
<PlainText>true</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>2</LogonCount>
<Username>johndoe</Username>
</AutoLogon>
<Display>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>
<Themes>
<DefaultThemesOff>false</DefaultThemesOff>
</Themes>
<WindowsFeatures>
<ShowInternetExplorer>true</ShowInternetExplorer>
<ShowMediaCenter>true</ShowMediaCenter>
<ShowWindowsMail>true</ShowWindowsMail>
<ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
</WindowsFeatures>
<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
<ComputerName>comp01</ComputerName>
<CopyProfile>true</CopyProfile>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
<ProductKey>productkey</ProductKey>
<RegisteredOrganization>organization</RegisteredOrganization>
<RegisteredOwner>owner</RegisteredOwner>
<ShowWindowsLive>false</ShowWindowsLive>
<StartPanelOff>false</StartPanelOff>
<TimeZone>W. Europe Standard Time</TimeZone>
</component>
</settings>
<settings pass="auditUser">
<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">
<Order>1</Order>
<Path>cmd /c regedit /s %appsroot%\install\default.reg</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot</Path>
<WillReboot>Never</WillReboot>
</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">
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>5</LogonCount>
<Username>Administrator</Username>
</AutoLogon>
<Display>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<TimeZone>W. Europe Standard Time</TimeZone>
<RegisteredOwner>ownerdoe</RegisteredOwner>
<ShowWindowsLive>false</ShowWindowsLive>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
<RegisteredOrganization>none</RegisteredOrganization>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>password</Value>
<PlainText>true</PlainText>
</Password>
<DisplayName>johndoe</DisplayName>
<Group>Administrators</Group>
<Name>johndoe</Name>
<Description>Computerbeheerder</Description>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<WindowsFeatures>
<ShowInternetExplorer>true</ShowInternetExplorer>
<ShowMediaCenter>true</ShowMediaCenter>
<ShowWindowsMail>true</ShowWindowsMail>
<ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
</WindowsFeatures>
</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">
<SidebarOnByDefault>false</SidebarOnByDefault>
<SidebarVisible>false</SidebarVisible>
</component>
</settings>
<settings pass="auditSystem">
<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">
<AutoLogon>
<LogonCount>1</LogonCount>
<Username>Administrator</Username>
<Enabled>true</Enabled>
</AutoLogon>
</component>
</settings>
</unattend>

Link to comment
Share on other sites

Evening FireGeier

I'm using Windows Vista Ultimate, here is my autounattend.xml...

<?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>00020437</InputLocale>
<UserLocale>en-GB</UserLocale>
<UILanguage>en-US</UILanguage>
<SystemLocale>en-GB</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>
<ProductKey>
<Key>REMOVED</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Type>Primary</Type>
<Order>1</Order>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Format>NTFS</Format>
<Label>Windows Vista Ultimate</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Extend>false</Extend>
<Active>true</Active>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<WillShowUI>OnError</WillShowUI>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
</OSImage>
</ImageInstall>
<Display>
<VerticalResolution>768</VerticalResolution>
<HorizontalResolution>1024</HorizontalResolution>
<ColorDepth>32</ColorDepth>
</Display>
<Restart>Restart</Restart>
</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>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>2</ProtectYourPC>
</OOBE>
<TimeZone>(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</TimeZone>
<UserAccounts>
<AdministratorPassword>
<Value>REMOVED</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>REMOVED</Value>
<PlainText>false</PlainText>
</Password>
<Name>Antonio</Name>
<Group>Administrators</Group>
<DisplayName>Antonio</DisplayName>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<Display>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<ColorDepth>32</ColorDepth>
</Display>
</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">
<SidebarOnByDefault>false</SidebarOnByDefault>
<SidebarVisible>false</SidebarVisible>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Security-Licensing-SLC-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-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">
<ScopeUrl>http://www.google.co.uk/search?hl=en&q={searchTerms}&meta=</ScopeUrl>
<ScopeKey>{0633EE93-D776-472f-A0FF-E1416B8B2E3A}</ScopeKey>
<ScopeDisplayName>Google</ScopeDisplayName>
<ScopeDefault>true</ScopeDefault>
</Scope>
</SearchScopes>
<FavoritesDelete>true</FavoritesDelete>
<Help_Page>http://www.google.co.uk/</Help_Page>
<Home_Page>http://www.google.co.uk/</Home_Page>
<IEWelcomeMsg>false</IEWelcomeMsg>
<ShowInformationBar>false</ShowInformationBar>
</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">
<Order>10</Order>
<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\autounattend.xml SETX AppsRoot %i: -m"</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>20</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /audit</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="auditUser">
<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">
<Order>10</Order>
<Path>cmd /c REGEDIT /S %AppsRoot%\Install\"Registry Tweaks"\"Registry Tweaks.reg"</Path>
<Description>Importing Registry Tweaks</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>20</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"7-Zip 4.45 (beta)"\"7-Zip 4.45 (beta).cmd"</Path>
<Description>Installing 7-zip 4.45 (beta)</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>30</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Flash Player 9"\"Adobe Flash Player 9.cmd"</Path>
<Description>Installing Adobe Flash Player 9</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>40</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Reader 8.0"\"Adobe Reader 8.0.cmd"</Path>
<Description>Installing Adobe Reader 8.0</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>50</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Adobe Shockwave Player 10"\"Adobe Shockwave Player 10.cmd"</Path>
<Description>Installing Adobe Shockwave Player 10</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>60</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Flashget 1.8.2"\"Flashget 1.8.2.cmd"</Path>
<Description>Installing FlashGet 1.8.2</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>70</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Grisoft AVG Anti-Virus 7.5"\"Grisoft AVG Anti-Virus 7.5.cmd"</Path>
<Description>Installing Grisoft AVG Anti-Virus 7.5</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>80</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Microsoft Windows Live Messenger 8"\"Microsoft Windows Live Messenger 8.cmd"</Path>
<Description>Installing Microsoft Windows Live Messenger 8</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>90</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Sun Java Runtime Environment 6.1"\jre-6u1-windows-i586-p-s.exe /qn</Path>
<Description>Installing Sun Java Runtime Environment 6.1</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>100</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"Vista Codec Pack 4.4.2"\"Vista Codec Pack 4.4.2.cmd"</Path>
<Description>Installing Vista Codec Pack 4.4.2</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>110</Order>
<Path>cmd /c %AppsRoot%\Install\"Software Files"\"WinRAR 3.70 (beta)"\"WinRAR 3.70 (beta).cmd"</Path>
<Description>Installing WinRAR 3.70 (beta)</Description>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>120</Order>
<Path>%WINDIR%\system32\sysprep\sysprep.exe /quiet /oobe /reboot</Path>
<Description>Restarting</Description>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
<settings pass="auditSystem">
<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">
<AutoLogon>
<Password>
<Value>REMOVED</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>3</LogonCount>
<Username>Antonio</Username>
</AutoLogon>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/unattendedfiles/home/uavistaultimate/windows_vista_ultimate/sources/install.wim#Windows Vista (vLite) ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by zedox
Link to comment
Share on other sites

Hello ruudboek!

Your error is cause by a double slash, look at the following parts inside your Autounattend.xml:

<RunSynchronousCommand wcm:action="add">
<Path>cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i:\ -m"</Path>
<Order>1</Order>
</RunSynchronousCommand>

and:

<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>cmd /c regedit /s %appsroot%\install\default.reg</Path>
</RunSynchronousCommand>

Your %Appsroot% variable will looke like this for example:

D:\

That means your calling command looks like this for the moment for example - this is the way setup will read it:

cmd /c regedit /s D:\\install\default.reg

The two slashes will setup let fail!

That means you have to remove the slash here, like this:

cmd /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\AppsRoot.txt SETX AppsRoot %i: -m"

Regards,

Martin

Edited by FireGeier
Link to comment
Share on other sites

Hello zedox!

You don't do it like described in guide exactly. :no:

You're using spaces in file and directory names, which always is a good way to run in problems. Please rename your directories and files and it will work or play around, where to put the quetes. That can differ from command line to command line!

Regards,

Martin

Link to comment
Share on other sites

Hello zedox!

Sorry, but did not knwo that - I've thought the command lines would not be executed at all.

I've looked over your Autounattend.xml again and I miss the <CopyProfile> tag in specialize pass. Should look like this:

<CopyProfile>true</CopyProfile>

Look here inside guide for more information or you can have a look at ruudboeks Autounattend.xml file (specialize section).

Regards,

Martin

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...