├── .gitattributes ├── README.md ├── Theme ├── Win10.theme ├── Win7.theme └── README.md ├── Background ├── Background.bmp ├── LockScreen.jpg ├── Wallpaper.jpg ├── Web │ ├── Wallpaper │ │ └── Windows │ │ │ └── img0.jpg │ └── 4K │ │ └── Wallpaper │ │ └── Windows │ │ ├── img0_1024x768.jpg │ │ ├── img0_1200x1920.jpg │ │ ├── img0_1366x768.jpg │ │ ├── img0_1600x2560.jpg │ │ ├── img0_2160x3840.jpg │ │ ├── img0_2560x1600.jpg │ │ ├── img0_3840x2160.jpg │ │ ├── img0_768x1024.jpg │ │ └── img0_768x1366.jpg └── README.md ├── Zeta ├── README.md └── Backup-Registry.ps1 ├── Alpha ├── README.md ├── Remove-LocalPolicies.ps1 ├── Remove-AppLockerPolicies.ps1 └── Backup-Registry.ps1 ├── Scripts ├── README.md ├── Remove-OneDriveShortcut.ps1 ├── Enable-RemoteRegistry.ps1 ├── Set-OemModel.ps1 └── Disable-VmPasswordChange.ps1 ├── Start ├── README.md ├── LayoutModificationWin10.xml ├── StartLayoutWin10.xml └── StartLayoutDomainWin10.xml ├── RegistryXML ├── README.md ├── ImportXML │ └── README.md └── Library │ ├── User │ ├── User Console Quick Edit.xml │ ├── Win10 User Accent Color Title Bar.xml │ ├── Win10 User Remove OneDrive Setup.xml │ ├── Win10 User AdvertisingID Apps Off.xml │ ├── Win10 User Notifications AutoPlay Off.xml │ ├── Win10 User Notifications Suggested Off.xml │ ├── Win10 User Search Bing Off.xml │ ├── Win10 User Start Menu Transparency Off.xml │ ├── Win10 User Accent Color Start Taskbar ActionCenter.xml │ ├── Win10 User Notifications Security Off.xml │ ├── Win10 User Tailored Experiences Off.xml │ ├── Win10 User Search Cortana Off.xml │ ├── User Control Panel View.xml │ ├── Win10 User Tablet Mode.xml │ ├── User Desktop Icons.xml │ ├── Win10 User Content Delivery Manager.xml │ └── User Windows Explorer.xml │ ├── Branding │ ├── Branding User Background Color.xml │ ├── Branding Computer Wallpaper.xml │ ├── Branding Computer Theme.xml │ ├── Branding Computer Background Color.xml │ ├── Branding User IE Start Page.xml │ ├── Branding Computer IE Start Page.xml │ ├── Branding User Theme.xml │ ├── Branding User Wallpaper.xml │ └── Branding Computer OEM Information.xml │ └── Computer │ ├── Computer Disable Active Probing.xml │ ├── Computer Right Click Copy To.xml │ ├── Computer Right Click Move To.xml │ ├── Computer This PC ComputerName.xml │ ├── Computer Disable Logon Background Image.xml │ ├── Computer Device Manager.xml │ ├── Computer IE First Run.xml │ ├── Computer Right Click Take Ownership.xml │ └── Computer Crash Control.xml ├── Apps ├── README.md ├── AppAssocWin10.xml └── Set-AppAssoc.ps1 ├── LocalPolicy ├── ImportGPO │ ├── README.md │ ├── OSDeploy Win7 │ │ ├── {7DBA9830-2CDC-4DD9-8EFA-66351CE5798B} │ │ │ ├── gpreport.xml │ │ │ ├── DomainSysvol │ │ │ │ └── GPO │ │ │ │ │ ├── OSDeploy Win7.htm │ │ │ │ │ ├── Machine │ │ │ │ │ ├── registry.pol │ │ │ │ │ ├── Comment.cmtx │ │ │ │ │ └── Preferences │ │ │ │ │ │ └── Registry │ │ │ │ │ │ └── Registry.xml │ │ │ │ │ └── User │ │ │ │ │ ├── registry.pol │ │ │ │ │ ├── Comment.cmtx │ │ │ │ │ └── Preferences │ │ │ │ │ └── Registry │ │ │ │ │ └── Registry.xml │ │ │ ├── bkupInfo.xml │ │ │ └── Backup.xml │ │ └── manifest.xml │ ├── OSDeploy Win10 │ │ ├── {895F7B98-B217-4F89-AE2C-541C97F8D43A} │ │ │ ├── gpreport.xml │ │ │ ├── DomainSysvol │ │ │ │ └── GPO │ │ │ │ │ ├── OSDeploy Win10.htm │ │ │ │ │ ├── Machine │ │ │ │ │ ├── registry.pol │ │ │ │ │ └── Comment.cmtx │ │ │ │ │ └── User │ │ │ │ │ ├── registry.pol │ │ │ │ │ └── Comment.cmtx │ │ │ ├── bkupInfo.xml │ │ │ └── Backup.xml │ │ └── manifest.xml │ ├── OSDeploy Branding │ │ ├── {8A659800-9817-4543-B305-5D209CD36399} │ │ │ ├── gpreport.xml │ │ │ ├── DomainSysvol │ │ │ │ └── GPO │ │ │ │ │ ├── OSDeploy Branding.htm │ │ │ │ │ ├── User │ │ │ │ │ ├── registry.pol │ │ │ │ │ ├── Comment.cmtx │ │ │ │ │ └── Preferences │ │ │ │ │ │ └── Registry │ │ │ │ │ │ └── Registry.xml │ │ │ │ │ └── Machine │ │ │ │ │ ├── registry.pol │ │ │ │ │ ├── Comment.cmtx │ │ │ │ │ └── Preferences │ │ │ │ │ └── Registry │ │ │ │ │ └── Registry.xml │ │ │ ├── bkupInfo.xml │ │ │ └── Backup.xml │ │ └── manifest.xml │ └── Backup-GPO.ps1 ├── ImportTXT │ ├── README.md │ └── OEM Information.txt ├── LGPO │ └── README.md └── README.md └── OSConfig.ps1 /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OSConfig 2 | 3 | For proper usage, review https://www.osdeploy.com/osconfig -------------------------------------------------------------------------------- /Theme/Win10.theme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Theme/Win10.theme -------------------------------------------------------------------------------- /Theme/Win7.theme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Theme/Win7.theme -------------------------------------------------------------------------------- /Background/Background.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Background.bmp -------------------------------------------------------------------------------- /Background/LockScreen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/LockScreen.jpg -------------------------------------------------------------------------------- /Background/Wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Wallpaper.jpg -------------------------------------------------------------------------------- /Zeta/README.md: -------------------------------------------------------------------------------- 1 | # Zeta 2 | 3 | Powershell Scripts (*.ps1) in this directory will be executed last 4 | -------------------------------------------------------------------------------- /Alpha/README.md: -------------------------------------------------------------------------------- 1 | # Alpha 2 | 3 | Powershell Scripts (*.ps1) in this directory will be executed first 4 | -------------------------------------------------------------------------------- /Scripts/README.md: -------------------------------------------------------------------------------- 1 | # Scripts 2 | 3 | Powershell Scripts (*.ps1) in this directory do not relate to any other category -------------------------------------------------------------------------------- /Theme/README.md: -------------------------------------------------------------------------------- 1 | # Theme 2 | 3 | Powershell Scripts (*.ps1) and files in this directory relate to the Windows Theme -------------------------------------------------------------------------------- /Start/README.md: -------------------------------------------------------------------------------- 1 | # Start 2 | 3 | Powershell Scripts (*.ps1) and files in this directory relate to the Windows Start Menu -------------------------------------------------------------------------------- /RegistryXML/README.md: -------------------------------------------------------------------------------- 1 | # RegistryXML 2 | 3 | Contains GPP Registry XML files that will be imported using Import-RegistryXML.ps1 4 | -------------------------------------------------------------------------------- /Background/Web/Wallpaper/Windows/img0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/Wallpaper/Windows/img0.jpg -------------------------------------------------------------------------------- /RegistryXML/ImportXML/README.md: -------------------------------------------------------------------------------- 1 | # RegistryXML 2 | 3 | ## Import 4 | Contains GPP Registry XML files that will be imported using Import-RegistryXML.ps1 -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_1024x768.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_1024x768.jpg -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_1200x1920.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_1200x1920.jpg -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_1366x768.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_1366x768.jpg -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_1600x2560.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_1600x2560.jpg -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_2160x3840.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_2160x3840.jpg -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_2560x1600.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_2560x1600.jpg -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_3840x2160.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_3840x2160.jpg -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_768x1024.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_768x1024.jpg -------------------------------------------------------------------------------- /Background/Web/4K/Wallpaper/Windows/img0_768x1366.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/Background/Web/4K/Wallpaper/Windows/img0_768x1366.jpg -------------------------------------------------------------------------------- /Apps/README.md: -------------------------------------------------------------------------------- 1 | # Apps 2 | 3 | Powershell Scripts (*.ps1) in this directory relate to Apps 4 | Application Associations 5 | Appx Packages 6 | Provisioned Appx Packages 7 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/README.md: -------------------------------------------------------------------------------- 1 | # LocalPolicy 2 | 3 | ## ImportGPO 4 | Contains GPO files that will be imported using Import-GPO.ps1 5 | Requires LocalPolicy\LGPO\LGPO.exe -------------------------------------------------------------------------------- /LocalPolicy/ImportTXT/README.md: -------------------------------------------------------------------------------- 1 | # LocalPolicy 2 | 3 | ## ImportTXT 4 | Contains LGPO TXT files that will be imported using Import-TXT.ps1 5 | Requires LocalPolicy\LGPO\LGPO.exe -------------------------------------------------------------------------------- /Background/README.md: -------------------------------------------------------------------------------- 1 | # Background 2 | 3 | Powershell Scripts (*.ps1) and files in this directory relate to Windows Background 4 | LockScreen Background 5 | Logon Background 6 | Desktop Wallpaper -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/gpreport.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/gpreport.xml -------------------------------------------------------------------------------- /LocalPolicy/LGPO/README.md: -------------------------------------------------------------------------------- 1 | # LocalPolicy 2 | 3 | ## LGPO 4 | Contains LGPO.exe (Microsoft Security Compliance Toolkit) 5 | Download and Extract LGPO.zip from https://www.microsoft.com/en-us/download/details.aspx?id=55319 6 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/gpreport.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/gpreport.xml -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/gpreport.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/gpreport.xml -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/OSDeploy Win7.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/OSDeploy Win7.htm -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/DomainSysvol/GPO/OSDeploy Win10.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/DomainSysvol/GPO/OSDeploy Win10.htm -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/Machine/registry.pol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/Machine/registry.pol -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/DomainSysvol/GPO/Machine/registry.pol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/DomainSysvol/GPO/Machine/registry.pol -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/DomainSysvol/GPO/OSDeploy Branding.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSDeploy/OSConfig/HEAD/LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/DomainSysvol/GPO/OSDeploy Branding.htm -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/DomainSysvol/GPO/User/registry.pol: -------------------------------------------------------------------------------- 1 | PReg[Software\Policies\Microsoft\Windows\Personalization;ThemeFile;;T;%ProgramData%\OSConfig\Theme\Custom.theme] -------------------------------------------------------------------------------- /LocalPolicy/ImportTXT/OEM Information.txt: -------------------------------------------------------------------------------- 1 | ;====================================================================================== 2 | ; Author: David Segura 3 | ; Version: 18.8.27 4 | ; https://www.osdeploy.com/ 5 | ; This is a LGPO (Local GPO) file 6 | ;====================================================================================== 7 | Computer 8 | SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation 9 | Manufacturer 10 | OSDeploy -------------------------------------------------------------------------------- /LocalPolicy/README.md: -------------------------------------------------------------------------------- 1 | # LocalPolicy 2 | 3 | ## ImportGPO 4 | Contains GPO files that will be imported using Import-GPO.ps1 5 | Requires LocalPolicy\LGPO\LGPO.exe 6 | 7 | ## ImportTXT 8 | Contains LGPO TXT files that will be imported using Import-TXT.ps1 9 | Requires LocalPolicy\LGPO\LGPO.exe 10 | 11 | ## LGPO 12 | Contains LGPO.exe (Microsoft Security Compliance Toolkit) 13 | Download and Extract LGPO.zip from https://www.microsoft.com/en-us/download/details.aspx?id=55319 14 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/User Console Quick Edit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Accent Color Title Bar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding User Background Color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Remove OneDrive Setup.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer Disable Active Probing.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/bkupInfo.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/bkupInfo.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer Right Click Copy To.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer Right Click Move To.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/bkupInfo.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer This PC ComputerName.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer Disable Logon Background Image.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding Computer Wallpaper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User AdvertisingID Apps Off.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/manifest.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/manifest.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Notifications AutoPlay Off.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Notifications Suggested Off.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Search Bing Off.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Start Menu Transparency Off.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/manifest.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding Computer Theme.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Accent Color Start Taskbar ActionCenter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Notifications Security Off.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Tailored Experiences Off.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding Computer Background Color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/DomainSysvol/GPO/User/Comment.cmtx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | OSDeploy Branding 14 | 15 | 16 | -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding User IE Start Page.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding Computer IE Start Page.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Search Cortana Off.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/User Control Panel View.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/Backup-GPO.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Backup-GPO will backup OSDeploy GPO's into this directory 7 | #====================================================================================== 8 | $DomainGPOs = 'OSDeploy Branding','OSDeploy Win7','OSDeploy Win10' 9 | 10 | foreach ($GPO in $DomainGPOs) { 11 | if (Test-Path "$PSScriptRoot\$GPO") { 12 | Write-Host "Removing $PSScriptRoot\$GPO" -ForegroundColor Cyan 13 | Remove-Item -Path "$PSScriptRoot\$GPO" -Recurse -Force 14 | } 15 | 16 | if (!(Test-Path "$PSScriptRoot\$GPO")) { 17 | Write-Host "Creating $PSScriptRoot\$GPO" -ForegroundColor Cyan 18 | New-Item -Path "$PSScriptRoot" -Name $GPO -ItemType Directory 19 | } 20 | 21 | Write-Host "Backing up $PSScriptRoot\$GPO" -ForegroundColor Yellow 22 | Backup-Gpo -Name $GPO -Path "$PSScriptRoot\$GPO" 23 | } -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding User Theme.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer Device Manager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding User Wallpaper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/DomainSysvol/GPO/Machine/registry.pol: -------------------------------------------------------------------------------- 1 | PReg[Software\Policies\Microsoft\MicrosoftEdge\Internet Settings;ProvisionedHomePages;;&;<www.osdeploy.com>][Software\Policies\Microsoft\Windows\Explorer;LockedStartLayout;;;][Software\Policies\Microsoft\Windows\Explorer;StartLayoutFile;;Z;%ProgramData%\OSConfig\Start\StartLayout.xml][Software\Policies\Microsoft\Windows\Personalization;LockScreenImage;;b;%ProgramData%\OSConfig\Background\LockScreen.jpg][Software\Policies\Microsoft\Windows\Personalization;LockScreenOverlaysDisabled;;;][Software\Policies\Microsoft\Windows\System;DefaultAssociationsConfiguration;;R;%ProgramData%\OSConfig\Apps\AppAssoc.xml] -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer IE First Run.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer Right Click Take Ownership.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/DomainSysvol/GPO/Machine/Comment.cmtx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | OSDeploy Branding 20 | OSDeploy Branding 21 | OSDeploy Branding 22 | OSDeploy Branding 23 | 24 | 25 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Tablet Mode.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /RegistryXML/Library/Computer/Computer Crash Control.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /RegistryXML/Library/Branding/Branding Computer OEM Information.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Apps/AppAssocWin10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Alpha/Remove-LocalPolicies.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Set Error Preference 7 | #====================================================================================== 8 | $ErrorActionPreference = 'SilentlyContinue' 9 | #$VerbosePreference = 'Continue' 10 | #====================================================================================== 11 | # Set OSDeploy 12 | #====================================================================================== 13 | $OSDeploy = "$env:ProgramData\OSDeploy" 14 | $OSConfig = "$env:ProgramData\OSConfig" 15 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 16 | $ScriptName = $MyInvocation.MyCommand.Name 17 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 18 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 19 | #====================================================================================== 20 | # Create the Log Directory 21 | #====================================================================================== 22 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 23 | #====================================================================================== 24 | # Start the Transcript 25 | #====================================================================================== 26 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 27 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 28 | Write-Host "" 29 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 30 | #====================================================================================== 31 | # Remove AppLocker Policies 32 | #====================================================================================== 33 | if (Test-Path "$env:SystemRoot\System32\GroupPolicy") { 34 | Write-Host "Clearing Existing Policies ..." 35 | Remove-Item $env:SystemRoot\System32\GroupPolicy\* -Recurse -Force 36 | } 37 | #====================================================================================== 38 | # Enable the following lines for testing as needed 39 | # Start-Process PowerShell_ISE.exe -Wait 40 | # Read-Host -Prompt "Press Enter to Continue" 41 | #====================================================================================== 42 | Stop-Transcript 43 | #====================================================================================== -------------------------------------------------------------------------------- /Alpha/Remove-AppLockerPolicies.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Set Error Preference 7 | #====================================================================================== 8 | $ErrorActionPreference = 'SilentlyContinue' 9 | #$VerbosePreference = 'Continue' 10 | #====================================================================================== 11 | # Set OSDeploy 12 | #====================================================================================== 13 | $OSDeploy = "$env:ProgramData\OSDeploy" 14 | $OSConfig = "$env:ProgramData\OSConfig" 15 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 16 | $ScriptName = $MyInvocation.MyCommand.Name 17 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 18 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 19 | #====================================================================================== 20 | # Create the Log Directory 21 | #====================================================================================== 22 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 23 | #====================================================================================== 24 | # Start the Transcript 25 | #====================================================================================== 26 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 27 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 28 | Write-Host "" 29 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 30 | #====================================================================================== 31 | # Remove AppLocker Policies 32 | #====================================================================================== 33 | if (Test-Path "$env:SystemRoot\System32\AppLocker") { 34 | Write-Host "Clearing Existing AppLocker Policies ..." 35 | Remove-Item $env:SystemRoot\System32\AppLocker\* -Recurse -Force 36 | } 37 | #====================================================================================== 38 | # Enable the following lines for testing as needed 39 | # Start-Process PowerShell_ISE.exe -Wait 40 | # Read-Host -Prompt "Press Enter to Continue" 41 | #====================================================================================== 42 | Stop-Transcript 43 | #====================================================================================== -------------------------------------------------------------------------------- /Scripts/Remove-OneDriveShortcut.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Set Error Preference 7 | #====================================================================================== 8 | $ErrorActionPreference = 'SilentlyContinue' 9 | #$VerbosePreference = 'Continue' 10 | #====================================================================================== 11 | # Set OSDeploy 12 | #====================================================================================== 13 | $OSDeploy = "$env:ProgramData\OSDeploy" 14 | $OSConfig = "$env:ProgramData\OSConfig" 15 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 16 | $ScriptName = $MyInvocation.MyCommand.Name 17 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 18 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 19 | #====================================================================================== 20 | # Create the Log Directory 21 | #====================================================================================== 22 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 23 | #====================================================================================== 24 | # Start the Transcript 25 | #====================================================================================== 26 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 27 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 28 | Write-Host "" 29 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 30 | #====================================================================================== 31 | # Remove OneDrive Shortcut 32 | #====================================================================================== 33 | if (Test-Path "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk") { 34 | Write-Host "Removing OneDrive Start Menu Shortcut" -ForegroundColor Green 35 | Remove-Item "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" -Force -ErrorAction SilentlyContinue 36 | } 37 | #====================================================================================== 38 | # Enable the following lines for testing as needed 39 | # Start-Process PowerShell_ISE.exe -Wait 40 | # Read-Host -Prompt "Press Enter to Continue" 41 | #====================================================================================== 42 | Stop-Transcript 43 | #====================================================================================== -------------------------------------------------------------------------------- /RegistryXML/Library/User/User Desktop Icons.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Alpha/Backup-Registry.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Set Error Preference 7 | #====================================================================================== 8 | $ErrorActionPreference = 'SilentlyContinue' 9 | #$VerbosePreference = 'Continue' 10 | #====================================================================================== 11 | # Set OSDeploy 12 | #====================================================================================== 13 | $OSDeploy = "$env:ProgramData\OSDeploy" 14 | $OSConfig = "$env:ProgramData\OSConfig" 15 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 16 | $ScriptName = $MyInvocation.MyCommand.Name 17 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 18 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 19 | #====================================================================================== 20 | # Create the Log Directory 21 | #====================================================================================== 22 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 23 | #====================================================================================== 24 | # Start the Transcript 25 | #====================================================================================== 26 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 27 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 28 | Write-Host "" 29 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 30 | #====================================================================================== 31 | # Create the Registry Backup Directory 32 | #====================================================================================== 33 | $RegistryBackup = "$OSDeploy\RegistryBackup\$((Get-Date).ToString('yyyy-MM-dd-HHmmss'))" 34 | if (!(Test-Path $RegistryBackup)) { 35 | New-Item -ItemType Directory -Path $RegistryBackup | Out-Null 36 | } 37 | #====================================================================================== 38 | # Backup the Registry 39 | #====================================================================================== 40 | $regExport = 41 | "export HKCC $RegistryBackup\HKCC.reg /y", 42 | "export HKCU $RegistryBackup\HKCU.reg /y", 43 | "export HKU\.Default $RegistryBackup\HKU-Default.reg /y", 44 | "export HKLM\HARDWARE $RegistryBackup\HKLM-Hardware.reg /y", 45 | "export HKLM\SOFTWARE\Classes $RegistryBackup\HKLM-Software-Classes.reg /y", 46 | "export HKLM\SOFTWARE\Microsoft $RegistryBackup\HKLM-Software-Microsoft.reg /y", 47 | "export HKLM\SOFTWARE\Policies $RegistryBackup\HKLM-Software-Policies.reg /y", 48 | "export HKLM\SYSTEM $RegistryBackup\HKLM-System.reg /y", 49 | "export HKLM\SYSTEM\Setup $RegistryBackup\HKLM-System-Setup.reg /y" 50 | 51 | foreach ($reg in $regExport) { 52 | Write-Host "reg $reg" -ForegroundColor Green 53 | Start-Process reg -ArgumentList $reg -Wait -WindowStyle Hidden 54 | Write-Host "" 55 | } 56 | #====================================================================================== 57 | # Enable the following lines for testing as needed 58 | # Start-Process PowerShell_ISE.exe -Wait 59 | # Read-Host -Prompt "Press Enter to Continue" 60 | #====================================================================================== 61 | Stop-Transcript 62 | #====================================================================================== -------------------------------------------------------------------------------- /Zeta/Backup-Registry.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Set Error Preference 7 | #====================================================================================== 8 | $ErrorActionPreference = 'SilentlyContinue' 9 | #$VerbosePreference = 'Continue' 10 | #====================================================================================== 11 | # Set OSDeploy 12 | #====================================================================================== 13 | $OSDeploy = "$env:ProgramData\OSDeploy" 14 | $OSConfig = "$env:ProgramData\OSConfig" 15 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 16 | $ScriptName = $MyInvocation.MyCommand.Name 17 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 18 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 19 | #====================================================================================== 20 | # Create the Log Directory 21 | #====================================================================================== 22 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 23 | #====================================================================================== 24 | # Start the Transcript 25 | #====================================================================================== 26 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 27 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 28 | Write-Host "" 29 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 30 | #====================================================================================== 31 | # Create the Registry Backup Directory 32 | #====================================================================================== 33 | $RegistryBackup = "$OSDeploy\RegistryBackup\$((Get-Date).ToString('yyyy-MM-dd-HHmmss'))" 34 | if (!(Test-Path $RegistryBackup)) { 35 | New-Item -ItemType Directory -Path $RegistryBackup | Out-Null 36 | } 37 | #====================================================================================== 38 | # Backup the Registry 39 | #====================================================================================== 40 | $regExport = 41 | "export HKCC $RegistryBackup\HKCC.reg /y", 42 | "export HKCU $RegistryBackup\HKCU.reg /y", 43 | "export HKU\.Default $RegistryBackup\HKU-Default.reg /y", 44 | "export HKLM\HARDWARE $RegistryBackup\HKLM-Hardware.reg /y", 45 | "export HKLM\SOFTWARE\Classes $RegistryBackup\HKLM-Software-Classes.reg /y", 46 | "export HKLM\SOFTWARE\Microsoft $RegistryBackup\HKLM-Software-Microsoft.reg /y", 47 | "export HKLM\SOFTWARE\Policies $RegistryBackup\HKLM-Software-Policies.reg /y", 48 | "export HKLM\SYSTEM $RegistryBackup\HKLM-System.reg /y", 49 | "export HKLM\SYSTEM\Setup $RegistryBackup\HKLM-System-Setup.reg /y" 50 | 51 | foreach ($reg in $regExport) { 52 | Write-Host "reg $reg" -ForegroundColor Green 53 | Start-Process reg -ArgumentList $reg -Wait -WindowStyle Hidden 54 | Write-Host "" 55 | } 56 | #====================================================================================== 57 | # Enable the following lines for testing as needed 58 | # Start-Process PowerShell_ISE.exe -Wait 59 | # Read-Host -Prompt "Press Enter to Continue" 60 | #====================================================================================== 61 | Stop-Transcript 62 | #====================================================================================== -------------------------------------------------------------------------------- /RegistryXML/Library/User/Win10 User Content Delivery Manager.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/User/registry.pol: -------------------------------------------------------------------------------- 1 | PReg[Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;MemCheckBoxInRunDlg;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;ForceRunOnStartMenu;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;ForceClassicControlPanel;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;ClearRecentProgForNewUserInStartMenu;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoThemesTab;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;DisablePersonalDirChange;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoSMConfigurePrograms;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoStartMenuMFUprogramsList;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoStartMenuMyGames;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoStartMenuMyMusic;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoSMMyPictures;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;HideSCAHealth;;;][Software\Microsoft\Windows\CurrentVersion\Policies\System;NoDispAppearancePage;;;][Software\Microsoft\Windows\CurrentVersion\Policies\System;NoDispBackgroundPage;;;][Software\Policies\Microsoft\Windows\Explorer;NoRemoteDestinations;;;][Software\Policies\Microsoft\Windows\Explorer;NoStartMenuHomegroup;;;][Software\Policies\Microsoft\Windows\Explorer;NoStartMenuRecordedTV;;;][Software\Policies\Microsoft\Windows\Explorer;NoStartMenuVideos;;;][Software\Policies\Microsoft\Windows\Explorer;NoBalloonFeatureAdvertisements;;;][Software\Policies\Microsoft\Windows\Network Connections;NC_RasAllUserProperties;;;][Software\Policies\Microsoft\Windows\Personalization;NoChangingMousePointers;;;] -------------------------------------------------------------------------------- /Start/LayoutModificationWin10.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Start/StartLayoutWin10.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/DomainSysvol/GPO/User/Preferences/Registry/Registry.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/DomainSysvol/GPO/User/registry.pol: -------------------------------------------------------------------------------- 1 | PReg[Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;MemCheckBoxInRunDlg;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;ForceClassicControlPanel;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;ClearRecentProgForNewUserInStartMenu;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoThemesTab;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;DisablePersonalDirChange;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;NoStartMenuMFUprogramsList;;;][Software\Microsoft\Windows\CurrentVersion\Policies\Explorer;HideSCAHealth;;;][Software\Microsoft\Windows\CurrentVersion\Policies\System;NoDispAppearancePage;;;][Software\Microsoft\Windows\CurrentVersion\Policies\System;NoDispBackgroundPage;;;][Software\Policies\Microsoft\Windows\CloudContent;ConfigureWindowsSpotlight;;;][Software\Policies\Microsoft\Windows\CloudContent;IncludeEnterpriseSpotlight;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableThirdPartySuggestions;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableWindowsSpotlightFeatures;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableWindowsSpotlightWindowsWelcomeExperience;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableWindowsSpotlightOnActionCenter;;;][Software\Policies\Microsoft\Windows\CloudContent;DisableWindowsSpotlightOnSettings;;;][Software\Policies\Microsoft\Windows\Explorer;NoPinningStoreToTaskbar;;;][Software\Policies\Microsoft\Windows\Explorer;NoRemoteDestinations;;;][Software\Policies\Microsoft\Windows\Explorer;HidePeopleBar;;;][Software\Policies\Microsoft\Windows\Explorer;NoBalloonFeatureAdvertisements;;;][Software\Policies\Microsoft\Windows\Network Connections;NC_RasAllUserProperties;;;][Software\Policies\Microsoft\Windows\Personalization;NoChangingMousePointers;;;][Software\Policies\Microsoft\WindowsStore;DisableOSUpgrade;;;] -------------------------------------------------------------------------------- /Start/StartLayoutDomainWin10.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/Machine/Comment.cmtx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | OSDeploy Win7 38 | OSDeploy Win7 39 | OSDeploy Win7 40 | OSDeploy Win7 41 | OSDeploy Win7 42 | OSDeploy Win7 43 | OSDeploy Win7 44 | OSDeploy Win7 45 | OSDeploy Win7 46 | OSDeploy Win7 47 | OSDeploy Win7 48 | OSDeploy Win7 49 | OSDeploy Win7 50 | OSDeploy Win7 51 | OSDeploy Win7 52 | OSDeploy Win7 53 | 54 | 55 | -------------------------------------------------------------------------------- /RegistryXML/Library/User/User Windows Explorer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/DomainSysvol/GPO/Machine/Preferences/Registry/Registry.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/User/Comment.cmtx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | OSDeploy Policy Win7 41 | OSDeploy Policy Win7 42 | OSDeploy Policy Win7 43 | OSDeploy Policy Win7 44 | OSDeploy Policy Win7 45 | OSDeploy Policy Win7 46 | OSDeploy Policy Win7 47 | OSDeploy Policy Win7 48 | OSDeploy Policy Win7 49 | OSDeploy Policy Win7 50 | OSDeploy Policy Win7 51 | OSDeploy Policy Win7 52 | OSDeploy Policy Win7 53 | OSDeploy Policy Win7 54 | OSDeploy Policy Win7 55 | OSDeploy Policy Win7 56 | OSDeploy Policy Win7 57 | OSDeploy Policy Win7 58 | OSDeploy Policy Win7 59 | OSDeploy Policy Win7 60 | OSDeploy Policy Win7 61 | 62 | 63 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/DomainSysvol/GPO/User/Comment.cmtx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | OSDeploy Win10 42 | OSDeploy Win10 43 | OSDeploy Win10 44 | OSDeploy Win10 45 | OSDeploy Win10 46 | OSDeploy Win10 47 | OSDeploy Win10 48 | OSDeploy Win10 49 | OSDeploy Win10 50 | OSDeploy Win10 51 | OSDeploy Win10 52 | OSDeploy Win10 53 | OSDeploy Win10 54 | OSDeploy Win10 55 | OSDeploy Win10 56 | OSDeploy Win10 57 | OSDeploy Win10 58 | OSDeploy Win10 59 | OSDeploy Win10 60 | OSDeploy Win10 61 | OSDeploy Win10 62 | OSDeploy Win10 63 | 64 | 65 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/Backup.xml: -------------------------------------------------------------------------------- 1 | 2 | 01 00 04 9c 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 04 00 ec 00 08 00 00 00 05 02 28 00 00 01 00 00 01 00 00 00 8f fd ac ed b3 ff d1 11 b4 1d 00 a0 c9 68 f9 39 01 01 00 00 00 00 00 05 0b 00 00 00 00 00 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 00 02 00 00 00 02 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 00 02 00 00 00 02 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 07 02 00 00 00 02 14 00 94 00 02 00 01 01 00 00 00 00 00 05 09 00 00 00 00 02 14 00 94 00 02 00 01 01 00 00 00 00 00 05 0b 00 00 00 00 02 14 00 ff 00 0f 00 01 01 00 00 00 00 00 05 12 00 00 00 00 0a 14 00 ff 00 0f 00 01 01 00 00 00 00 00 03 00 00 00 00 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/Backup.xml: -------------------------------------------------------------------------------- 1 | 2 | 01 00 04 9c 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 04 00 ec 00 08 00 00 00 05 02 28 00 00 01 00 00 01 00 00 00 8f fd ac ed b3 ff d1 11 b4 1d 00 a0 c9 68 f9 39 01 01 00 00 00 00 00 05 0b 00 00 00 00 00 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 00 02 00 00 00 02 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 00 02 00 00 00 02 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 07 02 00 00 00 02 14 00 94 00 02 00 01 01 00 00 00 00 00 05 09 00 00 00 00 02 14 00 94 00 02 00 01 01 00 00 00 00 00 05 0b 00 00 00 00 02 14 00 ff 00 0f 00 01 01 00 00 00 00 00 05 12 00 00 00 00 0a 14 00 ff 00 0f 00 01 01 00 00 00 00 00 03 00 00 00 00 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Branding/{8A659800-9817-4543-B305-5D209CD36399}/Backup.xml: -------------------------------------------------------------------------------- 1 | 2 | 01 00 04 9c 00 00 00 00 00 00 00 00 00 00 00 00 14 00 00 00 04 00 ec 00 08 00 00 00 05 02 28 00 00 01 00 00 01 00 00 00 8f fd ac ed b3 ff d1 11 b4 1d 00 a0 c9 68 f9 39 01 01 00 00 00 00 00 05 0b 00 00 00 00 00 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 00 02 00 00 00 02 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 00 02 00 00 00 02 24 00 ff 00 0f 00 01 05 00 00 00 00 00 05 15 00 00 00 84 47 2c 1f ce ae a3 e1 c3 dc 39 20 07 02 00 00 00 02 14 00 94 00 02 00 01 01 00 00 00 00 00 05 09 00 00 00 00 02 14 00 94 00 02 00 01 01 00 00 00 00 00 05 0b 00 00 00 00 02 14 00 ff 00 0f 00 01 01 00 00 00 00 00 05 12 00 00 00 00 0a 14 00 ff 00 0f 00 01 01 00 00 00 00 00 03 00 00 00 00 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /OSConfig.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.4 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Requirements 7 | #====================================================================================== 8 | $ErrorActionPreference = 'SilentlyContinue' 9 | #$VerbosePreference = 'Continue' 10 | #====================================================================================== 11 | # Set OSDeploy 12 | #====================================================================================== 13 | $OSDeploy = "$env:ProgramData\OSDeploy" 14 | $OSConfig = "$env:ProgramData\OSConfig" 15 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 16 | $ScriptName = $MyInvocation.MyCommand.Name 17 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 18 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 19 | #====================================================================================== 20 | # Create the Log Directory 21 | #====================================================================================== 22 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 23 | #====================================================================================== 24 | # Start the Transcript 25 | #====================================================================================== 26 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 27 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 28 | Write-Host "" 29 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 30 | #====================================================================================== 31 | # Remove Existing OSConfig 32 | #====================================================================================== 33 | if ($ScriptDirectory -ne $OSConfig) { 34 | if (Test-Path $OSConfig) { 35 | Write-Host "Removing existing $OSConfig..." -ForegroundColor Yellow 36 | Remove-Item -Path $OSConfig -Recurse -Force 37 | } 38 | } 39 | #====================================================================================== 40 | # Check for Provisioning Package 41 | #====================================================================================== 42 | if ($ScriptDirectory -like "*ProvisioningPkgTmp*") { 43 | Write-Host "OSConfig is running from a Provisioning Package ..." -ForegroundColor Yellow 44 | #====================================================================================== 45 | # Expand Provisioning Package 46 | #====================================================================================== 47 | if (Test-Path "$ScriptDirectory\OSConfig.cab") { 48 | if (!(Test-Path $OSConfig)) {New-Item -ItemType Directory -Path $OSConfig} 49 | Write-Host "Expanding '$ScriptDirectory\OSConfig.cab' to '$OSConfig'..." -ForegroundColor Yellow 50 | expand "$ScriptDirectory\OSConfig.cab" $OSConfig -F:* 51 | } 52 | } else { 53 | #====================================================================================== 54 | # Copy Files 55 | #====================================================================================== 56 | if ($ScriptDirectory -ne $OSConfig) { 57 | Write-Host "Copying '$ScriptDirectory' to '$OSConfig'..." -ForegroundColor Yellow 58 | Copy-Item -Path $ScriptDirectory -Destination $OSConfig -Recurse 59 | } 60 | } 61 | #====================================================================================== 62 | # Capture the Environment Variables in the Log 63 | #====================================================================================== 64 | Get-Childitem -Path Env:* | Sort-Object Name | Format-Table 65 | #====================================================================================== 66 | # Increase the Screen Buffer size 67 | #====================================================================================== 68 | # This entry allows increased scrolling of the console windows 69 | if (!(Test-Path "HKCU:\Console")) { 70 | New-Item -Path "HKCU:\Console" -Force | Out-Null 71 | New-ItemProperty -Path HKCU:\Console ScreenBufferSize -Value 589889656 -PropertyType DWORD -Force | Out-Null 72 | } 73 | #====================================================================================== 74 | # Execute PowerShell files in OSConfig 75 | #====================================================================================== 76 | Write-Host "" 77 | $OSConfigChild = Get-ChildItem $OSConfig -Directory 78 | foreach ($item in $OSConfigChild) { 79 | Write-Host "$($item.FullName)" -ForegroundColor Green 80 | $OSConfigScripts = Get-ChildItem $item.FullName -Filter *.ps1 -File 81 | 82 | foreach ($script in $OSConfigScripts) { 83 | Write-Host "Executing $($script.FullName)" 84 | #====================================================================================== 85 | # Execute Provisioning Package Minimized 86 | # Change WindowStyle to Hidden when testing is complete 87 | #====================================================================================== 88 | if (Test-Path "$ScriptDirectory\OSConfig.cab") { 89 | Start-Process PowerShell.exe -ArgumentList "-file `"$($script.FullName)`"" -Wait -WindowStyle Minimized 90 | #====================================================================================== 91 | # Execute Standard PowerShell Script 92 | # Choose proper WindowStyle 93 | #====================================================================================== 94 | } else { 95 | #Start-Process PowerShell.exe -ArgumentList "-file `"$($script.FullName)`"" -Wait 96 | #Start-Process PowerShell.exe -ArgumentList "-file `"$($script.FullName)`"" -Wait -NoNewWindow 97 | Start-Process PowerShell.exe -ArgumentList "-file `"$($script.FullName)`"" -Wait -WindowStyle Minimized 98 | #Start-Process PowerShell.exe -ArgumentList "-file `"$($script.FullName)`"" -Wait -WindowStyle Maximized 99 | #Start-Process PowerShell.exe -ArgumentList "-file `"$($script.FullName)`"" -Wait -WindowStyle Hidden 100 | } 101 | } 102 | Write-Host "" 103 | } 104 | #====================================================================================== 105 | # Enable the following lines for testing as needed 106 | # Start-Process PowerShell_ISE.exe -Wait 107 | # Read-Host -Prompt "Press Enter to Continue" 108 | #====================================================================================== 109 | Stop-Transcript 110 | #====================================================================================== -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/Machine/Preferences/Registry/Registry.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Scripts/Enable-RemoteRegistry.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Requirements 7 | #====================================================================================== 8 | $RequiresOS = "" 9 | $RequiresOSReleaseId = "" 10 | $RequiresOSBuild = "" 11 | $ErrorActionPreference = 'SilentlyContinue' 12 | #$VerbosePreference = 'Continue' 13 | #====================================================================================== 14 | # Set OSDeploy 15 | #====================================================================================== 16 | $OSDeploy = "$env:ProgramData\OSDeploy" 17 | $OSConfig = "$env:ProgramData\OSConfig" 18 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 19 | $ScriptName = $MyInvocation.MyCommand.Name 20 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 21 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 22 | #====================================================================================== 23 | # Create the Log Directory 24 | #====================================================================================== 25 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 26 | #====================================================================================== 27 | # Start the Transcript 28 | #====================================================================================== 29 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 30 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 31 | Write-Host "" 32 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 33 | #====================================================================================== 34 | # System Information 35 | #====================================================================================== 36 | $SystemManufacturer = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).SystemManufacturer.Trim() 37 | $SystemProductName = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).SystemProductName.Trim() 38 | $BIOSVersion = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).BIOSVersion.Trim() 39 | $BIOSReleaseDate = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).BIOSReleaseDate.Trim() 40 | if ($SystemManufacturer -like "*Dell*") {$SystemManufacturer = "Dell"} 41 | Write-Host "SystemManufacturer: $SystemManufacturer" -ForegroundColor Cyan 42 | Write-Host "SystemProductName: $SystemProductName" -ForegroundColor Cyan 43 | Write-Host "BIOSVersion: $BIOSVersion" -ForegroundColor Cyan 44 | Write-Host "BIOSReleaseDate: $BIOSReleaseDate" -ForegroundColor Cyan 45 | Write-Host "" 46 | #====================================================================================== 47 | # Windows Information 48 | #====================================================================================== 49 | if (Test-Path -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion") { 50 | $ProductName = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").ProductName.Trim() 51 | $EditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").EditionID.Trim() 52 | if ($ProductName -like "*Windows 10*") { 53 | $CompositionEditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CompositionEditionID.Trim() 54 | $ReleaseId = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").ReleaseId.Trim() 55 | } 56 | $CurrentBuild = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentBuild.Trim() 57 | $CurrentBuildNumber = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentBuildNumber.Trim() 58 | $CurrentVersion = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentVersion.Trim() 59 | $InstallationType = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").InstallationType.Trim() 60 | $RegisteredOwner = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").RegisteredOwner.Trim() 61 | $RegisteredOrganization = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").RegisteredOrganization.Trim() 62 | } else { 63 | $ProductName = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").ProductName.Trim() 64 | $EditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").EditionID.Trim() 65 | if ($ProductName -like "*Windows 10*") { 66 | $CompositionEditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CompositionEditionID.Trim() 67 | $ReleaseId = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").ReleaseId.Trim() 68 | } 69 | $CurrentBuild = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentBuild.Trim() 70 | $CurrentBuildNumber = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentBuildNumber.Trim() 71 | $CurrentVersion = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentVersion.Trim() 72 | $InstallationType = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").InstallationType.Trim() 73 | $RegisteredOwner = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").RegisteredOwner.Trim() 74 | $RegisteredOrganization = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").RegisteredOrganization.Trim() 75 | } 76 | 77 | if ($env:PROCESSOR_ARCHITECTURE -like "*64") { 78 | #64-bit 79 | $Arch = "x64" 80 | $Bits = "64-bit" 81 | } else { 82 | #32-bit 83 | $Arch = "x86" 84 | $Bits = "32-bit" 85 | } 86 | 87 | if ($env:SystemDrive -eq "X:") { 88 | $IsWinPE = "True" 89 | Write-Host "System is running in WinPE" -ForegroundColor Green 90 | } else { 91 | $IsWinPE = "False" 92 | } 93 | 94 | Write-Host "ProductName: $ProductName" -ForegroundColor Cyan 95 | Write-Host "Architecture: $Arch" -ForegroundColor Cyan 96 | Write-Host "IsWinPE: $IsWinPE" -ForegroundColor Cyan 97 | Write-Host "EditionID: $EditionID" -ForegroundColor Cyan 98 | Write-Host "CompositionEditionID: $CompositionEditionID" -ForegroundColor Cyan 99 | Write-Host "ReleaseId: $ReleaseId" -ForegroundColor Cyan 100 | Write-Host "CurrentBuild: $CurrentBuild" -ForegroundColor Cyan 101 | Write-Host "CurrentBuildNumber: $CurrentBuildNumber" -ForegroundColor Cyan 102 | Write-Host "CurrentVersion: $CurrentVersion" -ForegroundColor Cyan 103 | Write-Host "InstallationType: $InstallationType" -ForegroundColor Cyan 104 | Write-Host "RegisteredOwner: $RegisteredOwner" -ForegroundColor Cyan 105 | Write-Host "RegisteredOrganization: $RegisteredOrganization" -ForegroundColor Cyan 106 | Write-Host "" 107 | #====================================================================================== 108 | # Filter Requirements 109 | #====================================================================================== 110 | if (!(Test-Path variable:\RequiresOS)) { 111 | Write-Host "OS Build requirement does not exist" 112 | } else { 113 | if ($RequiresOS -eq "") { 114 | Write-Host "Operating System requirement is empty" 115 | } elseif ($ProductName -like "*$RequiresOS*") { 116 | Write-Host "Operating System requirement PASSED" -ForegroundColor Green 117 | } else { 118 | Write-Host "Operating System requirement FAILED ... Exiting" -ForegroundColor Red 119 | Stop-Transcript 120 | Return 121 | } 122 | } 123 | 124 | if (!(Test-Path variable:\RequiresOSReleaseId)) { 125 | Write-Host "OS Release Id requirement does not exist" 126 | } else { 127 | if ($RequiresOSReleaseId -eq "") { 128 | Write-Host "OS Release Id requirement is empty" 129 | } elseif ($ReleaseId -eq $RequiresOSReleaseId) { 130 | Write-Host "OS Release Id requirement PASSED" -ForegroundColor Green 131 | } else { 132 | Write-Host "OS Release Id requirement FAILED ... Exiting" -ForegroundColor Red 133 | Stop-Transcript 134 | Return 135 | } 136 | } 137 | 138 | if (!(Test-Path variable:\RequiresOSBuild)) { 139 | Write-Host "OS Build requirement does not exist" 140 | } else { 141 | if ($RequiresOSBuild -eq "") { 142 | Write-Host "OS Build requirement is empty" 143 | } elseif ($CurrentBuild -eq $RequiresOSBuild) { 144 | Write-Host "OS Build requirement PASSED" -ForegroundColor Green 145 | } else { 146 | Write-Host "OS Build requirement FAILED" -ForegroundColor Red 147 | } 148 | } 149 | Write-Host "" 150 | #====================================================================================== 151 | # Enable Remote Registry 152 | #====================================================================================== 153 | Write-Host "" 154 | Write-Host "Setting RemoteRegistry Service to Automatic" -ForegroundColor Green 155 | Set-Service -Name RemoteRegistry -StartupType Automatic 156 | #====================================================================================== 157 | # Enable the following lines for testing as needed 158 | # Start-Process PowerShell_ISE.exe -Wait 159 | # Read-Host -Prompt "Press Enter to Continue" 160 | #====================================================================================== 161 | Stop-Transcript 162 | #====================================================================================== -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win7/{7DBA9830-2CDC-4DD9-8EFA-66351CE5798B}/DomainSysvol/GPO/User/Preferences/Registry/Registry.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Scripts/Set-OemModel.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Requirements 7 | #====================================================================================== 8 | $RequiresOS = "" 9 | $RequiresOSReleaseId = "" 10 | $RequiresOSBuild = "" 11 | $ErrorActionPreference = 'SilentlyContinue' 12 | #$VerbosePreference = 'Continue' 13 | #====================================================================================== 14 | # Set OSDeploy 15 | #====================================================================================== 16 | $OSDeploy = "$env:ProgramData\OSDeploy" 17 | $OSConfig = "$env:ProgramData\OSConfig" 18 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 19 | $ScriptName = $MyInvocation.MyCommand.Name 20 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 21 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 22 | #====================================================================================== 23 | # Create the Log Directory 24 | #====================================================================================== 25 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 26 | #====================================================================================== 27 | # Start the Transcript 28 | #====================================================================================== 29 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 30 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 31 | Write-Host "" 32 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 33 | #====================================================================================== 34 | # System Information 35 | #====================================================================================== 36 | $SystemManufacturer = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).SystemManufacturer.Trim() 37 | $SystemProductName = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).SystemProductName.Trim() 38 | $BIOSVersion = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).BIOSVersion.Trim() 39 | $BIOSReleaseDate = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).BIOSReleaseDate.Trim() 40 | if ($SystemManufacturer -like "*Dell*") {$SystemManufacturer = "Dell"} 41 | Write-Host "SystemManufacturer: $SystemManufacturer" -ForegroundColor Cyan 42 | Write-Host "SystemProductName: $SystemProductName" -ForegroundColor Cyan 43 | Write-Host "BIOSVersion: $BIOSVersion" -ForegroundColor Cyan 44 | Write-Host "BIOSReleaseDate: $BIOSReleaseDate" -ForegroundColor Cyan 45 | Write-Host "" 46 | #====================================================================================== 47 | # Windows Information 48 | #====================================================================================== 49 | if (Test-Path -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion") { 50 | $ProductName = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").ProductName.Trim() 51 | $EditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").EditionID.Trim() 52 | if ($ProductName -like "*Windows 10*") { 53 | $CompositionEditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CompositionEditionID.Trim() 54 | $ReleaseId = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").ReleaseId.Trim() 55 | } 56 | $CurrentBuild = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentBuild.Trim() 57 | $CurrentBuildNumber = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentBuildNumber.Trim() 58 | $CurrentVersion = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentVersion.Trim() 59 | $InstallationType = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").InstallationType.Trim() 60 | $RegisteredOwner = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").RegisteredOwner.Trim() 61 | $RegisteredOrganization = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").RegisteredOrganization.Trim() 62 | } else { 63 | $ProductName = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").ProductName.Trim() 64 | $EditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").EditionID.Trim() 65 | if ($ProductName -like "*Windows 10*") { 66 | $CompositionEditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CompositionEditionID.Trim() 67 | $ReleaseId = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").ReleaseId.Trim() 68 | } 69 | $CurrentBuild = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentBuild.Trim() 70 | $CurrentBuildNumber = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentBuildNumber.Trim() 71 | $CurrentVersion = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentVersion.Trim() 72 | $InstallationType = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").InstallationType.Trim() 73 | $RegisteredOwner = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").RegisteredOwner.Trim() 74 | $RegisteredOrganization = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").RegisteredOrganization.Trim() 75 | } 76 | 77 | if ($env:PROCESSOR_ARCHITECTURE -like "*64") { 78 | #64-bit 79 | $Arch = "x64" 80 | $Bits = "64-bit" 81 | } else { 82 | #32-bit 83 | $Arch = "x86" 84 | $Bits = "32-bit" 85 | } 86 | 87 | if ($env:SystemDrive -eq "X:") { 88 | $IsWinPE = "True" 89 | Write-Host "System is running in WinPE" -ForegroundColor Green 90 | } else { 91 | $IsWinPE = "False" 92 | } 93 | 94 | Write-Host "ProductName: $ProductName" -ForegroundColor Cyan 95 | Write-Host "Architecture: $Arch" -ForegroundColor Cyan 96 | Write-Host "IsWinPE: $IsWinPE" -ForegroundColor Cyan 97 | Write-Host "EditionID: $EditionID" -ForegroundColor Cyan 98 | Write-Host "CompositionEditionID: $CompositionEditionID" -ForegroundColor Cyan 99 | Write-Host "ReleaseId: $ReleaseId" -ForegroundColor Cyan 100 | Write-Host "CurrentBuild: $CurrentBuild" -ForegroundColor Cyan 101 | Write-Host "CurrentBuildNumber: $CurrentBuildNumber" -ForegroundColor Cyan 102 | Write-Host "CurrentVersion: $CurrentVersion" -ForegroundColor Cyan 103 | Write-Host "InstallationType: $InstallationType" -ForegroundColor Cyan 104 | Write-Host "RegisteredOwner: $RegisteredOwner" -ForegroundColor Cyan 105 | Write-Host "RegisteredOrganization: $RegisteredOrganization" -ForegroundColor Cyan 106 | Write-Host "" 107 | #====================================================================================== 108 | # Filter Requirements 109 | #====================================================================================== 110 | if (!(Test-Path variable:\RequiresOS)) { 111 | Write-Host "OS Build requirement does not exist" 112 | } else { 113 | if ($RequiresOS -eq "") { 114 | Write-Host "Operating System requirement is empty" 115 | } elseif ($ProductName -like "*$RequiresOS*") { 116 | Write-Host "Operating System requirement PASSED" -ForegroundColor Green 117 | } else { 118 | Write-Host "Operating System requirement FAILED ... Exiting" -ForegroundColor Red 119 | Stop-Transcript 120 | Return 121 | } 122 | } 123 | 124 | if (!(Test-Path variable:\RequiresOSReleaseId)) { 125 | Write-Host "OS Release Id requirement does not exist" 126 | } else { 127 | if ($RequiresOSReleaseId -eq "") { 128 | Write-Host "OS Release Id requirement is empty" 129 | } elseif ($ReleaseId -eq $RequiresOSReleaseId) { 130 | Write-Host "OS Release Id requirement PASSED" -ForegroundColor Green 131 | } else { 132 | Write-Host "OS Release Id requirement FAILED ... Exiting" -ForegroundColor Red 133 | Stop-Transcript 134 | Return 135 | } 136 | } 137 | 138 | if (!(Test-Path variable:\RequiresOSBuild)) { 139 | Write-Host "OS Build requirement does not exist" 140 | } else { 141 | if ($RequiresOSBuild -eq "") { 142 | Write-Host "OS Build requirement is empty" 143 | } elseif ($CurrentBuild -eq $RequiresOSBuild) { 144 | Write-Host "OS Build requirement PASSED" -ForegroundColor Green 145 | } else { 146 | Write-Host "OS Build requirement FAILED" -ForegroundColor Red 147 | } 148 | } 149 | Write-Host "" 150 | #====================================================================================== 151 | # Add Computer Model to OEM Information 152 | #====================================================================================== 153 | $ComputerModel = "$SystemManufacturer $SystemProductName" 154 | Write-Host "Setting Computer Model to '$ComputerModel'" 155 | New-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\OEMInformation' -Name 'Model' -Value $ComputerModel -Force | Out-Null 156 | #====================================================================================== 157 | # Enable the following lines for testing as needed 158 | # Start-Process PowerShell_ISE.exe -Wait 159 | # Read-Host -Prompt "Press Enter to Continue" 160 | #====================================================================================== 161 | Stop-Transcript 162 | #====================================================================================== -------------------------------------------------------------------------------- /Scripts/Disable-VmPasswordChange.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Requirements 7 | #====================================================================================== 8 | $RequiresOS = "" 9 | $RequiresOSReleaseId = "" 10 | $RequiresOSBuild = "" 11 | $ErrorActionPreference = 'SilentlyContinue' 12 | #$VerbosePreference = 'Continue' 13 | #====================================================================================== 14 | # Set OSDeploy 15 | #====================================================================================== 16 | $OSDeploy = "$env:ProgramData\OSDeploy" 17 | $OSConfig = "$env:ProgramData\OSConfig" 18 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 19 | $ScriptName = $MyInvocation.MyCommand.Name 20 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 21 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 22 | #====================================================================================== 23 | # Create the Log Directory 24 | #====================================================================================== 25 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 26 | #====================================================================================== 27 | # Start the Transcript 28 | #====================================================================================== 29 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 30 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 31 | Write-Host "" 32 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 33 | #====================================================================================== 34 | # System Information 35 | #====================================================================================== 36 | $SystemManufacturer = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).SystemManufacturer.Trim() 37 | $SystemProductName = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).SystemProductName.Trim() 38 | $BIOSVersion = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).BIOSVersion.Trim() 39 | $BIOSReleaseDate = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).BIOSReleaseDate.Trim() 40 | if ($SystemManufacturer -like "*Dell*") {$SystemManufacturer = "Dell"} 41 | Write-Host "SystemManufacturer: $SystemManufacturer" -ForegroundColor Cyan 42 | Write-Host "SystemProductName: $SystemProductName" -ForegroundColor Cyan 43 | Write-Host "BIOSVersion: $BIOSVersion" -ForegroundColor Cyan 44 | Write-Host "BIOSReleaseDate: $BIOSReleaseDate" -ForegroundColor Cyan 45 | Write-Host "" 46 | #====================================================================================== 47 | # Windows Information 48 | #====================================================================================== 49 | if (Test-Path -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion") { 50 | $ProductName = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").ProductName.Trim() 51 | $EditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").EditionID.Trim() 52 | if ($ProductName -like "*Windows 10*") { 53 | $CompositionEditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CompositionEditionID.Trim() 54 | $ReleaseId = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").ReleaseId.Trim() 55 | } 56 | $CurrentBuild = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentBuild.Trim() 57 | $CurrentBuildNumber = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentBuildNumber.Trim() 58 | $CurrentVersion = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentVersion.Trim() 59 | $InstallationType = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").InstallationType.Trim() 60 | $RegisteredOwner = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").RegisteredOwner.Trim() 61 | $RegisteredOrganization = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").RegisteredOrganization.Trim() 62 | } else { 63 | $ProductName = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").ProductName.Trim() 64 | $EditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").EditionID.Trim() 65 | if ($ProductName -like "*Windows 10*") { 66 | $CompositionEditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CompositionEditionID.Trim() 67 | $ReleaseId = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").ReleaseId.Trim() 68 | } 69 | $CurrentBuild = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentBuild.Trim() 70 | $CurrentBuildNumber = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentBuildNumber.Trim() 71 | $CurrentVersion = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentVersion.Trim() 72 | $InstallationType = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").InstallationType.Trim() 73 | $RegisteredOwner = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").RegisteredOwner.Trim() 74 | $RegisteredOrganization = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").RegisteredOrganization.Trim() 75 | } 76 | 77 | if ($env:PROCESSOR_ARCHITECTURE -like "*64") { 78 | #64-bit 79 | $Arch = "x64" 80 | $Bits = "64-bit" 81 | } else { 82 | #32-bit 83 | $Arch = "x86" 84 | $Bits = "32-bit" 85 | } 86 | 87 | if ($env:SystemDrive -eq "X:") { 88 | $IsWinPE = "True" 89 | Write-Host "System is running in WinPE" -ForegroundColor Green 90 | } else { 91 | $IsWinPE = "False" 92 | } 93 | 94 | Write-Host "ProductName: $ProductName" -ForegroundColor Cyan 95 | Write-Host "Architecture: $Arch" -ForegroundColor Cyan 96 | Write-Host "IsWinPE: $IsWinPE" -ForegroundColor Cyan 97 | Write-Host "EditionID: $EditionID" -ForegroundColor Cyan 98 | Write-Host "CompositionEditionID: $CompositionEditionID" -ForegroundColor Cyan 99 | Write-Host "ReleaseId: $ReleaseId" -ForegroundColor Cyan 100 | Write-Host "CurrentBuild: $CurrentBuild" -ForegroundColor Cyan 101 | Write-Host "CurrentBuildNumber: $CurrentBuildNumber" -ForegroundColor Cyan 102 | Write-Host "CurrentVersion: $CurrentVersion" -ForegroundColor Cyan 103 | Write-Host "InstallationType: $InstallationType" -ForegroundColor Cyan 104 | Write-Host "RegisteredOwner: $RegisteredOwner" -ForegroundColor Cyan 105 | Write-Host "RegisteredOrganization: $RegisteredOrganization" -ForegroundColor Cyan 106 | Write-Host "" 107 | #====================================================================================== 108 | # Filter Requirements 109 | #====================================================================================== 110 | if (!(Test-Path variable:\RequiresOS)) { 111 | Write-Host "OS Build requirement does not exist" 112 | } else { 113 | if ($RequiresOS -eq "") { 114 | Write-Host "Operating System requirement is empty" 115 | } elseif ($ProductName -like "*$RequiresOS*") { 116 | Write-Host "Operating System requirement PASSED" -ForegroundColor Green 117 | } else { 118 | Write-Host "Operating System requirement FAILED ... Exiting" -ForegroundColor Red 119 | Stop-Transcript 120 | Return 121 | } 122 | } 123 | 124 | if (!(Test-Path variable:\RequiresOSReleaseId)) { 125 | Write-Host "OS Release Id requirement does not exist" 126 | } else { 127 | if ($RequiresOSReleaseId -eq "") { 128 | Write-Host "OS Release Id requirement is empty" 129 | } elseif ($ReleaseId -eq $RequiresOSReleaseId) { 130 | Write-Host "OS Release Id requirement PASSED" -ForegroundColor Green 131 | } else { 132 | Write-Host "OS Release Id requirement FAILED ... Exiting" -ForegroundColor Red 133 | Stop-Transcript 134 | Return 135 | } 136 | } 137 | 138 | if (!(Test-Path variable:\RequiresOSBuild)) { 139 | Write-Host "OS Build requirement does not exist" 140 | } else { 141 | if ($RequiresOSBuild -eq "") { 142 | Write-Host "OS Build requirement is empty" 143 | } elseif ($CurrentBuild -eq $RequiresOSBuild) { 144 | Write-Host "OS Build requirement PASSED" -ForegroundColor Green 145 | } else { 146 | Write-Host "OS Build requirement FAILED" -ForegroundColor Red 147 | } 148 | } 149 | Write-Host "" 150 | #====================================================================================== 151 | # Virtual Machine Disable Password Change 152 | #====================================================================================== 153 | if ($SystemProductName -like "*Virtual*") { 154 | $Modification = 'add "HKLM\System\CurrentControlSet\Services\Netlogon\Parameters" /v DisablePasswordChange /t REG_DWORD /d 1 /f' 155 | Write-Host "" 156 | Write-Host "reg $Modification" -ForegroundColor Green 157 | Start-Process reg -ArgumentList $Modification -Wait -WindowStyle Hidden -ErrorAction SilentlyContinue 158 | } 159 | #====================================================================================== 160 | # Enable the following lines for testing as needed 161 | # Start-Process PowerShell_ISE.exe -Wait 162 | # Read-Host -Prompt "Press Enter to Continue" 163 | #====================================================================================== 164 | Stop-Transcript 165 | #====================================================================================== -------------------------------------------------------------------------------- /Apps/Set-AppAssoc.ps1: -------------------------------------------------------------------------------- 1 | #====================================================================================== 2 | # Author: David Segura 3 | # Version: 18.9.3 4 | # https://www.osdeploy.com/ 5 | #====================================================================================== 6 | # Requirements 7 | #====================================================================================== 8 | $RequiresOS = "" 9 | $RequiresOSReleaseId = "" 10 | $RequiresOSBuild = "" 11 | $ErrorActionPreference = 'SilentlyContinue' 12 | #$VerbosePreference = 'Continue' 13 | #====================================================================================== 14 | # Set OSDeploy 15 | #====================================================================================== 16 | $OSDeploy = "$env:ProgramData\OSDeploy" 17 | $OSConfig = "$env:ProgramData\OSConfig" 18 | $OSConfigLogs = "$OSDeploy\Logs\OSConfig" 19 | $ScriptName = $MyInvocation.MyCommand.Name 20 | $ScriptDirectory = Split-Path $MyInvocation.MyCommand.Path -Parent 21 | $Host.UI.RawUI.WindowTitle = "$ScriptDirectory\$ScriptName" 22 | #====================================================================================== 23 | # Create the Log Directory 24 | #====================================================================================== 25 | if (!(Test-Path $OSConfigLogs)) {New-Item -ItemType Directory -Path $OSConfigLogs} 26 | #====================================================================================== 27 | # Start the Transcript 28 | #====================================================================================== 29 | $LogName = "$ScriptName-$((Get-Date).ToString('yyyy-MM-dd-HHmmss')).log" 30 | Start-Transcript -Path (Join-Path $OSConfigLogs $LogName) 31 | Write-Host "" 32 | Write-Host "Starting $ScriptName from $ScriptDirectory" -ForegroundColor Yellow 33 | #====================================================================================== 34 | # System Information 35 | #====================================================================================== 36 | $SystemManufacturer = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).SystemManufacturer.Trim() 37 | $SystemProductName = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).SystemProductName.Trim() 38 | $BIOSVersion = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).BIOSVersion.Trim() 39 | $BIOSReleaseDate = (Get-ItemProperty -Path HKLM:\System\CurrentControlSet\Control\SystemInformation).BIOSReleaseDate.Trim() 40 | if ($SystemManufacturer -like "*Dell*") {$SystemManufacturer = "Dell"} 41 | Write-Host "SystemManufacturer: $SystemManufacturer" -ForegroundColor Cyan 42 | Write-Host "SystemProductName: $SystemProductName" -ForegroundColor Cyan 43 | Write-Host "BIOSVersion: $BIOSVersion" -ForegroundColor Cyan 44 | Write-Host "BIOSReleaseDate: $BIOSReleaseDate" -ForegroundColor Cyan 45 | Write-Host "" 46 | #====================================================================================== 47 | # Windows Information 48 | #====================================================================================== 49 | if (Test-Path -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion") { 50 | $ProductName = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").ProductName.Trim() 51 | $EditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").EditionID.Trim() 52 | if ($ProductName -like "*Windows 10*") { 53 | $CompositionEditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CompositionEditionID.Trim() 54 | $ReleaseId = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").ReleaseId.Trim() 55 | } 56 | $CurrentBuild = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentBuild.Trim() 57 | $CurrentBuildNumber = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentBuildNumber.Trim() 58 | $CurrentVersion = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").CurrentVersion.Trim() 59 | $InstallationType = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").InstallationType.Trim() 60 | $RegisteredOwner = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").RegisteredOwner.Trim() 61 | $RegisteredOrganization = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").RegisteredOrganization.Trim() 62 | } else { 63 | $ProductName = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").ProductName.Trim() 64 | $EditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").EditionID.Trim() 65 | if ($ProductName -like "*Windows 10*") { 66 | $CompositionEditionID = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CompositionEditionID.Trim() 67 | $ReleaseId = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").ReleaseId.Trim() 68 | } 69 | $CurrentBuild = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentBuild.Trim() 70 | $CurrentBuildNumber = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentBuildNumber.Trim() 71 | $CurrentVersion = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").CurrentVersion.Trim() 72 | $InstallationType = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").InstallationType.Trim() 73 | $RegisteredOwner = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").RegisteredOwner.Trim() 74 | $RegisteredOrganization = (Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion").RegisteredOrganization.Trim() 75 | } 76 | 77 | if ($env:PROCESSOR_ARCHITECTURE -like "*64") { 78 | #64-bit 79 | $Arch = "x64" 80 | $Bits = "64-bit" 81 | } else { 82 | #32-bit 83 | $Arch = "x86" 84 | $Bits = "32-bit" 85 | } 86 | 87 | if ($env:SystemDrive -eq "X:") { 88 | $IsWinPE = "True" 89 | Write-Host "System is running in WinPE" -ForegroundColor Green 90 | } else { 91 | $IsWinPE = "False" 92 | } 93 | 94 | Write-Host "ProductName: $ProductName" -ForegroundColor Cyan 95 | Write-Host "Architecture: $Arch" -ForegroundColor Cyan 96 | Write-Host "IsWinPE: $IsWinPE" -ForegroundColor Cyan 97 | Write-Host "EditionID: $EditionID" -ForegroundColor Cyan 98 | Write-Host "CompositionEditionID: $CompositionEditionID" -ForegroundColor Cyan 99 | Write-Host "ReleaseId: $ReleaseId" -ForegroundColor Cyan 100 | Write-Host "CurrentBuild: $CurrentBuild" -ForegroundColor Cyan 101 | Write-Host "CurrentBuildNumber: $CurrentBuildNumber" -ForegroundColor Cyan 102 | Write-Host "CurrentVersion: $CurrentVersion" -ForegroundColor Cyan 103 | Write-Host "InstallationType: $InstallationType" -ForegroundColor Cyan 104 | Write-Host "RegisteredOwner: $RegisteredOwner" -ForegroundColor Cyan 105 | Write-Host "RegisteredOrganization: $RegisteredOrganization" -ForegroundColor Cyan 106 | Write-Host "" 107 | #====================================================================================== 108 | # Filter Requirements 109 | #====================================================================================== 110 | if (!(Test-Path variable:\RequiresOS)) { 111 | Write-Host "OS Build requirement does not exist" 112 | } else { 113 | if ($RequiresOS -eq "") { 114 | Write-Host "Operating System requirement is empty" 115 | } elseif ($ProductName -like "*$RequiresOS*") { 116 | Write-Host "Operating System requirement PASSED" -ForegroundColor Green 117 | } else { 118 | Write-Host "Operating System requirement FAILED ... Exiting" -ForegroundColor Red 119 | Stop-Transcript 120 | Return 121 | } 122 | } 123 | 124 | if (!(Test-Path variable:\RequiresOSReleaseId)) { 125 | Write-Host "OS Release Id requirement does not exist" 126 | } else { 127 | if ($RequiresOSReleaseId -eq "") { 128 | Write-Host "OS Release Id requirement is empty" 129 | } elseif ($ReleaseId -eq $RequiresOSReleaseId) { 130 | Write-Host "OS Release Id requirement PASSED" -ForegroundColor Green 131 | } else { 132 | Write-Host "OS Release Id requirement FAILED ... Exiting" -ForegroundColor Red 133 | Stop-Transcript 134 | Return 135 | } 136 | } 137 | 138 | if (!(Test-Path variable:\RequiresOSBuild)) { 139 | Write-Host "OS Build requirement does not exist" 140 | } else { 141 | if ($RequiresOSBuild -eq "") { 142 | Write-Host "OS Build requirement is empty" 143 | } elseif ($CurrentBuild -eq $RequiresOSBuild) { 144 | Write-Host "OS Build requirement PASSED" -ForegroundColor Green 145 | } else { 146 | Write-Host "OS Build requirement FAILED" -ForegroundColor Red 147 | } 148 | } 149 | Write-Host "" 150 | #====================================================================================== 151 | # Set AppAssoc.xml 152 | #====================================================================================== 153 | $AppAssoc = "$OSConfig\Apps\AppAssoc.xml" 154 | 155 | if ($ProductName -like "*Windows 10*") {$AppAssocOS = "$OSConfig\Apps\AppAssocWin10.xml"} 156 | if ($ProductName -like "*Server 2016*") {$AppAssocOS = "$OSConfig\Apps\AppAssocServer2016.xml"} 157 | 158 | if (Test-Path $AppAssocOS) {Copy-Item $AppAssocOS $AppAssoc -Force} 159 | 160 | if (Test-Path $AppAssoc) { 161 | Write-Host "Importing Default App Association file $AppAssoc" 162 | dism /online /Import-DefaultAppAssociations:$AppAssoc 163 | } 164 | #====================================================================================== 165 | # Enable the following lines for testing as needed 166 | # Start-Process PowerShell_ISE.exe -Wait 167 | # Read-Host -Prompt "Press Enter to Continue" 168 | #====================================================================================== 169 | Stop-Transcript 170 | #====================================================================================== -------------------------------------------------------------------------------- /LocalPolicy/ImportGPO/OSDeploy Win10/{895F7B98-B217-4F89-AE2C-541C97F8D43A}/DomainSysvol/GPO/Machine/Comment.cmtx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | OSDeploy Win10 75 | OSDeploy Win10 76 | OSDeploy Win10 77 | OSDeploy Win10 78 | OSDeploy Win10 79 | OSDeploy Win10 80 | OSDeploy Win10 81 | OSDeploy Win10 82 | OSDeploy Win10 83 | OSDeploy Win10 84 | OSDeploy Win10 85 | OSDeploy Win10 86 | OSDeploy Win10 87 | OSDeploy Win10 88 | OSDeploy Win10 89 | OSDeploy Win10 90 | OSDeploy Win10 91 | OSDeploy Win10 92 | OSDeploy Win10 93 | OSDeploy Win10 94 | OSDeploy Win10 95 | OSDeploy Win10 96 | OSDeploy Win10 97 | OSDeploy Win10 98 | OSDeploy Win10 99 | OSDeploy Win10 100 | OSDeploy Win10 101 | OSDeploy Win10 102 | OSDeploy Win10 103 | OSDeploy Win10 104 | OSDeploy Win10 105 | OSDeploy Win10 106 | OSDeploy Win10 107 | OSDeploy Win10 108 | OSDeploy Win10 109 | OSDeploy Win10 110 | OSDeploy Win10 111 | OSDeploy Win10 112 | OSDeploy Win10 113 | 114 | 115 | --------------------------------------------------------------------------------