Добавить пользователя в группу Unattend.xml

540
StuiterSlurf

Я создал следующий файл Unattend.xml. Единственная проблема заключается в том, что он не будет добавлять пользователей в группу пользователей.

Я ищу в Google, что я делаю неправильно, но я просто не могу понять, в чем проблема. Он должен работать в соответствии с документацией, которую я нашел. Я использовал Windows System Image Manager для создания этого файла.

У кого-нибудь есть идеи, что я делаю не так?

<? xml version="1.0" encoding="utf-8"?> <unattend xmlns = "urn:schemas-microsoft-com:unattend" > < settings pass="windowsPE"> <component name = "Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <ImageInstall> <OSImage> <WillShowUI>OnError</WillShowUI> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <InstallFrom> <Path>.\Operating Systems\os\os.wim</Path> <MetaData> <Key>/IMAGE/INDEX</Key> <Value>1</Value> </MetaData> </InstallFrom> <InstallToAvailablePartition>true</InstallToAvailablePartition> </OSImage> </ImageInstall> <ComplianceCheck> <DisplayReport>OnError</DisplayReport> </ComplianceCheck> <UserData> <AcceptEula>true</AcceptEula> <ProductKey> <Key>WindowsSerialKey</Key> <WillShowUI>Never</WillShowUI> </ProductKey> <Organization>Stuiter</Organization> </UserData> <EnableFirewall>true</EnableFirewall> <EnableNetwork>true</EnableNetwork> <Restart>Restart</Restart> </component> <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>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> <settings pass = "generalize" > < 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"> <DoNotCleanTaskBar>true</DoNotCleanTaskBar> </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"> <UserAccounts> <AdministratorPassword> <Value>hashed password</Value> <PlainText>false</PlainText> </AdministratorPassword> <LocalAccounts> <LocalAccount wcm:action= "add" > < Password > < Value > hashed password</Value> <PlainText>false</PlainText> </Password> <Group>Users</Group> <Description>User</Description> <DisplayName>User account</DisplayName> <Name>User</Name> </LocalAccount> <LocalAccount wcm:action= "add" > < Password > < Value > hashed password</Value> <PlainText>false</PlainText> </Password> <Description>Admin user</Description> <DisplayName>Admin user account</DisplayName> <Name>AdminUser</Name> <Group>Administrators</Group> </LocalAccount> <LocalAccount wcm:action= "add" > < Password > < Value > hashed password</Value> <PlainText>false</PlainText> </Password> <Description>User for Support</Description> <DisplayName>Support user account</DisplayName> <Group>Users</Group> <Name>Support</Name> </LocalAccount> </LocalAccounts> </UserAccounts> <AutoLogon> <Enabled>true</Enabled> <Username>Rimote</Username> <Domain>.</Domain> <Password> <Value>hashed password</Value> <PlainText>false</PlainText> </Password> <LogonCount>2147483647</LogonCount> </AutoLogon> <Display> <ColorDepth>32</ColorDepth> <HorizontalResolution>1</HorizontalResolution> <RefreshRate>60</RefreshRate> <VerticalResolution>1</VerticalResolution> <DPI>120</DPI> </Display> <FirstLogonCommands> <SynchronousCommand wcm:action= "add" > < CommandLine > wscript.exe % SystemDrive %\LTIBootstrap.vbs</CommandLine> <Description>Lite Touch new OS</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands> <OOBE> <HideEULAPage>false</HideEULAPage> <ProtectYourPC>2</ProtectYourPC> <HideLocalAccountScreen>false</HideLocalAccountScreen> <HideOnlineAccountScreens>false</HideOnlineAccountScreens> <HideWirelessSetupInOOBE>false</HideWirelessSetupInOOBE> <HideOEMRegistrationScreen>false</HideOEMRegistrationScreen> <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo> </OOBE> <RegisteredOrganization>Stuiter</RegisteredOrganization> <RegisteredOwner>Stuiter</RegisteredOwner> <TimeZone>W.Europe Standard Time</TimeZone> <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled> <ConvertibleSlateModePromptPreference>1</ConvertibleSlateModePromptPreference> <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> <DoNotCleanTaskBar>false</DoNotCleanTaskBar> <EnableStartMenu>false</EnableStartMenu> <ShowPowerButtonOnStartScreen>false</ShowPowerButtonOnStartScreen> <SignInMode>1</SignInMode> <WindowsFeatures> <ShowInternetExplorer>false</ShowInternetExplorer> <ShowMediaCenter>false</ShowMediaCenter> <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer> </WindowsFeatures> </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>0409:00000409</InputLocale> <SystemLocale>en-US</SystemLocale> <UILanguage>en-US</UILanguage> <UserLocale>en-US</UserLocale> </component> </settings> <settings pass = "offlineServicing" > < component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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"> <DriverPaths> <PathAndCredentials wcm:keyValue="1" wcm:action="add"> <Path>\Drivers</Path> </PathAndCredentials> </DriverPaths> </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"> <DesktopOptimization> <GoToDesktopOnSignIn>true</GoToDesktopOnSignIn> <ShowWindowsStoreAppsOnTaskbar>false</ShowWindowsStoreAppsOnTaskbar> </DesktopOptimization> <OfflineUserAccounts> <OfflineAdministratorPassword> <Value>hashed password</Value> <PlainText>false</PlainText> </OfflineAdministratorPassword> <OfflineLocalAccounts> <LocalAccount wcm:action= "add" > < Password > < Value > hashed password</Value> <PlainText>false</PlainText> </Password> <Description>User</Description> <DisplayName>User</DisplayName> <Group>Users</Group> <Name>User</Name> </LocalAccount> <LocalAccount wcm:action= "add" > < Password > < Value > hashed password</Value> <PlainText>false</PlainText> </Password> <Description>Support user</Description> <DisplayName>Support</DisplayName> <Name>Support</Name> <Group>Users</Group> </LocalAccount> <LocalAccount wcm:action= "add" > < Password > < Value > hashed password</Value> <PlainText>false</PlainText> </Password> <Description>Admin user</Description> <DisplayName>Admin user</DisplayName> <Group>Administrators</Group> <Name>AdminUser</Name> </LocalAccount> </OfflineLocalAccounts> </OfflineUserAccounts> </component> </settings> </unattend> 
0
Встроенная учетная запись администратора уже является членом группы пользователей и пользователей по умолчанию, поэтому вы добавляете ее в группу пользователей по умолчанию. Вы не указываете, с какими пользователями у вас возникли проблемы. Отредактируйте свой вопрос. Почему вы добавили учетную запись пользователя с именем * User *? Ramhound 6 лет назад 0

0 ответов на вопрос

Похожие вопросы