반응형

윈도우 10, 11 설치시 원드라이브(OneDrive) 설치 방지 하는 응답파일(unattend.xml) 예문입니다.

└▶ 이전 코타나 제거 설치 옵션도 추가 되어 있습니다.
└▶ 필요 없는 경우 주석 구간을 포함하여 제거 후 사용 하세요.

 

코타나(Cortana)제거 무인설치 응답파일(unattend.xml)
https://noways.tistory.com/1837

 

    <settings pass="specialize">
        <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>
	<!-- OneDrive 설치 방지 Start -->
		<RunSynchronousCommand wcm:action="add">
			<Order>4</Order>
			<Path>cmd.exe /c "del "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>5</Order>
			<Path>cmd.exe /c "del "C:\Windows\System32\OneDriveSetup.exe""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>6</Order>
			<Path>cmd.exe /c "del "C:\Windows\SysWOW64\OneDriveSetup.exe""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>7</Order>
			<Path>reg.exe load "HKU\mount" "C:\Users\Default\NTUSER.DAT"</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>8</Order>
			<Path>reg.exe delete "HKU\mount\Software\Microsoft\Windows\CurrentVersion\Run" /v OneDriveSetup /f</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>9</Order>
			<Path>reg.exe unload "HKU\mount"</Path>
		</RunSynchronousCommand>
	<!-- OneDrive 설치 방지 End -->
	</RunSynchronous>
	</component>
    </settings>

 

$OEM$_Administrator.zip
0.00MB

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    </settings>
    <settings pass="specialize">
        <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>
	<!-- x64 WanDrv7 런처(EDLauncher.bat 배치 파일이 있으면 실행하고 없으면 종료) -->
		<RunSynchronousCommand wcm:action="add">
			<Order>1</Order>
			<Path>cmd.exe /c if exist "%Windir%\Setup\Scripts\EDLauncher.bat" "%Windir%\Setup\Scripts\EDLauncher.bat"</Path>
			<Description>Auto Driver Launcher</Description>
		</RunSynchronousCommand>
	<!-- Cortana 제거 Start -->
		<RunSynchronousCommand wcm:action="add">
			<Order>2</Order>
			<Path>cmd.exe /c "&gt;&gt;"%TEMP%\remove-packages.txt" echo Microsoft.549981C3F5F10"</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>3</Order>
			<Path>powershell.exe -NoProfile -Command "Get-AppxProvisionedPackage -Online | where DisplayName -In (Get-Content $env:TEMP\remove-packages.txt ) | Remove-AppxProvisionedPackage -AllUsers -Online *&gt;&amp;1 &gt;&gt; $env:TEMP\remove-packages.log;"</Path>
		</RunSynchronousCommand>
	<!-- Cortana 제거 End -->
	<!-- OneDrive 설치 방지 Start -->
		<RunSynchronousCommand wcm:action="add">
			<Order>4</Order>
			<Path>cmd.exe /c "del "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>5</Order>
			<Path>cmd.exe /c "del "C:\Windows\System32\OneDriveSetup.exe""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>6</Order>
			<Path>cmd.exe /c "del "C:\Windows\SysWOW64\OneDriveSetup.exe""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>7</Order>
			<Path>reg.exe load "HKU\mount" "C:\Users\Default\NTUSER.DAT"</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>8</Order>
			<Path>reg.exe delete "HKU\mount\Software\Microsoft\Windows\CurrentVersion\Run" /v OneDriveSetup /f</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>9</Order>
			<Path>reg.exe unload "HKU\mount"</Path>
		</RunSynchronousCommand>
	<!-- OneDrive 설치 방지 End -->
	</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 무인 설정(자동화) -->
	<OOBE>
		<!-- Windows 시작의 Microsoft 소프트웨어 사용 조건 페이지를 숨길지 여부를 지정합니다. -->
		<HideEULAPage>true</HideEULAPage>
		<!-- Windows 시작 중에 나타나는 무선 네트워크 연결 화면을 숨길지 여부를 지정합니다. -->
		<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<!-- 사용자가 처음 로그온할 때 컴퓨터가 네트워크에 연결된 경우 네트워크의 위치를 지정합니다. -->
		<NetworkLocation>Work</NetworkLocation>
		<!-- 중요하고 권장되는 업데이트가 자동으로 설치되도록 지정합니다. -->
		<ProtectYourPC>3</ProtectYourPC>
		<SkipMachineOOBE>true</SkipMachineOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
	</OOBE>
	<!-- 관리자(Administrator) 계정으로 자동 로그인 -->
	<AutoLogon>
		<Enabled>true</Enabled>
		<LogonCount>1</LogonCount>
		<Username>Administrator</Username>
	</AutoLogon>
	<!-- 사용자가 컴퓨터에 처음으로 로그온할 때 실행할 명령을 지정합니다. -->
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

 

$OEM$_User.zip
0.00MB

 

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    </settings>
    <settings pass="specialize">
        <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>
	<!-- x64 WanDrv7 런처(EDLauncher.bat 배치 파일이 있으면 실행하고 없으면 종료) -->
		<RunSynchronousCommand wcm:action="add">
			<Order>1</Order>
			<Path>cmd.exe /c if exist "%Windir%\Setup\Scripts\EDLauncher.bat" "%Windir%\Setup\Scripts\EDLauncher.bat"</Path>
			<Description>Auto Driver Launcher</Description>
		</RunSynchronousCommand>
	<!-- Cortana 제거 Start -->
		<RunSynchronousCommand wcm:action="add">
			<Order>2</Order>
			<Path>cmd.exe /c "&gt;&gt;"%TEMP%\remove-packages.txt" echo Microsoft.549981C3F5F10"</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>3</Order>
			<Path>powershell.exe -NoProfile -Command "Get-AppxProvisionedPackage -Online | where DisplayName -In (Get-Content $env:TEMP\remove-packages.txt ) | Remove-AppxProvisionedPackage -AllUsers -Online *&gt;&amp;1 &gt;&gt; $env:TEMP\remove-packages.log;"</Path>
		</RunSynchronousCommand>
	<!-- Cortana 제거 End -->
	<!-- OneDrive 설치 방지 Start -->
		<RunSynchronousCommand wcm:action="add">
			<Order>4</Order>
			<Path>cmd.exe /c "del "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>5</Order>
			<Path>cmd.exe /c "del "C:\Windows\System32\OneDriveSetup.exe""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>6</Order>
			<Path>cmd.exe /c "del "C:\Windows\SysWOW64\OneDriveSetup.exe""</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>7</Order>
			<Path>reg.exe load "HKU\mount" "C:\Users\Default\NTUSER.DAT"</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>8</Order>
			<Path>reg.exe delete "HKU\mount\Software\Microsoft\Windows\CurrentVersion\Run" /v OneDriveSetup /f</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>9</Order>
			<Path>reg.exe unload "HKU\mount"</Path>
		</RunSynchronousCommand>
	<!-- OneDrive 설치 방지 End -->
	</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 무인 설정(자동화) -->
	<OOBE>
		<!-- Windows 시작의 Microsoft 소프트웨어 사용 조건 페이지를 숨길지 여부를 지정합니다. -->
		<HideEULAPage>true</HideEULAPage>
		<!-- Windows 시작 중에 나타나는 무선 네트워크 연결 화면을 숨길지 여부를 지정합니다. -->
		<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<!-- 사용자가 처음 로그온할 때 컴퓨터가 네트워크에 연결된 경우 네트워크의 위치를 지정합니다. -->
		<NetworkLocation>Work</NetworkLocation>
		<!-- 중요하고 권장되는 업데이트가 자동으로 설치되도록 지정합니다. -->
		<ProtectYourPC>3</ProtectYourPC>
		<SkipMachineOOBE>true</SkipMachineOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
	</OOBE>
	<!-- 사용자(User) 계정 생성 / 비번 없음 -->
	<UserAccounts>
		<LocalAccounts>
			<LocalAccount wcm:action="add">
				<Password>
					<Value></Value>
					<PlainText>true</PlainText>
				</Password>
				<Description>Default Account</Description>
				<DisplayName>User</DisplayName>
				<Group>Administrators</Group>
				<Name>User</Name>
			</LocalAccount>
		</LocalAccounts> 
	</UserAccounts> 
	<!-- 사용자(User) 계정으로 자동 로그인 -->
	<AutoLogon>
		<Enabled>true</Enabled>
		<LogonCount>1</LogonCount>
		<Username>User</Username>
	</AutoLogon>
	<!-- 사용자가 컴퓨터에 처음으로 로그온할 때 실행할 명령을 지정합니다. -->
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

 

윈도우에서 제거 방식이 아닌 윈도우 설치 시 설치되지 않는 옵션입니다.

반응형
반응형

윈도우 10, 11 설치시 코타나(Cortana)를 설치 방지 하는 응답파일(unattend.xml) 예문입니다.

└▶ 이전 이지드라이버(EasyDrv7) 자동설치 옵션도 추가 되어 있습니다.

└▶ 필요 없는 경우 주석 구간을 포함하여 제거 후 사용 하세요.

 

    <settings pass="specialize">
        <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>
	<!-- Cortana 제거 Start -->
		<RunSynchronousCommand wcm:action="add">
			<Order>2</Order>
			<Path>cmd.exe /c "&gt;&gt;"%TEMP%\remove-packages.txt" echo Microsoft.549981C3F5F10"</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>3</Order>
			<Path>powershell.exe -NoProfile -Command "Get-AppxProvisionedPackage -Online | where DisplayName -In (Get-Content $env:TEMP\remove-packages.txt ) | Remove-AppxProvisionedPackage -AllUsers -Online *&gt;&amp;1 &gt;&gt; $env:TEMP\remove-packages.log;"</Path>
		</RunSynchronousCommand>
	<!-- Cortana 제거 End -->
	</RunSynchronous>
	</component>
    </settings>

$OEM$_Administrator.zip
0.00MB

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    </settings>
    <settings pass="specialize">
        <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>
	<!-- x64 WanDrv7 런처(EDLauncher.bat 배치 파일이 있으면 실행하고 없으면 종료) -->
		<RunSynchronousCommand wcm:action="add">
			<Order>1</Order>
			<Path>cmd.exe /c if exist "%Windir%\Setup\Scripts\EDLauncher.bat" "%Windir%\Setup\Scripts\EDLauncher.bat"</Path>
			<Description>Auto Driver Launcher</Description>
		</RunSynchronousCommand>
	<!-- Cortana 제거 Start -->
		<RunSynchronousCommand wcm:action="add">
			<Order>2</Order>
			<Path>cmd.exe /c "&gt;&gt;"%TEMP%\remove-packages.txt" echo Microsoft.549981C3F5F10"</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>3</Order>
			<Path>powershell.exe -NoProfile -Command "Get-AppxProvisionedPackage -Online | where DisplayName -In (Get-Content $env:TEMP\remove-packages.txt ) | Remove-AppxProvisionedPackage -AllUsers -Online *&gt;&amp;1 &gt;&gt; $env:TEMP\remove-packages.log;"</Path>
		</RunSynchronousCommand>
	<!-- Cortana 제거 End -->
	</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 무인 설정(자동화) -->
	<OOBE>
		<!-- Windows 시작의 Microsoft 소프트웨어 사용 조건 페이지를 숨길지 여부를 지정합니다. -->
		<HideEULAPage>true</HideEULAPage>
		<!-- Windows 시작 중에 나타나는 무선 네트워크 연결 화면을 숨길지 여부를 지정합니다. -->
		<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<!-- 사용자가 처음 로그온할 때 컴퓨터가 네트워크에 연결된 경우 네트워크의 위치를 지정합니다. -->
		<NetworkLocation>Work</NetworkLocation>
		<!-- 중요하고 권장되는 업데이트가 자동으로 설치되도록 지정합니다. -->
		<ProtectYourPC>3</ProtectYourPC>
		<SkipMachineOOBE>true</SkipMachineOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
	</OOBE>
	<!-- 관리자(Administrator) 계정으로 자동 로그인 -->
	<AutoLogon>
		<Enabled>true</Enabled>
		<LogonCount>1</LogonCount>
		<Username>Administrator</Username>
	</AutoLogon>
	<!-- 사용자가 컴퓨터에 처음으로 로그온할 때 실행할 명령을 지정합니다. -->
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

 

$OEM$_User.zip
0.00MB

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    </settings>
    <settings pass="specialize">
        <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>
	<!-- x64 WanDrv7 런처(EDLauncher.bat 배치 파일이 있으면 실행하고 없으면 종료) -->
		<RunSynchronousCommand wcm:action="add">
			<Order>1</Order>
			<Path>cmd.exe /c if exist "%Windir%\Setup\Scripts\EDLauncher.bat" "%Windir%\Setup\Scripts\EDLauncher.bat"</Path>
			<Description>Auto Driver Launcher</Description>
		</RunSynchronousCommand>
	<!-- Cortana 제거 Start -->
		<RunSynchronousCommand wcm:action="add">
			<Order>2</Order>
			<Path>cmd.exe /c "&gt;&gt;"%TEMP%\remove-packages.txt" echo Microsoft.549981C3F5F10"</Path>
		</RunSynchronousCommand>
		<RunSynchronousCommand wcm:action="add">
			<Order>3</Order>
			<Path>powershell.exe -NoProfile -Command "Get-AppxProvisionedPackage -Online | where DisplayName -In (Get-Content $env:TEMP\remove-packages.txt ) | Remove-AppxProvisionedPackage -AllUsers -Online *&gt;&amp;1 &gt;&gt; $env:TEMP\remove-packages.log;"</Path>
		</RunSynchronousCommand>
	<!-- Cortana 제거 End -->
	</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 무인 설정(자동화) -->
	<OOBE>
		<!-- Windows 시작의 Microsoft 소프트웨어 사용 조건 페이지를 숨길지 여부를 지정합니다. -->
		<HideEULAPage>true</HideEULAPage>
		<!-- Windows 시작 중에 나타나는 무선 네트워크 연결 화면을 숨길지 여부를 지정합니다. -->
		<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<!-- 사용자가 처음 로그온할 때 컴퓨터가 네트워크에 연결된 경우 네트워크의 위치를 지정합니다. -->
		<NetworkLocation>Work</NetworkLocation>
		<!-- 중요하고 권장되는 업데이트가 자동으로 설치되도록 지정합니다. -->
		<ProtectYourPC>3</ProtectYourPC>
		<SkipMachineOOBE>true</SkipMachineOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
	</OOBE>
	<!-- 사용자(User) 계정 생성 / 비번 없음 -->
	<UserAccounts>
		<LocalAccounts>
			<LocalAccount wcm:action="add">
				<Password>
					<Value></Value>
					<PlainText>true</PlainText>
				</Password>
				<Description>Default Account</Description>
				<DisplayName>User</DisplayName>
				<Group>Administrators</Group>
				<Name>User</Name>
			</LocalAccount>
		</LocalAccounts> 
	</UserAccounts> 
	<!-- 사용자(User) 계정으로 자동 로그인 -->
	<AutoLogon>
		<Enabled>true</Enabled>
		<LogonCount>1</LogonCount>
		<Username>User</Username>
	</AutoLogon>
	<!-- 사용자가 컴퓨터에 처음으로 로그온할 때 실행할 명령을 지정합니다. -->
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

 

 

반응형
반응형

윈도우 설치시 드라이브에 있는 EasyDrv7를 찾아 자동 실행하고 설치하는 응답파일과 배치 파일입니다.

└▶ 이전 사용자 암호 만료 기한 제한 없음 옵션도 추가 되어 있습니다.
└▶ 필요 없는 경우 주석 구간을 포함하여 제거 후 사용 하세요.

 

Windows 사용자 암호 만료 기간 제한 없음 설치 응답파일(unattend.xml)
https://noways.tistory.com/1835

 

 

■ 원문 출처 : EasyDrv 무인설치 bat 테스트 중입니다 2
https://windowsforum.kr/review/10524724

 

설치/사용기 - EasyDrv 무인설치 bat 테스트 중입니다 2

이제 어느 정도 테스트는 마친 것 같습니다. 가상머신은 물론이고 실컴으로도 EasyDrv 윈도 설치 때 자동 설치를 테스트 해봤습니다   본래 제가 사용하려고 한 것인데요. 괜히 공개적으로 글을

windowsforum.kr

 

 

    <settings pass="specialize">
        <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>
	<!-- x64 WanDrv7 런처(EDLauncher.bat 배치 파일이 있으면 실행하고 없으면 종료) -->
		<RunSynchronousCommand wcm:action="add">
			<Order>1</Order>
			<Path>cmd.exe /c if exist "%Windir%\Setup\Scripts\EDLauncher.bat" "%Windir%\Setup\Scripts\EDLauncher.bat"</Path>
			<Description>Auto Driver Launcher</Description>
		</RunSynchronousCommand>
	</RunSynchronous>
	</component>
    </settings>

$OEM$_Administrator.zip
0.00MB

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    </settings>
    <settings pass="specialize">
        <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>
	<!-- x64 WanDrv7 런처(EDLauncher.bat 배치 파일이 있으면 실행하고 없으면 종료) -->
		<RunSynchronousCommand wcm:action="add">
			<Order>1</Order>
			<Path>cmd.exe /c if exist "%Windir%\Setup\Scripts\EDLauncher.bat" "%Windir%\Setup\Scripts\EDLauncher.bat"</Path>
			<Description>Auto Driver Launcher</Description>
		</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 무인 설정(자동화) -->
	<OOBE>
		<!-- Windows 시작의 Microsoft 소프트웨어 사용 조건 페이지를 숨길지 여부를 지정합니다. -->
		<HideEULAPage>true</HideEULAPage>
		<!-- Windows 시작 중에 나타나는 무선 네트워크 연결 화면을 숨길지 여부를 지정합니다. -->
		<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<!-- 사용자가 처음 로그온할 때 컴퓨터가 네트워크에 연결된 경우 네트워크의 위치를 지정합니다. -->
		<NetworkLocation>Work</NetworkLocation>
		<!-- 중요하고 권장되는 업데이트가 자동으로 설치되도록 지정합니다. -->
		<ProtectYourPC>3</ProtectYourPC>
		<SkipMachineOOBE>true</SkipMachineOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
	</OOBE>
	<!-- 관리자(Administrator) 계정으로 자동 로그인 -->
	<AutoLogon>
		<Enabled>true</Enabled>
		<LogonCount>1</LogonCount>
		<Username>Administrator</Username>
	</AutoLogon>
	<!-- 사용자가 컴퓨터에 처음으로 로그온할 때 실행할 명령을 지정합니다. -->
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

 

$OEM$_User.zip
0.00MB

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    </settings>
    <settings pass="specialize">
        <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>
	<!-- x64 WanDrv7 런처(EDLauncher.bat 배치 파일이 있으면 실행하고 없으면 종료) -->
		<RunSynchronousCommand wcm:action="add">
			<Order>1</Order>
			<Path>cmd.exe /c if exist "%Windir%\Setup\Scripts\EDLauncher.bat" "%Windir%\Setup\Scripts\EDLauncher.bat"</Path>
			<Description>Auto Driver Launcher</Description>
		</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 무인 설정(자동화) -->
	<OOBE>
		<!-- Windows 시작의 Microsoft 소프트웨어 사용 조건 페이지를 숨길지 여부를 지정합니다. -->
		<HideEULAPage>true</HideEULAPage>
		<!-- Windows 시작 중에 나타나는 무선 네트워크 연결 화면을 숨길지 여부를 지정합니다. -->
		<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<!-- 사용자가 처음 로그온할 때 컴퓨터가 네트워크에 연결된 경우 네트워크의 위치를 지정합니다. -->
		<NetworkLocation>Work</NetworkLocation>
		<!-- 중요하고 권장되는 업데이트가 자동으로 설치되도록 지정합니다. -->
		<ProtectYourPC>3</ProtectYourPC>
		<SkipMachineOOBE>true</SkipMachineOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
	</OOBE>
	<!-- 사용자(User) 계정 생성 / 비번 없음 -->
	<UserAccounts>
		<LocalAccounts>
			<LocalAccount wcm:action="add">
				<Password>
					<Value></Value>
					<PlainText>true</PlainText>
				</Password>
				<Description>Default Account</Description>
				<DisplayName>User</DisplayName>
				<Group>Administrators</Group>
				<Name>User</Name>
			</LocalAccount>
		</LocalAccounts> 
	</UserAccounts> 
	<!-- 사용자(User) 계정으로 자동 로그인 -->
	<AutoLogon>
		<Enabled>true</Enabled>
		<LogonCount>1</LogonCount>
		<Username>User</Username>
	</AutoLogon>
	<!-- 사용자가 컴퓨터에 처음으로 로그온할 때 실행할 명령을 지정합니다. -->
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
반응형
반응형

윈도우11/10 암호 설정 기준으로 42일 이후면 사용자의 암호가 만료되었으므로 변경해야 합니다. 팝업이 발생하게 됩니다. 이를 수동으로 해제하거나 윈도우 설치시 응답파일에서 만료 기한 제한 없음을 적용하여 설치할 방법을법을 안내하겠습니다.

 

 

1. 처음 암호를 설정

 

2. 암호 만료 팝업 확인을 위해 42일 이후로 날짜를 변경하고 로그오프

 

3. 사용자의 암호가 만료되었으므로 변경해야 합니다. 팝업 발생

 

4. 확인을 위해 암호 변경

 

5. 윈도우키 + R > netplwiz

사용자 계정 > 고급 > 고급 사용자 관리 > 고급

 

6. 로컬 사용자 및 그룹 > 사용자 > User(사용자 계정명) > 우클릭 속성 > User 속성 > 일반 > 암호 사용 기간 제한 없음

 

위 방법은 윈도우가 이미 설치된 상태에서 적용하는 방법이며 아래 방법은 윈도우가 설치될 때 적용하는 방법입니다.

 

<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>

 

    <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">
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>

 

$OEM$_Administrator.zip
0.00MB

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    </settings>
    <settings pass="specialize">
    </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 무인 설정(자동화) -->
	<OOBE>
		<!-- Windows 시작의 Microsoft 소프트웨어 사용 조건 페이지를 숨길지 여부를 지정합니다. -->
		<HideEULAPage>true</HideEULAPage>
		<!-- Windows 시작 중에 나타나는 무선 네트워크 연결 화면을 숨길지 여부를 지정합니다. -->
		<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<!-- 사용자가 처음 로그온할 때 컴퓨터가 네트워크에 연결된 경우 네트워크의 위치를 지정합니다. -->
		<NetworkLocation>Work</NetworkLocation>
		<!-- 중요하고 권장되는 업데이트가 자동으로 설치되도록 지정합니다. -->
		<ProtectYourPC>3</ProtectYourPC>
		<SkipMachineOOBE>true</SkipMachineOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
	</OOBE>
	<!-- 관리자(Administrator) 계정으로 자동 로그인 -->
	<AutoLogon>
		<Enabled>true</Enabled>
		<LogonCount>1</LogonCount>
		<Username>Administrator</Username>
	</AutoLogon>
	<!-- 사용자가 컴퓨터에 처음으로 로그온할 때 실행할 명령을 지정합니다. -->
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

$OEM$_User.zip
0.00MB

 

 

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    </settings>
    <settings pass="specialize">
    </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 무인 설정(자동화) -->
	<OOBE>
		<!-- Windows 시작의 Microsoft 소프트웨어 사용 조건 페이지를 숨길지 여부를 지정합니다. -->
		<HideEULAPage>true</HideEULAPage>
		<!-- Windows 시작 중에 나타나는 무선 네트워크 연결 화면을 숨길지 여부를 지정합니다. -->
		<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
		<!-- 사용자가 처음 로그온할 때 컴퓨터가 네트워크에 연결된 경우 네트워크의 위치를 지정합니다. -->
		<NetworkLocation>Work</NetworkLocation>
		<!-- 중요하고 권장되는 업데이트가 자동으로 설치되도록 지정합니다. -->
		<ProtectYourPC>3</ProtectYourPC>
		<SkipMachineOOBE>true</SkipMachineOOBE>
		<SkipUserOOBE>true</SkipUserOOBE>
	</OOBE>
	<!-- 사용자(User) 계정 생성 / 비번 없음 -->
	<UserAccounts>
		<LocalAccounts>
			<LocalAccount wcm:action="add">
				<Password>
					<Value></Value>
					<PlainText>true</PlainText>
				</Password>
				<Description>Default Account</Description>
				<DisplayName>User</DisplayName>
				<Group>Administrators</Group>
				<Name>User</Name>
			</LocalAccount>
		</LocalAccounts> 
	</UserAccounts> 
	<!-- 사용자(User) 계정으로 자동 로그인 -->
	<AutoLogon>
		<Enabled>true</Enabled>
		<LogonCount>1</LogonCount>
		<Username>User</Username>
	</AutoLogon>
	<!-- 사용자가 컴퓨터에 처음으로 로그온할 때 실행할 명령을 지정합니다. -->
	<FirstLogonCommands>
	<!-- 모든 계정 암호 만료기간 제한 없음 -->
		<SynchronousCommand wcm:action="add">
			<RequiresUserInput>false</RequiresUserInput>
			<Order>1</Order>
			<Description>UserAccount</Description>
			<CommandLine>cmd /c wmic UserAccount set PasswordExpires=False</CommandLine>
		</SynchronousCommand>
	</FirstLogonCommands>
	</component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

 

반응형

+ Recent posts