Added Files
@@ -0,0 +1,90 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Set NTP-Server and Time
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:SetNtpServerAndTime
|
||||
TITLE SetNtpServerAndTime
|
||||
SET Module=SetNtpServerAndTime
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
%SystemRoot%\System32\net.exe stop w32time >nul 2>&1
|
||||
%SystemRoot%\System32\w32tm.exe /config /syncfromflags:manual /manualpeerlist:"0.de.pool.ntp.org 1.de.pool.ntp.org 2.de.pool.ntp.org 3.de.pool.ntp.org" >nul 2>&1
|
||||
%SystemRoot%\System32\net.exe start w32time >nul 2>&1
|
||||
%SystemRoot%\System32\sc.exe config w32time start= auto >nul 2>&1
|
||||
%SystemRoot%\System32\w32tm.exe /resync /force >nul 2>&1
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Set Powerplan to High Performance
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:SetPowerPlanToHighPerformance
|
||||
TITLE SetPowerPlanToHighPerformance
|
||||
SET Module=SetPowerPlanToHighPerformance
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Set Power Plan to High Performance
|
||||
ECHO %TIME:~0,8% Set Power Plan to High Performance >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "c:\scripts\PowerShell\Set-PowerPlanToHighPerformance.ps1" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable the Network Discovery Prompt Window
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisableTheNetworkDiscoveryPromptWindow
|
||||
TITLE DisableTheNetworkDiscoveryPromptWindow
|
||||
SET Module=DisableTheNetworkDiscoveryPromptWindow
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable the network discovery prompt window
|
||||
ECHO %TIME:~0,8% Disable the network discovery prompt window >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKLM\System\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: NoBackgroundImageAtTheLogonPage
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:NoBackgroundImageAtTheLogonPage
|
||||
TITLE NoBackgroundImageAtTheLogonPage
|
||||
SET Module=NoBackgroundImageAtTheLogonPage
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO No Background Image at the Logon Page
|
||||
ECHO %TIME:~0,8% No Background Image at the Logon Page >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" /v DisableLogonBackgroundImage /t REG_DWORD /d 1 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Increase Taskbar Transparency Level
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:IncreaseTaskbarTransparencyLevel
|
||||
TITLE IncreaseTaskbarTransparencyLevel
|
||||
SET Module=IncreaseTaskbarTransparencyLevel
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Increase Taskbar Transparency Level
|
||||
ECHO %TIME:~0,8% Increase Taskbar Transparency Level >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v UseOLEDTaskbarTransparency /t REG_DWORD /d 1 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,94 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Quick Shutdown
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:QuickShutdown
|
||||
TITLE QuickShutdown
|
||||
SET Module=QuickShutdown
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Quick Shutdown
|
||||
ECHO %TIME:~0,8% Quick Shutdown >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control" /v WaitToKillServiceTimeout /t REG_SZ /d 1000 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Set wait to kill service timeout to 1000
|
||||
ECHO %TIME:~0,8% Set wait to kill service timeout to 1000 >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v WaitToKillServiceTimeout /t REG_SZ /d 1000 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable First Time Sign In Animation
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisableFirstTimeSignInAnimation
|
||||
TITLE DisableFirstTimeSignInAnimation
|
||||
SET Module=DisableFirstTimeSignInAnimation
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable First Time Sign-in Animation
|
||||
ECHO %TIME:~0,8% Disable First Time Sign-in Animation >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable The Lock Screen
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisableTheLockScreen
|
||||
TITLE DisableTheLockScreen
|
||||
SET Module=DisableTheLockScreen
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable the Lock Screen
|
||||
ECHO %TIME:~0,8% Disable the Lock Screen >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v NoLockScreen /t REG_DWORD /d 1 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Turn Off Fast Startup
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:TurnOffFastStartup
|
||||
TITLE TurnOffFastStartup
|
||||
SET Module=TurnOffFastStartup
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Turn off Fast Startup
|
||||
ECHO %TIME:~0,8% Turn off Fast Startup >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable Privacy Settings Experience At Sign In
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisablePrivacySettingsExperienceAtSignIn
|
||||
TITLE DisablePrivacySettingsExperienceAtSignIn
|
||||
SET Module=DisablePrivacySettingsExperienceAtSignIn
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable Privacy Settings Experience at Sign-in
|
||||
ECHO %TIME:~0,8% Disable Privacy Settings Experience at Sign-in >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OOBE" /v DisablePrivacyExperience /t REG_DWORD /d 1 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable Telemetry
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisableTelemetry
|
||||
TITLE DisableTelemetry
|
||||
SET Module=DisableTelemetry
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable Telemetry
|
||||
ECHO %TIME:~0,8% Disable Telemetry >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Allow Microsoft Updates For Other Products
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:AllowMicrosoftUpdatesForOtherProducts
|
||||
TITLE AllowMicrosoftUpdatesForOtherProducts
|
||||
SET Module=AllowMicrosoftUpdatesForOtherProducts
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Allow Microsoft Updates for other products
|
||||
ECHO %TIME:~0,8% Allow Microsoft Updates for other products >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\7971f918-a847-4430-9279-4a52d1efe18d" /v RegisteredWithAU /t REG_DWORD /d 1 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Unnecessarily Writing On SSD Will Shorten The Lifetime
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:UnnecessarilyWritingOnSSDWillShortenTheLifetime
|
||||
TITLE UnnecessarilyWritingOnSSDWillShortenTheLifetime
|
||||
SET Module=UnnecessarilyWritingOnSSDWillShortenTheLifetime
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Unnecessarily writing on SSD will shorten the lifetime
|
||||
ECHO %TIME:~0,8% Unnecessarily writing on SSD will shorten the lifetime >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v NtfsDisableLastAccessUpdate /t REG_DWORD /d 80000001 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable Auto Run For All Volumes
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisableAutoRunForAllVolumes
|
||||
TITLE DisableAutoRunForAllVolumes
|
||||
SET Module=DisableAutoRunForAllVolumes
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable Auto Run for all volumes
|
||||
ECHO %TIME:~0,8% Disable Auto Run for all volumes >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v NoAutoplayfornonVolume /t REG_DWORD /d 1 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Display Detailed Information In Device Manager
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisplayDetailedInformationInDeviceManager
|
||||
TITLE DisplayDetailedInformationInDeviceManager
|
||||
SET Module=DisplayDetailedInformationInDeviceManager
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Display detailed information in Device Manager
|
||||
ECHO %TIME:~0,8% Display detailed information in Device Manager >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v "DEVMGR_SHOW_DETAILS" /t REG_DWORD /d 1 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable Edge First Run
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisableEdgeFirstRun
|
||||
TITLE DisableEdgeFirstRun
|
||||
SET Module=DisableEdgeFirstRun
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable Edge First Run
|
||||
ECHO %TIME:~0,8% Disable Edge First Run >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v PreventFirstRunPage /t REG_DWORD /d 1 /reg:64 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable Edge Prelaunch
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisableEdgePrelaunch
|
||||
TITLE DisableEdgePrelaunch
|
||||
SET Module=DisableEdgePrelaunch
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable Edge Prelaunch
|
||||
ECHO %TIME:~0,8% Disable Edge Prelaunch >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main" /v AllowPrelaunch /t REG_DWORD /d 0 /reg:64 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Disable Edge Tab Pre loading
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DisableEdgeTabPreloading
|
||||
TITLE DisableEdgeTabPreloading
|
||||
SET Module=DisableEdgeTabPreloading
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Disable Edge Tab Preloading
|
||||
ECHO %TIME:~0,8% Disable Edge Tab Preloading >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\TabPreloader" /v AllowTabPreloading /t REG_DWORD /d 0 /reg:64 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Enable Remote PowerShell
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:EnableRemotePowerShell
|
||||
TITLE EnableRemotePowerShell
|
||||
SET Module=EnableRemotePowerShell
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Enable Remote PowerShell
|
||||
ECHO %TIME:~0,8% Enable Remote PowerShell >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "Enable-PSRemoting -SkipNetworkProfileCheck -Force -Confirm:$false -ErrorAction Continue" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Create PowerShell Profiles
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:CreatePowerShellProfiles
|
||||
TITLE CreatePowerShellProfiles
|
||||
SET Module=CreatePowerShellProfiles
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Create plain PowerShell Profiles
|
||||
ECHO %TIME:~0,8% Create plain PowerShell Profiles >>%logfile_setup%
|
||||
start /MIN /WAIT "CleanupStockApps" %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "C:\scripts\PowerShell\New-PowerShellProfiles.ps1" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,91 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Installing Chocolatey
|
||||
:: Version 1.0.2
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:InstallingChocolatey
|
||||
TITLE InstallingChocolatey
|
||||
SET Module=InstallingChocolatey
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Installing Chocolatey
|
||||
ECHO %TIME:~0,8% Installing Chocolatey >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Install-Choco.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
:: 1.0.1: Fix Typo
|
||||
:: 1.0.2: Moved the installation to a dedicated PowerShell Script
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,94 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Add NuGet Package Source
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:AddNuGetPackageSource
|
||||
TITLE AddNuGetPackageSource
|
||||
SET Module=AddNuGetPackageSource
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Add NuGet Package Source
|
||||
ECHO %TIME:~0,8% Add NuGet Package Source >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(Install-PackageProvider -Name NuGet -Force -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Register Nuget Repository
|
||||
ECHO %TIME:~0,8% Register Nuget Repository >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(Register-PackageSource -Name Nuget -Location 'http://www.nuget.org/api/v2' -ProviderName Nuget -Trusted -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,94 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Configures Windows Remote Management
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:ConfiguresWindowsRemoteManagement
|
||||
TITLE ConfiguresWindowsRemoteManagement
|
||||
SET Module=ConfiguresWindowsRemoteManagement
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Configures Windows Remote Management
|
||||
ECHO %TIME:~0,8% Configures Windows Remote Management >>%logfile_setup%
|
||||
start /MIN /WAIT "Configures Windows Remote Management (WinRM)" cmd /c winrm quickconfig -force -quiet >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Allow Basic authentication Windows Remote Management
|
||||
ECHO %TIME:~0,8% Allow Basic authentication Windows Remote Management >>%logfile_setup%
|
||||
start /MIN /WAIT "Allow Basic authentication Windows Remote Management (WinRM)" cmd /c winrm set winrm/config/client/auth @{Basic="true"} >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,94 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Set Power Config Profile
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:SetPowerConfigProfile
|
||||
TITLE SetPowerConfigProfile
|
||||
SET Module=SetPowerConfigProfile
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Set Power Config profile
|
||||
ECHO %TIME:~0,8% Set Power Config profile >>%logfile_setup%
|
||||
start /MIN /WAIT "Set Power Config profile" %SystemRoot%\system32\powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Change monitor timeout
|
||||
ECHO %TIME:~0,8% Change monitor timeout >>%logfile_setup%
|
||||
start /MIN /WAIT "Change monitor timeout" %SystemRoot%\system32\powercfg.exe -Change -monitor-timeout-ac 10 >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: CleanupWindows10StockApps
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:CleanupWindows10StockApps
|
||||
TITLE CleanupWindows10StockApps
|
||||
SET Module=CleanupWindows10StockApps
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Cleanup Windows 10 Stock Apps
|
||||
ECHO %TIME:~0,8% Cleanup Windows 10 Stock Apps >>%logfile_setup%
|
||||
start /MIN /WAIT "CleanupStockApps" %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "C:\scripts\PowerShell\Cleanup_StockApps.ps1" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Bootstrap The Windows 10 Client System
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:BootstrapTheWindows10System
|
||||
TITLE BootstrapTheWindows10System
|
||||
SET Module=BootstrapTheWindows10System
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Bootstrap the Windows 10 System
|
||||
ECHO %TIME:~0,8% Bootstrap the Windows 10 System >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Invoke-BootstrapSystem.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Allow Ping And Remote Desktop
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:AllowPingAndRemoteDesktop
|
||||
TITLE AllowPingAndRemoteDesktop
|
||||
SET Module=AllowPingAndRemoteDesktop
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Allow Ping and RemoteDesktop
|
||||
ECHO %TIME:~0,8% Allow Ping and RemoteDesktop >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Set-AllowPingAndRemoteDesktop.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Save System Image Info
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:SaveSystemImageInfo
|
||||
TITLE SaveSystemImageInfo
|
||||
SET Module=SaveSystemImageInfo
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Save System Image Info
|
||||
ECHO %TIME:~0,8% Save System Image Info >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(c:\install\SetImageInfo.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,142 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Change Some Attributes
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:ChangeSomeAttributes
|
||||
TITLE ChangeSomeAttributes
|
||||
SET Module=ChangeSomeAttributes
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\scripts >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\scripts >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\scripts\PowerShell >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\scripts\PowerShell >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\scripts\Batch >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\scripts\Batch >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\Install /S /D >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\Install /S /D >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\Temp /S /D >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\Temp /S /D >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\scripts\powershell\*.* /S /D >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\scripts\powershell\*.* /S /D >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\scripts\Batch\*.* /S /D >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\scripts\Batch\*.* /S /D >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\tools\*.* /S /D >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\tools\*.* /S /D >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\Install\*.* /S /D >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\Install\*.* /S /D >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO %TIME:~0,8% ATTRIB +A -R -S -H c:\Temp\*.* /S /D >>%logfile_setup%
|
||||
ATTRIB +A -R -S -H c:\Temp\*.* /S /D >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Bootstrap The All User Profile
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:BootstrapTheAllUserProfile
|
||||
TITLE BootstrapTheAllUserProfile
|
||||
SET Module=BootstrapTheAllUserProfile
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Bootstrap the All User Profile
|
||||
ECHO %TIME:~0,8% Bootstrap the All User Profile >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Invoke-BootstrapAllUserProfile.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Update All Microsoft Store Apps
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:UpdateAllMicrosoftStoreApps
|
||||
TITLE UpdateAllMicrosoftStoreApps
|
||||
SET Module=UpdateAllMicrosoftStoreApps
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Update all Microsoft Store Apps
|
||||
ECHO %TIME:~0,8% Update all Microsoft Store Apps >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Update-AllMicrosoftStoreApps.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,97 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Install The Microsoft Office Suite
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:InstallTheMicrosoftOfficeSuite
|
||||
TITLE InstallTheMicrosoftOfficeSuite
|
||||
SET Module=InstallTheMicrosoftOfficeSuite
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
PUSHD c:\install\Office\ >nul 2>&1
|
||||
|
||||
ECHO Install our default office deployment
|
||||
ECHO %TIME:~0,8% Install our default office deployment >>%logfile_setup% 2>&1
|
||||
start /MIN /WAIT "Install our default office deployment" C:\install\Office\setup.exe /configure c:\install\Office\Configuration.xml >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
POPD >nul 2>&1
|
||||
|
||||
ECHO Clean up after the office setup is done
|
||||
ECHO %TIME:~0,8% Clean up after the office setup is done >>%logfile_setup% 2>&1
|
||||
if exist c:\install\Office\ rd /s /q c:\install\Office\ >>%logfile_setup% 2>&1
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Install Some PowerShell Modules
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:InstallSomePowerShellModules
|
||||
TITLE InstallSomePowerShellModules
|
||||
SET Module=InstallSomePowerShellModules
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Install some PowerShell Modules
|
||||
ECHO %TIME:~0,8% Install some PowerShell Modules >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Install-PowerShellModules_required.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Update Help Files For All Installed PowerShell Modules
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:UpdateHelpFilesForAllInstalledPowerShellModules
|
||||
TITLE UpdateHelpFilesForAllInstalledPowerShellModules
|
||||
SET Module=UpdateHelpFilesForAllInstalledPowerShellModules
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Update help files for all installed PowerShell Modules
|
||||
ECHO %TIME:~0,8% Update help files for all installed PowerShell Modules >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Update-PowerShellModulesHelp.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Install Some VC Redistributable Choco Packages
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:InstallSomeVCRedistributableChocoPackages
|
||||
TITLE InstallSomeVCRedistributableChocoPackages
|
||||
SET Module=InstallSomeVCRedistributableChocoPackages
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Install some VC Redistributable Choco packages
|
||||
ECHO %TIME:~0,8% Install some VC Redistributable Choco packages >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(c:\scripts\PowerShell\Install-ChocoPackages_vcredist.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Install Default .NET Choco Packages
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:InstallDefaultDotNETChocoPackages
|
||||
TITLE InstallDefaultDotNETChocoPackages
|
||||
SET Module=InstallDefaultDotNETChocoPackages
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Install default .NET Choco packages
|
||||
ECHO %TIME:~0,8% Install default .NET Choco packages >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(c:\scripts\PowerShell\Install-ChocoPackages_dotnet.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment (ETPOSD)
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Install Choco Default Packages
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:InstallChocoDefaultPackages
|
||||
TITLE InstallChocoDefaultPackages
|
||||
SET Module=InstallChocoDefaultPackages
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Install Choco default packages
|
||||
ECHO %TIME:~0,8% Install Choco default packages >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(c:\scripts\PowerShell\Install-ChocoPackages.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Manufacturer Specific Config And Software Installation
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:ManufacturerSpecificConfigAndSoftwareInstallation
|
||||
TITLE ManufacturerSpecificConfigAndSoftwareInstallation
|
||||
SET Module=ManufacturerSpecificConfigAndSoftwareInstallation
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Manufacturer specific config and software installation
|
||||
ECHO %TIME:~0,8% Manufacturer specific config and software installation >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\install\ManufacturerSpecific.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,155 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: KMS Activation and Handling
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:KmsHandling
|
||||
TITLE KmsHandling
|
||||
SET Module=KmsHandling
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Turn on Windows Script Host
|
||||
ECHO %TIME:~0,8% Turn on Windows Script Host >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Name Enabled -PropertyType DWord -Value 1 -Force -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:ApplyMicrosoftWindows10EnterpriseKey
|
||||
:: https://docs.microsoft.com/de-de/windows-server/get-started/kmsclientkeys
|
||||
ECHO Apply Microsoft Windows 10 Enterprise key
|
||||
ECHO %TIME:~0,8% Apply Microsoft Windows 10 Enterprise key >>%logfile_setup%
|
||||
"%SystemRoot%\System32\cscript.exe" //nologo c:\windows\system32\slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:SetTheInternalKMSServerForWindows10
|
||||
:: For now, this will need VPN
|
||||
ECHO Set the internal KMS Server for Windows 10
|
||||
ECHO %TIME:~0,8% Set the internal KMS Server for Windows 10 >>%logfile_setup%
|
||||
"%SystemRoot%\System32\cscript.exe" //nologo c:\windows\system32\slmgr.vbs /skms kms.enatec.net >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: Ping the KMS server for Windows 10 activation
|
||||
:CheckW10KMSViaPing
|
||||
ping -n 3 -w 1000 kms.enatec.net >null 2>&1
|
||||
if %errorlevel% GTR 0 goto ChangeToTheOfficeDirectory
|
||||
|
||||
:ActivateWindows10ViaInternalKMSServer
|
||||
:: For now, this will need VPN
|
||||
ECHO Activate Windows 10 via internal KMS Server
|
||||
ECHO %TIME:~0,8% Activate Windows 10 via internal KMS Server >>%logfile_setup%
|
||||
"%SystemRoot%\System32\cscript.exe" //nologo c:\windows\system32\slmgr.vbs /ato >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:ChangeToTheOfficeDirectory
|
||||
ECHO Change to the Office directory
|
||||
ECHO %TIME:~0,8% Change to the Office directory >>%logfile_setup%
|
||||
PUSHD "%ProgramFiles%\Microsoft Office\Office16" >nul 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:ApplyMicrosoftOfficeProfessionalPlus2019Key
|
||||
ECHO Apply Microsoft Office Professional Plus 2019 key
|
||||
ECHO %TIME:~0,8% Apply Microsoft Office Professional Plus 2019 key >>%logfile_setup%
|
||||
"%SystemRoot%\System32\cscript.exe" //nologo ospp.vbs /inpkey:NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: Ping the KMS server for Office activation
|
||||
:CheckOfficeKMSViaPing
|
||||
ping -n 3 -w 1000 kms.enatec.net >null 2>&1
|
||||
if %errorlevel% GTR 0 goto endInternalKMSServer
|
||||
|
||||
:SetTheInternalKMSServerForOfficeProducts
|
||||
ECHO Set the internal KMS Server for Office products
|
||||
ECHO %TIME:~0,8% Set the internal KMS Server for Office products >>%logfile_setup%
|
||||
"%SystemRoot%\System32\cscript.exe" //nologo ospp.vbs /sethst:kms.enatec.net >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: For now, this will need VPN
|
||||
:ActivateTheOffice2019ProductsViaTheInternalKMSServer
|
||||
ECHO Activate Office Professional Plus 2019 via internal KMS Server
|
||||
ECHO %TIME:~0,8% Activate Office Professional Plus 2019 via internal KMS Server >>%logfile_setup%
|
||||
"%SystemRoot%\System32\cscript.exe" //nologo ospp.vbs /act >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:endInternalKMSServer
|
||||
POPD >nul 2>&1
|
||||
|
||||
:DisableWindowsScriptHost
|
||||
:: Turn off Windows Script Host (current user only)
|
||||
ECHO Turn off Windows Script Host
|
||||
ECHO %TIME:~0,8% Turn on Windows Script Host >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Name Enabled -PropertyType DWord -Value 0 -Force -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,182 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Change Handling and tweaks Windows Remote Management (WinRM) - PLEASE READ THE NOTE BELOW
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: PLEASE NOTE THIS: This can become a security issue! <- <- <-
|
||||
::
|
||||
:: This script makes Windows Remote Management (WinRM) insecure!!!
|
||||
:: We do this by purpose, we will reconfigure it later with an Intune Poliy.
|
||||
:: We use it to administer the system within the local network, and this makes
|
||||
:: it much easier to use Mac's or Linux systems to connect to this system.
|
||||
::
|
||||
:: It will be skipped if outside of the enabling Technology network (or use VPN).
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:WinRMTwaeks
|
||||
TITLE WinRMTwaeks
|
||||
SET Module=WinRMTwaeks
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
: Use GHOST to figure out, if this system is connected directly to our Intranet
|
||||
ping -n 3 -w 1000 ghost.enatec.net >null 2>&1
|
||||
if %errorlevel% GTR 0 goto NotConnected
|
||||
|
||||
:EnableWindowsScriptHost
|
||||
ECHO Turn on Windows Script Host
|
||||
ECHO %TIME:~0,8% Turn on Windows Script Host >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Name Enabled -PropertyType DWord -Value 1 -Force -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
: Enable Remote PowerShell
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "Enable-PSRemoting -Force -ErrorAction Continue"
|
||||
|
||||
: Quick default configuration for Windows Remote Management (WinRM)
|
||||
C:\Windows\system32\winrm.cmd quickconfig -q >null 2>&1
|
||||
|
||||
: Specifies the transport to use to send and receive WS-Management
|
||||
: protocol requests and responses.
|
||||
: The value must be either HTTP or HTTPS
|
||||
C:\Windows\system32\winrm.cmd quickconfig -transport:http >null 2>&1
|
||||
|
||||
: Specifies the maximum time-out, in milliseconds,
|
||||
: that can be used for any request other than Pull requests
|
||||
: The default is 60000
|
||||
C:\Windows\system32\winrm.cmd set winrm/config '@{MaxTimeoutms="1800000"}' >null 2>&1
|
||||
|
||||
: Specifies the maximum amount of memory allocated per shell,
|
||||
: including the shell's child processes.
|
||||
: The default is 150 MB
|
||||
C:\Windows\system32\winrm.cmd set winrm/config/winrs '@{MaxMemoryPerShellMB="800"}' >null 2>&1
|
||||
|
||||
: Allows the client computer to request unencrypted traffic.
|
||||
: By default, the client computer requires encrypted network traffic
|
||||
: and this setting is False.
|
||||
C:\Windows\system32\winrm.cmd set winrm/config/service '@{AllowUnencrypted="true"}' >null 2>&1
|
||||
|
||||
: Allows the client computer to use Basic authentication.
|
||||
: Basic authentication is a scheme in which the user name and password
|
||||
: are sent in clear text to the server or proxy.
|
||||
: This method is the least secure method of authentication.
|
||||
: The default is True.
|
||||
C:\Windows\system32\winrm.cmd set winrm/config/service/auth '@{Basic="true"}' >null 2>&1
|
||||
|
||||
: Allows the client computer to use Basic authentication.
|
||||
: Basic authentication is a scheme in which the user name and password
|
||||
: are sent in clear text to the server or proxy.
|
||||
: This method is the least secure method of authentication.
|
||||
: The default is True.
|
||||
C:\Windows\system32\winrm.cmd set winrm/config/client/auth '@{Basic="true"}' >null 2>&1
|
||||
|
||||
: Allows the client to use Credential Security Support Provider (CredSSP) authentication.
|
||||
: CredSSP enables an application to delegate the user's credentials
|
||||
: from the client computer to the target server.
|
||||
: The default is False.
|
||||
C:\Windows\system32\winrm.cmd set winrm/config/service/auth '@{CredSSP="true"}' >null 2>&1
|
||||
|
||||
: Specifies the TCP port for which this listener is created.
|
||||
: WinRM 2.0: The default HTTP port is 5985.
|
||||
C:\Windows\system32\winrm.cmd set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"}' >null 2>&1
|
||||
|
||||
: Allow the Windows Remote Administration Rule Group
|
||||
C:\Windows\system32\netsh.exe advfirewall firewall set rule group="Windows Remote Administration" new enable=yes >null 2>&1
|
||||
|
||||
: Allow the Windows Remote Management (HTTP-In) Rule
|
||||
C:\Windows\system32\netsh.exe advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new localport=5985 enable=yes action=allow >null 2>&1
|
||||
|
||||
: Allow the Windows Remote Management (HTTPS-In) Rule
|
||||
C:\Windows\system32\netsh.exe advfirewall firewall set rule name="Windows Remote Management (HTTPS-In)" new localport=5986 enable=yes action=allow >null 2>&1
|
||||
|
||||
: Enable the Autostart of the Windows Remote Management (WinRM) Windows Service
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "Set-Service winrm -startuptype 'auto'" >null 2>&1
|
||||
|
||||
: Restart the Windows Remote Management (WinRM) Service
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "Restart-Service winrm" >null 2>&1
|
||||
|
||||
:DisableWindowsScriptHost
|
||||
:: Turn off Windows Script Host (current user only)
|
||||
ECHO Turn off Windows Script Host
|
||||
ECHO %TIME:~0,8% Turn on Windows Script Host >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Name Enabled -PropertyType DWord -Value 0 -Force -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
goto ENDLOGIC
|
||||
|
||||
:NotConnected
|
||||
ECHO This Host is not connected directly to the Intranet (Skipped)
|
||||
ECHO %TIME:~0,8% This Host is not connected directly to the Intranet (Skipped) >>%logfile_setup%
|
||||
goto ENDLOGIC
|
||||
|
||||
:ENDLOGIC
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Desktop Cleanup
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:DesktopCleanup
|
||||
TITLE DesktopCleanup
|
||||
SET Module=DesktopCleanup
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Desktop Cleanup
|
||||
ECHO %TIME:~0,8% Desktop Cleanup >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Remove-AllPublicDesktopLinks.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Set Power Plan To Auto
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:SetPowerPlanToAuto
|
||||
TITLE SetPowerPlanToAuto
|
||||
SET Module=SetPowerPlanToAuto
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Set Power Plan to Auto
|
||||
ECHO %TIME:~0,8% Set Power Plan to Auto >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "c:\scripts\PowerShell\Set-PowerPlanToAuto.ps1" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,89 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Set Default Start Menu
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:SetDefaultStartMenu
|
||||
TITLE SetDefaultStartMenu
|
||||
SET Module=SetDefaultStartMenu
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
ECHO Set the default Start menu
|
||||
ECHO %TIME:~0,8% Set the default Start menu >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Set-DefaultStartMenu.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,84 @@
|
||||
#requires -Version 3.0
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Interrupt the OOBE Process and starts our own
|
||||
|
||||
.DESCRIPTION
|
||||
Interrupt the OOBE Process and starts our own
|
||||
|
||||
.EXAMPLE
|
||||
PS C:\> .\BootOOBE.ps1
|
||||
|
||||
.NOTES
|
||||
Adopted from Roger Zander (@rzander)
|
||||
|
||||
.LINK
|
||||
https://github.com/rzander/mOSD
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'None')]
|
||||
param ()
|
||||
|
||||
begin
|
||||
{
|
||||
$SCT = 'SilentlyContinue'
|
||||
|
||||
$PantherUA = "$env:windir\Panther\unattend.xml"
|
||||
|
||||
#region
|
||||
$paramGetProcess = @{
|
||||
Name = 'sysprep'
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$paramStopProcess = @{
|
||||
Force = $true
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
$paramSetLocation = @{
|
||||
Path = $PSScriptRoot
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Set-Location @paramSetLocation)
|
||||
|
||||
$null = (Get-Process @paramGetProcess | Stop-Process @paramStopProcess)
|
||||
|
||||
#Cleanup
|
||||
$paramTestPath = @{
|
||||
Path = $PantherUA
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath)
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = $PantherUA
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$null = (Get-Process @paramGetProcess | Stop-Process @paramStopProcess)
|
||||
|
||||
Start-Sleep -Seconds 2
|
||||
|
||||
# Start the sysprep process
|
||||
try
|
||||
{
|
||||
$null = (Start-Process -FilePath "$env:windir\System32\Sysprep\sysprep.exe" -ArgumentList '/oobe /quiet /reboot /unattend:C:\Windows\system32\sysprep\unattend.xml' -Wait)
|
||||
}
|
||||
catch
|
||||
{
|
||||
exit (1)
|
||||
}
|
||||
}
|
||||
|
||||
end
|
||||
{
|
||||
exit (0)
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Setup Complete Wrapper
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:SetupComplete
|
||||
TITLE SetupComplete
|
||||
SET Module=SetupComplete
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:LOGIC
|
||||
: Change some attributes of the Scripts directory
|
||||
attrib +A -R -S -H %windir%\setup\SCRIPTS\*.* /S /D
|
||||
|
||||
: Start any existing CMD file (including subfolders)
|
||||
CD %systemroot%\setup\SCRIPTS
|
||||
FOR /D %%f in (*) do (
|
||||
PUSHD %%f
|
||||
FOR %%g in (*.cmd) do (
|
||||
ECHO Call %%g >>%logfile_setup% 2>nul
|
||||
call %%g >nul 2>&1
|
||||
: START /MIN /WAIT "%%g" %%g
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
)
|
||||
POPD
|
||||
)
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
ECHO Finished %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
: Clean up after the setup is done
|
||||
IF EXIST %systemroot%\setup\SCRIPTS\done RD /s /q %systemroot%\setup\SCRIPTS >nul 2>&1
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2021, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
After Width: | Height: | Size: 56 KiB |
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
||||
<settings pass="oobeSystem">
|
||||
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
|
||||
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<InputLocale>047:00000407</InputLocale>
|
||||
<SystemLocale>en-US</SystemLocale>
|
||||
<UserLocale>de-DE</UserLocale>
|
||||
</component>
|
||||
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
|
||||
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<OOBE>
|
||||
<ProtectYourPC>3</ProtectYourPC>
|
||||
<HideEULAPage>true</HideEULAPage>
|
||||
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
|
||||
<NetworkLocation>Work</NetworkLocation>
|
||||
</OOBE>
|
||||
</component>
|
||||
</settings>
|
||||
<settings pass="auditUser">
|
||||
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
|
||||
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<Reseal>
|
||||
<Mode>OOBE</Mode>
|
||||
</Reseal>
|
||||
</component>
|
||||
</settings>
|
||||
<cpi:offlineImage cpi:source="catalog://nuc1/dw10x/sources/install_windows 10 enterprise.clg"
|
||||
xmlns:cpi="urn:schemas-microsoft-com:cpi" />
|
||||
</unattend>
|
||||
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 207 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 304 KiB |
|
After Width: | Height: | Size: 601 KiB |
|
After Width: | Height: | Size: 297 KiB |
|
After Width: | Height: | Size: 657 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 609 KiB |
|
After Width: | Height: | Size: 3.1 MiB |
|
After Width: | Height: | Size: 285 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 426 KiB |
|
After Width: | Height: | Size: 1010 KiB |
|
After Width: | Height: | Size: 284 KiB |
|
After Width: | Height: | Size: 906 KiB |
|
After Width: | Height: | Size: 466 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 133 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1020 KiB |
|
After Width: | Height: | Size: 164 KiB |
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"CloudAssignedDomainJoinMethod": 0,
|
||||
"CloudAssignedDeviceName": "ENATEC-%SERIAL%",
|
||||
"CloudAssignedAutopilotUpdateTimeout": 1800000,
|
||||
"CloudAssignedForcedEnrollment": 1,
|
||||
"Version": 2049,
|
||||
"CloudAssignedTenantId": "b768b3c4-dc4b-445c-94c0-388882f966fb",
|
||||
"CloudAssignedAutopilotUpdateDisabled": 1,
|
||||
"ZtdCorrelationId": "ae8249a2-ad5d-426a-99a0-2aba35426014",
|
||||
"Comment_File": "Profile DEFAULT",
|
||||
"CloudAssignedAadServerData": "{\"ZeroTouchConfig\":{\"CloudAssignedTenantUpn\":\"\",\"ForcedEnrollment\":1,\"CloudAssignedTenantDomain\":\"hochwald.net\"}}",
|
||||
"CloudAssignedOobeConfig": 1308,
|
||||
"CloudAssignedLockdownConfig": 1,
|
||||
"CloudAssignedTenantDomain": "hochwald.net",
|
||||
"CloudAssignedLanguage": "en-US"
|
||||
}
|
||||
@@ -0,0 +1,520 @@
|
||||
#requires -Version 5.0 -Modules BitsTransfer, CimCmdlets -RunAsAdministrator
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Install manufacturer/vendor specific software
|
||||
|
||||
.DESCRIPTION
|
||||
Install manufacturer/vendor specific software
|
||||
For now, just HP is supported.
|
||||
|
||||
.NOTES
|
||||
The OEM Info is no longer displayed in newer Builds of Windows 10!
|
||||
Starting with Windows 10 Build 20H2 the Logo and other OEM Info is no longer displayed.
|
||||
Focus will be the installation of Tools to support the vendor specific drivers and tooling
|
||||
|
||||
Request:
|
||||
If you are interessted in Dell or Lenovo support, please open a issue/ticket.
|
||||
We look for pilot/beta users, due to missing hardware the development is a bit hard.
|
||||
|
||||
Changelog:
|
||||
1.0.7: Download the latest HP versions and install it silently
|
||||
1.0.6: Fallback to older HP Support Assistant version (Due to Silent Install Issues)
|
||||
1.0.5: Moved the installer path
|
||||
1.0.4: Rewrite big parts and create a cleanup helper
|
||||
1.0.3: Replace old WMI call with CIM - Fix Write-Output
|
||||
1.0.2: Update HP tooling (Files)
|
||||
1.0.1: Update Lenovo tooling (Files)
|
||||
|
||||
Version 1.0.7
|
||||
|
||||
.LINK
|
||||
http://enatec.io
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'Low')]
|
||||
param ()
|
||||
|
||||
begin
|
||||
{
|
||||
Write-Output -InputObject 'Manufacturer specific config and software installation'
|
||||
|
||||
#region Defaults
|
||||
$SCT = 'SilentlyContinue'
|
||||
$STP = 'Stop'
|
||||
|
||||
# Splat the defaults
|
||||
$paramSimpleDefaults = @{
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
|
||||
# Change this, if needed
|
||||
$Company = 'enabling Technology'
|
||||
|
||||
# Do not change this!
|
||||
$RegistryPath = ('HKLM:\Software\' + $Company + '\BaseImage')
|
||||
|
||||
# Get the Info
|
||||
$Manufacturer = (Get-ItemPropertyValue -Path $RegistryPath -Name HardwareManufacturer @paramSimpleDefaults)
|
||||
|
||||
# Set the Path Info
|
||||
$OemInfoPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation'
|
||||
|
||||
# Read the Info from CIM
|
||||
$ManufacturerModel = ((Get-CimInstance -ClassName Win32_Computersystem @paramSimpleDefaults) | Select-Object -ExpandProperty Model)
|
||||
|
||||
$null = (Set-MpPreference -EnableControlledFolderAccess Disabled -Force @paramSimpleDefaults)
|
||||
|
||||
|
||||
if (-not $ManufacturerModel)
|
||||
{
|
||||
$ManufacturerModel = 'Unknown'
|
||||
}
|
||||
|
||||
if ($Manufacturer)
|
||||
{
|
||||
switch ($Manufacturer)
|
||||
{
|
||||
'HP'
|
||||
{
|
||||
$ManufacturerTooling = 'HP'
|
||||
}
|
||||
'Hewlett-Packard'
|
||||
{
|
||||
$ManufacturerTooling = 'HP'
|
||||
}
|
||||
'Dell'
|
||||
{
|
||||
$ManufacturerTooling = 'Dell'
|
||||
Write-Warning -Message 'Dell support is in still in development'
|
||||
}
|
||||
'LENOVO'
|
||||
{
|
||||
$ManufacturerTooling = 'LENOVO'
|
||||
Write-Warning -Message 'Lenovo support is in still in development'
|
||||
}
|
||||
'Microsoft Corporation'
|
||||
{
|
||||
$ManufacturerTooling = 'HYPERV'
|
||||
Write-Warning -Message 'Microsoft Hyper-V is not (yet) supported, but planned'
|
||||
Return
|
||||
}
|
||||
'VMware, Inc.'
|
||||
{
|
||||
$ManufacturerTooling = 'VMware'
|
||||
Write-Warning -Message 'VMware is not (yet) supported'
|
||||
Return
|
||||
}
|
||||
'Parallels Software International Inc.'
|
||||
{
|
||||
$ManufacturerTooling = 'Parallels'
|
||||
Write-Warning -Message 'Parallels is not (yet) supported'
|
||||
Return
|
||||
}
|
||||
Default
|
||||
{
|
||||
$ManufacturerTooling = $null
|
||||
Write-Warning -Message 'Unknown and/or unsupported manufacturer'
|
||||
Return
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$ManufacturerTooling = $null
|
||||
Write-Warning -Message 'Unknown and/or unsupported manufacturer'
|
||||
Return
|
||||
}
|
||||
|
||||
# Splat the defaults for New-ItemProperty
|
||||
$paramNewItemProperty = @{
|
||||
Path = $OemInfoPath
|
||||
PropertyType = 'String'
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WhatIf = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
|
||||
# Splat the defaults for Copy-Item
|
||||
$paramCopyItem = @{
|
||||
Destination = "$env:windir\SYSTEM32\SYSTEM.BMP"
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
#endregion Defaults
|
||||
|
||||
#region RemoveOEMInfo
|
||||
function Remove-OEMInfo
|
||||
{
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Cleanup the OEM Info
|
||||
|
||||
.DESCRIPTION
|
||||
Cleanup the OEM Info from the registry
|
||||
|
||||
.PARAMETER Path
|
||||
The Registry Path
|
||||
|
||||
.EXAMPLE
|
||||
PS C:\> Remove-OEMInfo
|
||||
|
||||
.EXAMPLE
|
||||
PS C:\> Remove-OEMInfo -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation'
|
||||
|
||||
.NOTES
|
||||
Internal Helper
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'None',
|
||||
SupportsShouldProcess)]
|
||||
param
|
||||
(
|
||||
[Parameter(ValueFromPipeline,
|
||||
ValueFromPipelineByPropertyName,
|
||||
Position = 0)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[Alias('OemInfoPath')]
|
||||
[string]
|
||||
$Path = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation'
|
||||
)
|
||||
|
||||
begin
|
||||
{
|
||||
#region Defaults
|
||||
$SCT = 'SilentlyContinue'
|
||||
#endregion Defaults
|
||||
|
||||
#region
|
||||
$ValuesToClean = @(
|
||||
'Model'
|
||||
'Manufacturer'
|
||||
'Logo'
|
||||
'SupportAppURL'
|
||||
'SupportURL'
|
||||
'SupportHours'
|
||||
'SupportPhone'
|
||||
)
|
||||
#endregion
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
if ($pscmdlet.ShouldProcess('OEM Info', 'Delete'))
|
||||
{
|
||||
# Cleanup the OEM Info
|
||||
foreach ($ValueToClean in $ValuesToClean)
|
||||
{
|
||||
$paramGetItemPropertyValue = @{
|
||||
Path = $Path
|
||||
Name = $ValueToClean
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
|
||||
if (Get-ItemPropertyValue @paramGetItemPropertyValue)
|
||||
{
|
||||
$paramRemoveItemProperty = @{
|
||||
Path = $Path
|
||||
Name = $ValueToClean
|
||||
Force = $true
|
||||
WhatIf = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
Confirm = $false
|
||||
}
|
||||
$null = (Remove-ItemProperty @paramRemoveItemProperty)
|
||||
}
|
||||
|
||||
$ValueToClean = $null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion RemoveOEMInfo
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
#region HP
|
||||
if ($ManufacturerTooling -eq 'HP')
|
||||
{
|
||||
# Cleanup the OEM Info
|
||||
$null = (Remove-OEMInfo @paramSimpleDefaults)
|
||||
|
||||
# Copy the OEM Logo
|
||||
if (Test-Path -Path "$env:HOMEDRIVE\install\ManufacturerSpecific\hp\SYSTEM.BMP" @paramSimpleDefaults)
|
||||
{
|
||||
$null = (Copy-Item -Path "$env:HOMEDRIVE\install\ManufacturerSpecific\hp\SYSTEM.BMP" @paramCopyItem)
|
||||
}
|
||||
|
||||
# Set the new OEM Info
|
||||
if ($ManufacturerModel)
|
||||
{
|
||||
$null = (New-ItemProperty -Name 'Model' -Value $ManufacturerModel @paramNewItemProperty)
|
||||
}
|
||||
|
||||
$null = (New-ItemProperty -Name 'Manufacturer' -Value 'HP Inc.' @paramNewItemProperty)
|
||||
$null = (New-ItemProperty -Name 'Logo' -Value 'C:\\WINDOWS\\SYSTEM32\\SYSTEM.BMP' @paramNewItemProperty)
|
||||
$null = (New-ItemProperty -Name 'SupportAppURL' -Value 'hpsupportassistant://GetAssist?LaunchPoint=51' @paramNewItemProperty)
|
||||
$null = (New-ItemProperty -Name 'SupportURL' -Value 'http://support.hp.com' @paramNewItemProperty)
|
||||
|
||||
# Install the HP Tools
|
||||
#region HPDefaults
|
||||
$BitsTransferPolicy = 'Always'
|
||||
$BitsTransferPriority = 'High'
|
||||
$HPSilentSwitchesExtractDefault = '/s /e /f'
|
||||
$HPSilentSwitchesDefault = '/s /a /s /v" /qn"'
|
||||
$PowerShellExecutable = ($PSHome + '\powershell.exe')
|
||||
$ErrorMessage = 'Installer not found!'
|
||||
$DriverTempDir = "$env:HOMEDRIVE\install\temp"
|
||||
#endregion HPDefaults
|
||||
|
||||
#region sp108770
|
||||
$paramTestPath = @{
|
||||
Path = $DriverTempDir
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (-not (Test-Path @paramTestPath))
|
||||
{
|
||||
$paramNewItem = @{
|
||||
Path = $DriverTempDir
|
||||
ItemType = 'Directory'
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
|
||||
$RequestContent = 'https://ftp.hp.com/pub/softpaq/sp108501-109000/sp108770.exe'
|
||||
|
||||
$DriverExtractDest = "$env:HOMEDRIVE\install\sp108770"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $DriverExtractDest
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (-not (Test-Path @paramTestPath))
|
||||
{
|
||||
$paramNewItem = @{
|
||||
Path = $DriverExtractDest
|
||||
ItemType = 'Directory'
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
|
||||
[string]$Installer = ($DriverTempDir + '\sp108770.exe')
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $Installer
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (-not (Test-Path @paramTestPath))
|
||||
{
|
||||
# Use BitsTransfer to download the latest installer
|
||||
$paramStartBitsTransfer = @{
|
||||
Source = $RequestContent
|
||||
Destination = $Installer
|
||||
Priority = $BitsTransferPriority
|
||||
TransferPolicy = $BitsTransferPolicy
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Start-BitsTransfer @paramStartBitsTransfer)
|
||||
}
|
||||
|
||||
$HPSilentSwitchesExtract = ($HPSilentSwitchesExtractDefault + ' "' + $DriverExtractDest + '"')
|
||||
$paramStartProcess = @{
|
||||
FilePath = $PowerShellExecutable
|
||||
WorkingDirectory = $DriverExtractDest
|
||||
ArgumentList = ($Installer + ' ' + $HPSilentSwitchesExtract)
|
||||
NoNewWindow = $true
|
||||
Wait = $true
|
||||
}
|
||||
$null = (Start-Process @paramStartProcess)
|
||||
|
||||
$HPInstaller = ($DriverExtractDest + '\InstallHPSA.exe')
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $HPInstaller
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath)
|
||||
{
|
||||
$HPSilentSwitches = $HPSilentSwitchesDefault
|
||||
$paramStartProcess = @{
|
||||
FilePath = $PowerShellExecutable
|
||||
WorkingDirectory = $DriverExtractDest
|
||||
ArgumentList = ($HPInstaller + ' ' + $HPSilentSwitches)
|
||||
NoNewWindow = $true
|
||||
Wait = $true
|
||||
}
|
||||
$null = (Start-Process @paramStartProcess)
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Warning -Message $ErrorMessage
|
||||
}
|
||||
#endregion sp108770
|
||||
|
||||
#region sp107493
|
||||
$RequestContent = 'https://ftp.hp.com/pub/softpaq/sp107001-107500/sp107493.exe'
|
||||
|
||||
$DriverExtractDest = "$env:HOMEDRIVE\install\sp107493"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $DriverExtractDest
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (-not (Test-Path @paramTestPath))
|
||||
{
|
||||
$paramNewItem = @{
|
||||
Path = $DriverExtractDest
|
||||
ItemType = 'Directory'
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
|
||||
[string]$Installer = ($DriverTempDir + '\sp107493.exe')
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $Installer
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (-not (Test-Path @paramTestPath))
|
||||
{
|
||||
# Use BitsTransfer to download the latest installer
|
||||
$paramStartBitsTransfer = @{
|
||||
Source = $RequestContent
|
||||
Destination = $Installer
|
||||
Priority = $BitsTransferPriority
|
||||
TransferPolicy = $BitsTransferPolicy
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Start-BitsTransfer @paramStartBitsTransfer)
|
||||
}
|
||||
|
||||
$HPSilentSwitchesExtract = ($HPSilentSwitchesExtractDefault + ' "' + $DriverExtractDest + '"')
|
||||
$paramStartProcess = @{
|
||||
FilePath = $PowerShellExecutable
|
||||
WorkingDirectory = $DriverExtractDest
|
||||
ArgumentList = ($Installer + ' ' + $HPSilentSwitchesExtract)
|
||||
NoNewWindow = $true
|
||||
Wait = $true
|
||||
}
|
||||
$null = (Start-Process @paramStartProcess)
|
||||
|
||||
$HPInstaller = ($DriverExtractDest + '\InstallCmdWrapper.exe')
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $HPInstaller
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath)
|
||||
{
|
||||
$HPSilentSwitches = $HPSilentSwitchesDefault
|
||||
$paramStartProcess = @{
|
||||
FilePath = $PowerShellExecutable
|
||||
WorkingDirectory = $DriverExtractDest
|
||||
ArgumentList = ($HPInstaller + ' ' + $HPSilentSwitches)
|
||||
NoNewWindow = $true
|
||||
Wait = $true
|
||||
}
|
||||
$null = (Start-Process @paramStartProcess)
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Warning -Message $ErrorMessage
|
||||
}
|
||||
#endregion sp107493
|
||||
}
|
||||
#endregion HP
|
||||
|
||||
#region LENOVO
|
||||
if ($ManufacturerTooling -eq 'LENOVO')
|
||||
{
|
||||
# Cleanup the OEM Info
|
||||
$null = (Remove-OEMInfo @paramSimpleDefaults)
|
||||
|
||||
# Copy the OEM Logo
|
||||
if (Test-Path -Path 'Lenovo\SYSTEM.BMP' @paramSimpleDefaults)
|
||||
{
|
||||
$null = (Copy-Item -Path "$env:HOMEDRIVE\install\ManufacturerSpecific\Lenovo\SYSTEM.BMP" @paramCopyItem)
|
||||
}
|
||||
|
||||
# Set the new OEM Info
|
||||
if ($ManufacturerModel)
|
||||
{
|
||||
$null = (New-ItemProperty -Name 'Model' -Value $ManufacturerModel @paramNewItemProperty)
|
||||
}
|
||||
|
||||
$null = (New-ItemProperty -Name 'Manufacturer' -Value 'Lenovo' @paramNewItemProperty)
|
||||
$null = (New-ItemProperty -Name 'Logo' -Value 'C:\\WINDOWS\\SYSTEM32\\SYSTEM.BMP' @paramNewItemProperty)
|
||||
$null = (New-ItemProperty -Name 'SupportURL' -Value 'https://support.lenovo.com/' @paramNewItemProperty)
|
||||
}
|
||||
#endregion LENOVO
|
||||
|
||||
#region Dell
|
||||
if ($ManufacturerTooling -eq 'Dell')
|
||||
{
|
||||
# Cleanup the OEM Info
|
||||
$null = (Remove-OEMInfo @paramSimpleDefaults)
|
||||
|
||||
# Copy the OEM Logo
|
||||
if (Test-Path -Path "$env:HOMEDRIVE\install\ManufacturerSpecific\Dell\SYSTEM.BMP" @paramSimpleDefaults)
|
||||
{
|
||||
$null = (Copy-Item -Path "$env:HOMEDRIVE\install\ManufacturerSpecific\Dell\SYSTEM.BMP" @paramCopyItem)
|
||||
}
|
||||
|
||||
# Set the new OEM Info
|
||||
if ($ManufacturerModel)
|
||||
{
|
||||
$null = (New-ItemProperty -Name 'Model' -Value $ManufacturerModel @paramNewItemProperty)
|
||||
}
|
||||
|
||||
$null = (New-ItemProperty -Name 'Manufacturer' -Value 'Dell' @paramNewItemProperty)
|
||||
$null = (New-ItemProperty -Name 'Logo' -Value 'C:\\WINDOWS\\SYSTEM32\\SYSTEM.BMP' @paramNewItemProperty)
|
||||
$null = (New-ItemProperty -Name 'SupportURL' -Value 'https://www.dell.com/support/home/' @paramNewItemProperty)
|
||||
}
|
||||
#endregion Dell
|
||||
}
|
||||
|
||||
end
|
||||
{
|
||||
$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force @paramSimpleDefaults)
|
||||
}
|
||||
|
||||
#region LICENSE
|
||||
<#
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, enabling Technology
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#>
|
||||
#endregion LICENSE
|
||||
|
||||
#region DISCLAIMER
|
||||
<#
|
||||
DISCLAIMER:
|
||||
- Use at your own risk, etc.
|
||||
- This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty in any kind
|
||||
- This is a third-party Software
|
||||
- The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its subsidiaries in any way
|
||||
- The Software is not supported by Microsoft Corp (MSFT)
|
||||
- By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
- If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
#>
|
||||
#endregion DISCLAIMER
|
||||
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 35 KiB |
@@ -0,0 +1,10 @@
|
||||
title LenovoSpecific
|
||||
set Module=LenovoSpecific
|
||||
echo start %Module% %time% =================== >>%logfile_setup%
|
||||
|
||||
rem install Lenovo System Update for Windows
|
||||
echo system_update_5.07.0106.exe /VERYSILENT /SUPPRESSMSGBOXES /LOG='c:\temp\LenovoSysupdate.log' /NOCANCEL /NORESTART /CLOSEAPPLICATIONS /NORESTARTAPPLICATIONS >>%logfile_setup%
|
||||
@system_update_5.07.0106.exe /VERYSILENT /SUPPRESSMSGBOXES /LOG='c:\temp\LenovoSysupdate.log' /NOCANCEL /NORESTART /CLOSEAPPLICATIONS /NORESTARTAPPLICATIONS >>%logfile_setup%
|
||||
|
||||
echo stop %Module% %time% =================== >>%logfile_setup%
|
||||
echo.>>%logfile_setup%
|
||||
|
After Width: | Height: | Size: 42 KiB |
@@ -0,0 +1,110 @@
|
||||
<Configuration ID="722e6ccf-aeaf-447b-90ea-489e3a00c6fe">
|
||||
<!-- Name the configuration -->
|
||||
<Info Description="enabling Technology default Click 2 Run installation" />
|
||||
<!-- Set plattform and update channel - The only supported channel for this kind is PerpetualVL2019 - Can be changed for Microsoft 365 activations -->
|
||||
<Add OfficeClientEdition="64" Channel="PerpetualVL2019">
|
||||
<!-- Office Suite -->
|
||||
<Product ID="ProPlus2019Volume" PIDKEY="NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP">
|
||||
<!-- Default languages to install -->
|
||||
<Language ID="de-de" />
|
||||
<Language ID="en-us" />
|
||||
<!-- Exclude some components -->
|
||||
<ExcludeApp ID="Access" />
|
||||
<ExcludeApp ID="Groove" />
|
||||
<ExcludeApp ID="Lync" />
|
||||
<ExcludeApp ID="OneDrive" />
|
||||
<ExcludeApp ID="Publisher" />
|
||||
</Product>
|
||||
<!-- Viso -->
|
||||
<Product ID="VisioPro2019Volume" PIDKEY="9BGNQ-K37YR-RQHF2-38RQ3-7VCBB">
|
||||
<!-- Default languages to install -->
|
||||
<Language ID="de-de" />
|
||||
<Language ID="en-us" />
|
||||
<!-- Exclude some components -->
|
||||
<ExcludeApp ID="Access" />
|
||||
<ExcludeApp ID="Groove" />
|
||||
<ExcludeApp ID="Lync" />
|
||||
<ExcludeApp ID="OneDrive" />
|
||||
<ExcludeApp ID="Publisher" />
|
||||
</Product>
|
||||
<!-- Project -->
|
||||
<Product ID="ProjectPro2019Volume" PIDKEY="B4NPR-3FKK7-T2MBV-FRQ4W-PKD2B">
|
||||
<!-- Default languages to install -->
|
||||
<Language ID="de-de" />
|
||||
<Language ID="en-us" />
|
||||
<!-- Exclude some components -->
|
||||
<ExcludeApp ID="Access" />
|
||||
<ExcludeApp ID="Groove" />
|
||||
<ExcludeApp ID="Lync" />
|
||||
<ExcludeApp ID="OneDrive" />
|
||||
<ExcludeApp ID="Publisher" />
|
||||
</Product>
|
||||
</Add>
|
||||
<!-- We use KMS -->
|
||||
<Property Name="SharedComputerLicensing" Value="0" />
|
||||
<!-- No default Pin's -->
|
||||
<Property Name="PinIconsToTaskbar" Value="FALSE" />
|
||||
<!-- -->
|
||||
<Property Name="SCLCacheOverride" Value="0" />
|
||||
<!-- Will only work inside the Domain network or via VPN -->
|
||||
<Property Name="AUTOACTIVATE" Value="1" />
|
||||
<!-- Kill all running Office apps -->
|
||||
<Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
|
||||
<!-- Needed for KMS -->
|
||||
<Property Name="DeviceBasedLicensing" Value="0" />
|
||||
<!-- -->
|
||||
<Updates Enabled="TRUE" />
|
||||
<!-- Remove all installed MSI -->
|
||||
<RemoveMSI />
|
||||
<!-- configure the Office apps -->
|
||||
<AppSettings>
|
||||
<!-- Who is the owner of the Office Apps -->
|
||||
<Setup Name="Company" Value="enabling Technology" />
|
||||
<!-- Settings for the proofing tools - Customized by Intune/DSC later -->
|
||||
<User Key="software\microsoft\shared tools\proofing tools\spelling" Name="germanpostreform" Value="1" Type="REG_DWORD" App="office16" Id="L_UseGermanpostreformruleswhenrunningspellcheck" />
|
||||
<!-- Settings common - Customized by Intune/DSC later -->
|
||||
<User Key="software\microsoft\office\16.0\common" Name="disabledocumentchat" Value="0" Type="REG_DWORD" App="office16" Id="L_DocumentChat" />
|
||||
<User Key="software\microsoft\office\16.0\common" Name="qmenable" Value="0" Type="REG_DWORD" App="office16" Id="L_EnableCustomerExperienceImprovementProgram" />
|
||||
<User Key="software\microsoft\office\16.0\common" Name="updatereliabilitydata" Value="1" Type="REG_DWORD" App="office16" Id="L_UpdateReliabilityPolicy" />
|
||||
<User Key="software\microsoft\office\16.0\common" Name="linkedin" Value="1" Type="REG_DWORD" App="office16" Id="L_AllowLinkedInFeatures" />
|
||||
<User Key="software\microsoft\office\16.0\common" Name="default ui theme" Value="0" Type="REG_DWORD" App="office16" Id="L_DefaultUIThemeUser" />
|
||||
<User Key="software\microsoft\office\16.0\common" Name="insiderslabbehavior" Value="1" Type="REG_DWORD" App="office16" Id="L_OfficeInsiderUserExperience" />
|
||||
<User Key="software\microsoft\office\16.0\common\feedback" Name="enabled" Value="0" Type="REG_DWORD" App="office16" Id="L_SendFeedback" />
|
||||
<User Key="software\microsoft\office\16.0\common\ptwatson" Name="ptwoptin" Value="0" Type="REG_DWORD" App="office16" Id="L_ImproveProofingTools" />
|
||||
<User Key="software\microsoft\office\16.0\common\security" Name="useisopasswordverifier" Value="1" Type="REG_DWORD" App="office16" Id="L_SetPasswordHashFormatAsISOCompliant" />
|
||||
<User Key="software\microsoft\office\16.0\common\im" Name="turnoffpresenceintegration" Value="0" Type="REG_DWORD" App="office16" Id="L_TurnOffPresenceIntegration" />
|
||||
<User Key="software\microsoft\office\16.0\common\im" Name="turnoffpresenceicon" Value="0" Type="REG_DWORD" App="office16" Id="L_ConfigurePresenceIcons" />
|
||||
<User Key="software\microsoft\office\16.0\common\internet" Name="allow8bitmime" Value="0" Type="REG_DWORD" App="office16" Id="L_WebArchiveencoding" />
|
||||
<User Key="software\microsoft\office\16.0\common\general" Name="shownfirstrunoptin" Value="1" Type="REG_DWORD" App="office16" Id="L_DisableOptinWizard" />
|
||||
<User Key="software\microsoft\office\16.0\firstrun" Name="disablemovie" Value="1" Type="REG_DWORD" App="office16" Id="L_DisableMovie" />
|
||||
<User Key="software\microsoft\office\16.0\firstrun" Name="bootedrtm" Value="1" Type="REG_DWORD" App="office16" Id="L_DisableOfficeFirstrun" />
|
||||
<User Key="software\microsoft\office\16.0\osm" Name="enableupload" Value="0" Type="REG_DWORD" App="office16" Id="L_OfficeInventoryAgentUpload" />
|
||||
<User Key="software\microsoft\office\16.0\osm" Name="enablefileobfuscation" Value="0" Type="REG_DWORD" App="office16" Id="L_OfficeInventoryAgentFilemetadataObfuscation" />
|
||||
<User Key="software\microsoft\office\16.0\osm" Name="enablelogging" Value="0" Type="REG_DWORD" App="office16" Id="L_EnableLogging" />
|
||||
<!-- Settings for Excel - Customized by Intune/DSC later -->
|
||||
<User Key="software\microsoft\office\16.0\excel" Name="dontshowwhatsnew" Value="1" Type="REG_DWORD" App="office16" Id="L_DontShowWhatsNewInformationExcel" />
|
||||
<User Key="software\microsoft\office\16.0\excel\options" Name="defaultformat" Value="51" Type="REG_DWORD" App="excel16" Id="L_SaveExcelfilesas" />
|
||||
<!-- Settings for OneNote - Customized by Intune/DSC later -->
|
||||
<User Key="software\microsoft\office\16.0\onenote" Name="dontshowwhatsnew" Value="1" Type="REG_DWORD" App="office16" Id="L_DontShowWhatsNewInformationOneNote" />
|
||||
<User Key="software\microsoft\office\16.0\onenote\options" Name="email attachment" Value="1" Type="REG_DWORD" App="onent16" Id="L_AllowOneNoteemailattachments" />
|
||||
<User Key="software\microsoft\office\16.0\onenote\options" Name="disablepresence" Value="0" Type="REG_DWORD" App="onent16" Id="L_NotebookPresence" />
|
||||
<!-- Settings for Outlook - Customized by Intune/DSC later -->
|
||||
<User Key="software\microsoft\office\16.0\outlook" Name="dontshowwhatsnew" Value="1" Type="REG_DWORD" App="office16" Id="L_DontShowWhatsNewInformationOutlook" />
|
||||
<User Key="software\microsoft\office\16.0\outlook\options\pubcal" Name="restrictedaccessonly" Value="1" Type="REG_DWORD" App="outlk16" Id="L_Accesstopublishedcalendars" />
|
||||
<User Key="software\microsoft\office\16.0\outlook\options\calendar" Name="weeknum" Value="1" Type="REG_DWORD" App="outlk16" Id="L_Calendarweeknumbers" />
|
||||
<User Key="software\microsoft\office\16.0\outlook\options" Name="enableconflictlogging" Value="2" Type="REG_DWORD" App="outlk16" Id="L_TurnOnLoggingForAllConflicts" />
|
||||
<User Key="software\microsoft\office\16.0\outlook\preferences" Name="disablemanualarchive" Value="1" Type="REG_DWORD" App="outlk16" Id="L_DisableFileArchive" />
|
||||
<!-- Settings for PowerPoint - Customized by Intune/DSC later -->
|
||||
<User Key="software\microsoft\office\16.0\powerpoint" Name="dontshowwhatsnew" Value="1" Type="REG_DWORD" App="office16" Id="L_DontShowWhatsNewInformationPowerPoint" />
|
||||
<User Key="software\microsoft\office\16.0\powerpoint\options" Name="defaultformat" Value="27" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesas" />
|
||||
<!-- Settings for Visio - Customized by Intune/DSC later -->
|
||||
<User Key="software\microsoft\office\16.0\visio" Name="dontshowwhatsnew" Value="1" Type="REG_DWORD" App="office16" Id="L_DontShowWhatsNewInformationVisio" />
|
||||
<!-- Settings for Word - Customized by Intune/DSC later -->
|
||||
<User Key="software\microsoft\office\16.0\word" Name="dontshowwhatsnew" Value="1" Type="REG_DWORD" App="office16" Id="L_DontShowWhatsNewInformationWord" />
|
||||
<User Key="software\microsoft\office\16.0\word\options" Name="defaultformat" Value="" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" />
|
||||
</AppSettings>
|
||||
<!-- Do NOT show the EULA -->
|
||||
<Display Level="None" AcceptEULA="TRUE" />
|
||||
<!-- No logging -->
|
||||
<Logging Level="Off" />
|
||||
</Configuration>
|
||||
@@ -0,0 +1,671 @@
|
||||
#requires -Version 5.0 -Modules CimCmdlets -RunAsAdministrator
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Set the Install Image in the Registry
|
||||
|
||||
.DESCRIPTION
|
||||
Set the Install Image in the Registry.
|
||||
Save several infos to the registry, we use that with some tools later.
|
||||
|
||||
.PARAMETER Company
|
||||
Name of the Company, used to create a registry Tree
|
||||
|
||||
.PARAMETER ImageName
|
||||
Name of the Install Image
|
||||
|
||||
.PARAMETER ImageDescription
|
||||
Description of the Install Image
|
||||
|
||||
.PARAMETER ImageVersion
|
||||
Version of the Install Image.
|
||||
String is used here!
|
||||
|
||||
.NOTES
|
||||
Changelog:
|
||||
2.0.0: Completly rewritten and renamed
|
||||
1.0.2: Add Image Name & Version
|
||||
1.0.1: Fixed the site issue (Termination Error)
|
||||
1.0.0: Initial public beta
|
||||
|
||||
Version 2.0.0
|
||||
|
||||
.LINK
|
||||
http://enatec.io
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'None')]
|
||||
param
|
||||
(
|
||||
[Parameter(ValueFromPipeline,
|
||||
ValueFromPipelineByPropertyName)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[Alias('InstallCompany')]
|
||||
[string]
|
||||
$Company = 'enabling Technology',
|
||||
[Parameter(ValueFromPipeline,
|
||||
ValueFromPipelineByPropertyName)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[Alias('InstallImageName')]
|
||||
[string]
|
||||
$ImageName = 'ETPOSD',
|
||||
[Parameter(ValueFromPipeline,
|
||||
ValueFromPipelineByPropertyName)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[Alias('InstallImageDescription')]
|
||||
[string]
|
||||
$ImageDescription = 'enabling Technology progressive OS deployment',
|
||||
[Parameter(ValueFromPipeline,
|
||||
ValueFromPipelineByPropertyName)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[Alias('InstallImageVersion')]
|
||||
[string]
|
||||
$ImageVersion = 'Test Build'
|
||||
)
|
||||
|
||||
begin
|
||||
{
|
||||
Write-Output -InputObject 'Set the Install Image in the Registry'
|
||||
|
||||
#region GlobalDefaults
|
||||
$SCT = 'SilentlyContinue'
|
||||
|
||||
$RegSz = 'String'
|
||||
$DefaultInfo = 'Unknown'
|
||||
|
||||
# Target Path
|
||||
$RegistryPath = ('HKLM:\Software\' + $Company + '\BaseImage')
|
||||
#endregion GlobalDefaults
|
||||
|
||||
#region HelperFunctions
|
||||
function Get-ComputerSplit
|
||||
{
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Find the own name via DNS, use the Hostname as fallback
|
||||
|
||||
.DESCRIPTION
|
||||
Find the own name via DNS, use the Hostname as fallback
|
||||
|
||||
.PARAMETER ComputerName
|
||||
The Computer(s) to use
|
||||
|
||||
.EXAMPLE
|
||||
Get-ComputerSplit -ComputerName Value
|
||||
Describe what this call does
|
||||
|
||||
.NOTES
|
||||
Stolen from PsSharedGoods (MIT Licensed)
|
||||
|
||||
.LINK
|
||||
https://github.com/EvotecIT/PSSharedGoods
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'Low')]
|
||||
param(
|
||||
[string[]] $ComputerName = $ComputerName
|
||||
)
|
||||
|
||||
begin
|
||||
{
|
||||
# Just in case
|
||||
if ($null -eq $ComputerName)
|
||||
{
|
||||
$ComputerName = ($Env:COMPUTERNAME)
|
||||
}
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
try
|
||||
{
|
||||
# Do we have a registered Hostname in DNS?
|
||||
$LocalComputerDNSName = ([Net.Dns]::GetHostByName($Env:COMPUTERNAME).HostName)
|
||||
}
|
||||
catch
|
||||
{
|
||||
# Fallback
|
||||
$LocalComputerDNSName = ($Env:COMPUTERNAME)
|
||||
}
|
||||
|
||||
# Cleanup
|
||||
$ComputersLocal = $null
|
||||
|
||||
[Array] $Computers = foreach ($_ in $ComputerName)
|
||||
{
|
||||
if ($_ -eq '' -or $null -eq $_)
|
||||
{
|
||||
$_ = ($Env:COMPUTERNAME)
|
||||
}
|
||||
|
||||
if ($_ -ne $Env:COMPUTERNAME -and $_ -ne $LocalComputerDNSName)
|
||||
{
|
||||
$_
|
||||
}
|
||||
else
|
||||
{
|
||||
$ComputersLocal = ($_)
|
||||
}
|
||||
}
|
||||
, @($ComputersLocal, $Computers)
|
||||
}
|
||||
}
|
||||
|
||||
function Get-CimData
|
||||
{
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Get CIM Data
|
||||
|
||||
.DESCRIPTION
|
||||
Get CIM Data
|
||||
|
||||
.PARAMETER ComputerName
|
||||
Parameter description
|
||||
|
||||
.PARAMETER Protocol
|
||||
'Default', 'Dcom', 'Wsman', default is 'Default'
|
||||
|
||||
.PARAMETER Class
|
||||
CIM Class
|
||||
|
||||
.PARAMETER Properties
|
||||
CIM Property or Properties
|
||||
|
||||
.EXAMPLE
|
||||
Get-CimData -Class 'win32_bios' -ComputerName AD1,EVOWIN
|
||||
|
||||
Get-CimData -Class 'win32_bios'
|
||||
|
||||
# Get-CimClass to get all classes
|
||||
|
||||
.NOTES
|
||||
Stolen from PsSharedGoods (MIT Licensed)
|
||||
|
||||
.LINK
|
||||
https://github.com/EvotecIT/PSSharedGoods
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'Low')]
|
||||
param([string] $Class,
|
||||
[string] $NameSpace = 'root\cimv2',
|
||||
[string[]] $ComputerName = $Env:COMPUTERNAME,
|
||||
[ValidateSet('Default', 'Dcom', 'Wsman')][string] $Protocol = 'Default',
|
||||
[string] $Properties = '*')
|
||||
|
||||
begin
|
||||
{
|
||||
$SCT = 'SilentlyContinue'
|
||||
$ExcludeProperties = 'CimClass', 'CimInstanceProperties', 'CimSystemProperties', 'SystemCreationClassName', 'CreationClassName'
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
[Array] $ComputersSplit = (Get-ComputerSplit -ComputerName $ComputerName)
|
||||
$CimObject = @(# requires removal of this property for query
|
||||
[string[]] $PropertiesOnly = $Properties | Where-Object -FilterScript {
|
||||
$_ -ne 'PSComputerName'
|
||||
}
|
||||
|
||||
$Computers = $ComputersSplit[1]
|
||||
|
||||
if ($Computers.Count -gt 0)
|
||||
{
|
||||
if ($Protocol -eq 'Default')
|
||||
{
|
||||
(Get-CimInstance -ClassName $Class -ComputerName $Computers -ErrorAction $SCT -Property $PropertiesOnly -Namespace $NameSpace | Select-Object -Property $Properties -ExcludeProperty $ExcludeProperties)
|
||||
}
|
||||
else
|
||||
{
|
||||
$Option = (New-CimSessionOption -Protocol)
|
||||
$Session = (New-CimSession -ComputerName $Computers -SessionOption $Option -ErrorAction $SCT)
|
||||
$Info = (Get-CimInstance -ClassName $Class -CimSession $Session -ErrorAction $SCT -Property $PropertiesOnly -Namespace $NameSpace | Select-Object -Property $Properties -ExcludeProperty $ExcludeProperties)
|
||||
$null = (Remove-CimSession -CimSession $Session -ErrorAction $SCT)
|
||||
|
||||
$Info
|
||||
}
|
||||
}
|
||||
|
||||
$Computers = $ComputersSplit[0]
|
||||
|
||||
if ($Computers.Count -gt 0)
|
||||
{
|
||||
$Info = (Get-CimInstance -ClassName $Class -ErrorAction $SCT -Property $PropertiesOnly -Namespace $NameSpace | Select-Object -Property $Properties -ExcludeProperty $ExcludeProperties)
|
||||
$Info | Add-Member -Name 'PSComputerName' -Value $Computers -MemberType NoteProperty -Force
|
||||
|
||||
$Info
|
||||
}
|
||||
)
|
||||
|
||||
$CimComputers = ($CimObject.PSComputerName | Sort-Object -Unique)
|
||||
|
||||
foreach ($Computer in $ComputerName)
|
||||
{
|
||||
if ($CimComputers -notcontains $Computer)
|
||||
{
|
||||
Write-Warning -Message ('Get-CimData - No data for computer {0}. Most likely an error on receiving side.' -f $Computer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end
|
||||
{
|
||||
return $CimObject
|
||||
}
|
||||
}
|
||||
#endregion HelperFunctions
|
||||
|
||||
$paramSetMpPreference = @{
|
||||
EnableControlledFolderAccess = 'Disabled'
|
||||
Force = $true
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Set-MpPreference @paramSetMpPreference)
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
# Create Path if needed
|
||||
$paramTestPath = @{
|
||||
Path = $RegistryPath
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (-not (Test-Path @paramTestPath))
|
||||
{
|
||||
$paramNewItem = @{
|
||||
Path = $RegistryPath
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
|
||||
# Set Date/Time
|
||||
$InstallDate = (Get-Date -Format 'yyyy-MM-dd')
|
||||
$InstallTime = (Get-Date -Format 'HH:mm')
|
||||
|
||||
# Get system info
|
||||
$paramGetCimData = @{
|
||||
Class = 'Win32_ComputerSystem'
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$HardwareInfo = (Get-CimData @paramGetCimData)
|
||||
|
||||
# Windows Info
|
||||
$paramGetCimInstance = @{
|
||||
ClassName = 'Win32_OperatingSystem'
|
||||
Property = 'CSName', 'Caption', 'Version', 'OSArchitecture'
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$WindowsVersionInfo = (Get-CimInstance @paramGetCimInstance | Select-Object -Property CSName, Caption, Version, OSArchitecture)
|
||||
|
||||
# Release ID (e.g. 1903)
|
||||
$paramGetItemProperty = @{
|
||||
Path = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
|
||||
Name = 'ReleaseId'
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$WindowsReleaseId = ((Get-ItemProperty @paramGetItemProperty ).ReleaseId)
|
||||
|
||||
# Network Info
|
||||
$paramGetCimInstance = @{
|
||||
ClassName = 'Win32_NetworkAdapterConfiguration'
|
||||
select = 'IPAddress'
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$WindowsNicInfo = (Get-CimInstance @paramGetCimInstance | Where-Object -FilterScript {
|
||||
$_.IPAddress
|
||||
} | Select-Object -ExpandProperty IPAddress | Where-Object -FilterScript {
|
||||
$_ -notlike '*:*'
|
||||
})
|
||||
|
||||
#region ImageName
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'ImageName'
|
||||
PropertyType = $RegSz
|
||||
Value = $ImageName
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion ImageName
|
||||
|
||||
#region ImageDescription
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'ImageDescription'
|
||||
PropertyType = $RegSz
|
||||
Value = $ImageDescription
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion ImageDescription
|
||||
|
||||
#region ImageVersion
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'ImageVersion'
|
||||
PropertyType = $RegSz
|
||||
Value = $ImageVersion
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion ImageVersion
|
||||
|
||||
#region KMSAware
|
||||
$paramTestConnection = @{
|
||||
ComputerName = 'kms.enatec.net'
|
||||
Quiet = $true
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
[bool]$KMSAwareValue = (Test-Connection @paramTestConnection)
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'KMSAware'
|
||||
PropertyType = $RegSz
|
||||
Value = $KMSAwareValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion KMSAware
|
||||
|
||||
#region InstallDate
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallDate'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallDate
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallDate
|
||||
|
||||
#region InstallTime
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallTime'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallTime
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallTime
|
||||
|
||||
#region InstallHostname
|
||||
if ((($HardwareInfo).Name))
|
||||
{
|
||||
$InstallHostnameValue = (($HardwareInfo).Name)
|
||||
}
|
||||
else
|
||||
{
|
||||
$InstallHostnameValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallHostname'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallHostnameValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallHostname
|
||||
|
||||
#region InstallIP
|
||||
if ($WindowsNicInfo)
|
||||
{
|
||||
$InstallIPValue = $WindowsNicInfo
|
||||
}
|
||||
else
|
||||
{
|
||||
$InstallIPValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallIP'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallIPValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallIP
|
||||
|
||||
#region InstallSite
|
||||
if (Test-Connection -ComputerName echo.enatec.net -Quiet -WarningAction $SCT -ErrorAction $SCT)
|
||||
{
|
||||
$InstallSiteValue = 'FRA1'
|
||||
}
|
||||
elseif (Test-Connection -ComputerName friend.enatec.net -Quiet -WarningAction $SCT -ErrorAction $SCT)
|
||||
{
|
||||
$InstallSiteValue = 'FRA2'
|
||||
}
|
||||
elseif (Test-Connection -ComputerName join.enatec.net -Quiet -WarningAction $SCT -ErrorAction $SCT)
|
||||
{
|
||||
$InstallSiteValue = 'VPN'
|
||||
}
|
||||
else
|
||||
{
|
||||
$InstallSiteValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallSite'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallSiteValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallSite
|
||||
|
||||
#region HardwareManufacturer
|
||||
if ((($HardwareInfo).Manufacturer))
|
||||
{
|
||||
$HardwareManufacturerValue = (($HardwareInfo).Manufacturer)
|
||||
}
|
||||
else
|
||||
{
|
||||
$HardwareManufacturerValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'HardwareManufacturer'
|
||||
PropertyType = $RegSz
|
||||
Value = $HardwareManufacturerValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion HardwareManufacturer
|
||||
|
||||
#region HardwareModel
|
||||
if ((($HardwareInfo).Model))
|
||||
{
|
||||
$HardwareModelValue = (($HardwareInfo).Model)
|
||||
}
|
||||
else
|
||||
{
|
||||
$HardwareModelValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'HardwareModel'
|
||||
PropertyType = $RegSz
|
||||
Value = $HardwareModelValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion HardwareModel
|
||||
|
||||
#region InstallOperationsystem
|
||||
if ((($WindowsVersionInfo).Caption))
|
||||
{
|
||||
$InstallOperationsystemValue = (($WindowsVersionInfo).Caption)
|
||||
}
|
||||
else
|
||||
{
|
||||
$InstallOperationsystemValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallOperationsystem'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallOperationsystemValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallOperationsystem
|
||||
|
||||
#region InstallArchitecture
|
||||
if ((($WindowsVersionInfo).OSArchitecture))
|
||||
{
|
||||
$InstallArchitectureValue = (($WindowsVersionInfo).OSArchitecture)
|
||||
}
|
||||
else
|
||||
{
|
||||
$InstallArchitectureValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallArchitecture'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallArchitectureValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallArchitecture
|
||||
|
||||
#region InstallReleaseId
|
||||
if ($WindowsReleaseId)
|
||||
{
|
||||
$InstallReleaseIdValue = $WindowsReleaseId
|
||||
}
|
||||
else
|
||||
{
|
||||
$InstallReleaseIdValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallReleaseId'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallReleaseIdValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallReleaseId
|
||||
|
||||
#region InstallVersion
|
||||
if ((($WindowsVersionInfo).Version))
|
||||
{
|
||||
$InstallVersionValue = (($WindowsVersionInfo).Version)
|
||||
}
|
||||
else
|
||||
{
|
||||
$InstallVersionValue = $DefaultInfo
|
||||
}
|
||||
|
||||
$paramNewItemProperty = @{
|
||||
Path = $RegistryPath
|
||||
Name = 'InstallVersion'
|
||||
PropertyType = $RegSz
|
||||
Value = $InstallVersionValue
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
#endregion InstallVersion
|
||||
}
|
||||
|
||||
end
|
||||
{
|
||||
$paramSetMpPreference = @{
|
||||
EnableControlledFolderAccess = 'Enabled'
|
||||
Force = $true
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Set-MpPreference @paramSetMpPreference)
|
||||
}
|
||||
|
||||
#region LICENSE
|
||||
<#
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, enabling Technology
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#>
|
||||
#endregion LICENSE
|
||||
|
||||
#region DISCLAIMER
|
||||
<#
|
||||
DISCLAIMER:
|
||||
- Use at your own risk, etc.
|
||||
- This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty in any kind
|
||||
- This is a third-party Software
|
||||
- The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its subsidiaries in any way
|
||||
- The Software is not supported by Microsoft Corp (MSFT)
|
||||
- By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
- If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
#>
|
||||
#endregion DISCLAIMER
|
||||
@@ -0,0 +1,415 @@
|
||||
@ECHO OFF
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: enabling Technology progressive OS deployment
|
||||
:: Client System Bootstrapper for Windows 10 Enterprise Installations
|
||||
::
|
||||
:: Version 1.0.0
|
||||
::
|
||||
:: Tested with Windows 10 Enterprise Release 2004 and Release 2009
|
||||
::
|
||||
:: Please review all the scripts BEFORE you install it on any of your systems.
|
||||
:: This installation/configuration is customized to our internal requirements and might not fit for everyone!
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
|
||||
SETLOCAL
|
||||
|
||||
:: check if runs as Administrator
|
||||
OPENFILES >nul 2>&1
|
||||
IF %errorlevel%==0 (
|
||||
GOTO MakeNonCancelable
|
||||
) ELSE (
|
||||
ECHO You are not running as Administrator...
|
||||
ECHO This batch cannot do it's job without elevation!
|
||||
ECHO.
|
||||
ECHO Right-click and select ^'Run as Administrator^' and try again...
|
||||
ECHO.
|
||||
ECHO Press any key to exit...
|
||||
PAUSE >nul
|
||||
|
||||
EXIT
|
||||
)
|
||||
|
||||
:MakeNonCancelable
|
||||
:: prevent CTRL + C
|
||||
IF "%~1" EQU "NonCancelable" GOTO NonCancelable
|
||||
START "" /B CMD /C "%~F0" NonCancelable
|
||||
EXIT
|
||||
|
||||
:NonCancelable
|
||||
TITLE enabling Technology Client System Bootstrapper
|
||||
SET Module=SystemBootstrapper
|
||||
SET logfile_setup=%HOMEDRIVE%\Temp\%Module%.txt
|
||||
|
||||
:: Show Splash Screen
|
||||
START /LOW /MAX "Installation is running, please wait" c:\tools\enaTec_Installer.exe >nul 2>&1
|
||||
|
||||
:: Ensure NTP is used and that the time is correct
|
||||
%SystemRoot%\System32\net.exe stop w32time >nul 2>&1
|
||||
%SystemRoot%\System32\w32tm.exe /config /syncfromflags:manual /manualpeerlist:"0.de.pool.ntp.org 1.de.pool.ntp.org 2.de.pool.ntp.org 3.de.pool.ntp.org" >nul 2>&1
|
||||
%SystemRoot%\System32\net.exe start w32time >nul 2>&1
|
||||
%SystemRoot%\System32\sc.exe config w32time start= auto >nul 2>&1
|
||||
%SystemRoot%\System32\w32tm.exe /resync /force >nul 2>&1
|
||||
|
||||
:: Wait for the Splash Screen to load
|
||||
:LOOP
|
||||
:: Check if the Splash Screen is running
|
||||
%SystemRoot%\system32\tasklist.exe | %SystemRoot%\system32\find.exe /i "enaTec_Installer" >nul 2>&1
|
||||
IF ERRORLEVEL 1 (
|
||||
:: Wait for 5 seconds
|
||||
%SystemRoot%\system32\timeout.exe /T 5 /Nobreak >nul 2>&1
|
||||
:: Check again
|
||||
GOTO LOOP
|
||||
) ELSE (
|
||||
:: Splash Screen is running
|
||||
GOTO SetLogHeader
|
||||
)
|
||||
|
||||
:SetLogHeader
|
||||
ECHO ******************************************************************************** >%logfile_setup%
|
||||
ECHO Started %Module% on %DATE:~0% - %TIME:~0,8%
|
||||
ECHO For %COMPUTERNAME% by %USERDOMAIN%\%USERNAME% >>%logfile_setup%
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:SetPowerPlanToHighPerformance
|
||||
ECHO Set Power Plan to High Performance
|
||||
ECHO %TIME:~0,8% Set Power Plan to High Performance >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "c:\scripts\PowerShell\Set-PowerPlanToHighPerformance.ps1" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:DisableCortanaSearchbar
|
||||
ECHO Disable Cortana Searchbar
|
||||
ECHO %TIME:~0,8% Disable Cortana Searchbar >>%logfile_setup%
|
||||
"%SystemRoot%\System32\reg.exe" ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:CreatePowerShellProfiles
|
||||
ECHO Create plain PowerShell Profiles
|
||||
ECHO %TIME:~0,8% Create plain PowerShell Profiles >>%logfile_setup%
|
||||
start /MIN /WAIT "CleanupStockApps" %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "C:\scripts\PowerShell\New-PowerShellProfiles.ps1" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:ConfigureStorageSense
|
||||
ECHO Configure Storage Sense
|
||||
ECHO %TIME:~0,8% Configure Storage Sense >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Set-StorageSense.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:BootstrapTheUser
|
||||
ECHO Bootstrap the User
|
||||
ECHO %TIME:~0,8% Bootstrap the User >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Invoke-BootstrapUser.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:ApplyTweaksLocal
|
||||
ECHO Apply tweaks local
|
||||
ECHO %TIME:~0,8% Apply tweaks local >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\reg.exe" ADD HKU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v BootstrapUser /t REG_SZ /d "powershell.exe -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command '$null = (C:\scripts\PowerShell\Invoke-BootstrapUser.ps1)'" /f >>%logfile_setup% 2>&1
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:UpdateAllMicrosoftStoreApps
|
||||
ECHO Update all Microsoft Store Apps
|
||||
ECHO %TIME:~0,8% Update all Microsoft Store Apps >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Update-AllMicrosoftStoreApps.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:SetOneDriveToGetInsiderBuilds
|
||||
ECHO Set OneDrive to get Insider builds
|
||||
ECHO %TIME:~0,8% Set OneDrive to get Insider builds >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\reg.exe" add HKCU\Software\Microsoft\OneDrive /v EnableTeamTier_Internal /t REG_DWORD /d 1 /f >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:ForceOneDriveToUpdateAndRestart
|
||||
ECHO Force OneDrive to update and restart
|
||||
ECHO %TIME:~0,8% Force OneDrive to update and restart >>%logfile_setup% 2>&1
|
||||
C:\Windows\SysWOW64/OneDriveSetup.exe /update /restart /force >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:DownloadAndInstallLatestVersionOfMicrosoftTeams
|
||||
ECHO Download and install latest version of Microsoft Teams
|
||||
ECHO %TIME:~0,8% Download and install latest version of Microsoft Teams >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Install-LatestTeamsClient.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:EnableQoSForMicrosoftTeams
|
||||
ECHO Enable QoS for Microsoft Teams
|
||||
ECHO %TIME:~0,8% Enable QoS for Microsoft Teams >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Set-QoSForMicrosoftTeams.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:TweakTheFirewallForMicrosoftTeams
|
||||
ECHO Tweak the Firewall for Microsoft Teams
|
||||
ECHO %TIME:~0,8% Tweak the Firewall for Microsoft Teams >>%logfile_setup% 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Invoke-TweakTeamsClientFirewall.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:ConfigureMicrosoftDefender
|
||||
ECHO Configure Microsoft Defender
|
||||
ECHO %TIME:~0,8% Configure Microsoft Defender >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Optimize-MicrosoftDefenderExclusions.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:InstallSomePowerShellModules
|
||||
ECHO Install some PowerShell Modules
|
||||
ECHO %TIME:~0,8% Install some PowerShell Modules >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Install-PowerShellModules_required.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:InstallChocoWorkstationPackages
|
||||
ECHO Install Choco Workstation packages
|
||||
ECHO %TIME:~0,8% Install Choco Workstation packages >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(c:\scripts\PowerShell\Install-ChocoPackages_Workstation.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:InstallWinGetFromTheGitHubRepository
|
||||
ECHO Install WinGet from the GitHub Repository
|
||||
ECHO %TIME:~0,8% Install WinGet from the GitHub Repository >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Install-WingetFromRepositoryRelease.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:AutomateTheDriverUpdateProcess
|
||||
ECHO Automate the driver update process
|
||||
ECHO %TIME:~0,8% Automate the driver update process >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -Command "(c:\scripts\PowerShell\Invoke-MSIntuneDriverUpdate.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:DesktopCleanup
|
||||
ECHO Desktop Cleanup
|
||||
ECHO %TIME:~0,8% Desktop Cleanup >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Remove-AllPublicDesktopLinks.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
ECHO Set the default Start menu
|
||||
ECHO %TIME:~0,8% Set the default Start menu >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Set-DefaultStartMenu.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:DisableWindowsScriptHost
|
||||
:: Turn off Windows Script Host (current user only)
|
||||
ECHO Turn off Windows Script Host
|
||||
ECHO %TIME:~0,8% Turn on Windows Script Host >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Name Enabled -PropertyType DWord -Value 0 -Force -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:EncryptTheBootDriveWithBitLocker
|
||||
ECHO Encrypt the Boot drive with BitLocker
|
||||
ECHO %TIME:~0,8% Encrypt the Boot drive with BitLocker >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Enable-BitLockerEncryption.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:SaveBitLockerKeyToAzureAD
|
||||
ECHO Save BitLocker Key to AzureAD
|
||||
ECHO %TIME:~0,8% Save BitLocker Key to AzureAD >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Invoke-BackupBitLockerKeyToAAD.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:ApplyAllPendingMicrosoftUpdates
|
||||
ECHO Apply all pending Microsoft updates
|
||||
ECHO %TIME:~0,8% Apply all pending Microsoft updates >>%logfile_setup% 2>&1
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "(C:\scripts\PowerShell\Install-AllMissingMicrosoftUpdates.ps1 -ErrorAction Continue)" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: DEFAULT
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction SilentlyContinue)" >nul 2>&1
|
||||
SC stop wsearch >nul 2>&1
|
||||
:: DEFAULT
|
||||
|
||||
:SetPowerPlanToAuto
|
||||
ECHO Set Power Plan to Auto
|
||||
ECHO %TIME:~0,8% Set Power Plan to Auto >>%logfile_setup%
|
||||
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "c:\scripts\PowerShell\Set-PowerPlanToAuto.ps1" >>%logfile_setup% 2>&1
|
||||
ECHO Errorlevel=%Errorlevel% >>%logfile_setup% 2>nul
|
||||
|
||||
:: Go away
|
||||
POPD >nul 2>&1
|
||||
CD / >nul 2>&1
|
||||
|
||||
ECHO %TIME:~0,8% Bootstrap and JumpStart finished >>%logfile_setup%
|
||||
ECHO ******************************************************************************** >>%logfile_setup%
|
||||
ECHO.>>%logfile_setup% 2>nul
|
||||
|
||||
:: Initiate a restart
|
||||
SHUTDOWN -r -t 5 >nul 2>&1
|
||||
|
||||
:: Final cleanup
|
||||
IF EXIST c:\install\ rd /s /q c:\install\ >nul 2>&1
|
||||
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Changelog:
|
||||
::
|
||||
:: 0.9.0: Internal Test
|
||||
:: 1.0.0: Initial Release
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: License: BSD 3-Clause License
|
||||
::
|
||||
:: Copyright 2020, enabling Technology
|
||||
:: All rights reserved.
|
||||
::
|
||||
:: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
:: following conditions are met:
|
||||
:: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
:: disclaimer.
|
||||
:: 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
:: following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
:: 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
|
||||
:: products derived from this software without specific prior written permission.
|
||||
::
|
||||
:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
:: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
:: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
:: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
:: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
:: WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
:: USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
::
|
||||
:: Disclaimer:
|
||||
:: - Use at your own risk, etc.
|
||||
:: - This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty
|
||||
:: in any kind
|
||||
:: - This is a third-party Software
|
||||
:: - The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its
|
||||
:: subsidiaries in any way
|
||||
:: - The Software is not supported by Microsoft Corp (MSFT)
|
||||
:: - By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
:: - If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
::
|
||||
:: ********************************************************************************************************************
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup useLegacyV2RuntimeActivationPolicy="true">
|
||||
<supportedRuntime version="v4.0" />
|
||||
<supportedRuntime version="v2.0" />
|
||||
</startup>
|
||||
<appSettings>
|
||||
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true"/>
|
||||
</appSettings>
|
||||
<runtime>
|
||||
<AppContextSwitchOverrides value="Switch.System.IO.BlockLongPaths=false;Switch.System.IO.UseLegacyPathHandling=false"/>
|
||||
</runtime>
|
||||
</configuration>
|
||||
@@ -0,0 +1,250 @@
|
||||
#requires -Version 2.0 -RunAsAdministrator
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Remove Windows 10 Stock Applications
|
||||
|
||||
.DESCRIPTION
|
||||
Remove Windows 10 Stock Applications
|
||||
|
||||
.NOTES
|
||||
Version 1.0.2
|
||||
|
||||
.LINK
|
||||
http://enatec.io
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'Low')]
|
||||
param ()
|
||||
|
||||
begin
|
||||
{
|
||||
Write-Output -InputObject 'Remove Windows 10 Stock Applications'
|
||||
|
||||
#region Defaults
|
||||
$SCT = 'SilentlyContinue'
|
||||
#endregion Defaults
|
||||
|
||||
if (Get-Command -Name 'Set-MpPreference' -ErrorAction $SCT)
|
||||
{
|
||||
$null = (Set-MpPreference -EnableControlledFolderAccess Disabled -Force -ErrorAction $SCT)
|
||||
}
|
||||
|
||||
#region AppList
|
||||
$AllPackages = @(
|
||||
'Microsoft.Windows.Cortana',
|
||||
'*Cortana*', 'Microsoft.Bing*',
|
||||
'Microsoft.Xbox*',
|
||||
'Microsoft.WindowsPhone',
|
||||
'*Solitaire*',
|
||||
'Microsoft.People',
|
||||
'Microsoft.Zune*',
|
||||
'Microsoft.WindowsSoundRecorder',
|
||||
'microsoft.windowscommunicationsapps',
|
||||
'Microsoft.SkypeApp',
|
||||
'officehub',
|
||||
'3dbuilder',
|
||||
'windowscamera',
|
||||
'*Dell*',
|
||||
'*Dropbox*',
|
||||
'*Facebook*',
|
||||
'Microsoft.WindowsFeedbackHub',
|
||||
'Microsoft.Getstarted',
|
||||
'*Autodesk*',
|
||||
'*Keeper*',
|
||||
'*McAfee*',
|
||||
'*Minecraft*',
|
||||
'*Netflix*',
|
||||
'Microsoft.MicrosoftOfficeHub',
|
||||
'Microsoft.OneConnect',
|
||||
'*Plex*',
|
||||
'Microsoft.SkypeApp',
|
||||
'*Solitaire*',
|
||||
'Microsoft.Office.Sway',
|
||||
'*Twitter*',
|
||||
'*DisneyMagicKingdom*',
|
||||
'*Disney*',
|
||||
'*HiddenCityMysteryofShadows*',
|
||||
'*HiddenCity*',
|
||||
'Microsoft.YourPhone',
|
||||
'Microsoft.WindowsMaps',
|
||||
'Microsoft.Print3D',
|
||||
'Microsoft.MixedReality.Portal',
|
||||
'Microsoft.Microsoft3DViewer',
|
||||
'Microsoft.GetHelp',
|
||||
'Microsoft.MicrosoftStickyNotes',
|
||||
'Microsoft.Windows.Photos'
|
||||
'Microsoft.MSPaint'
|
||||
)
|
||||
#endregion AppList
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
#region AppListLoop
|
||||
foreach ($item in $AllPackages)
|
||||
{
|
||||
try
|
||||
{
|
||||
# Stop Search - Gain performance
|
||||
$paramStopService = @{
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$paramGetService = @{
|
||||
Name = 'WSearch'
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Get-Service @paramGetService | Where-Object {
|
||||
$_.Status -eq 'Running'
|
||||
} | Stop-Service @paramStopService)
|
||||
$paramRemoveAppxPackage = @{
|
||||
Confirm = $false
|
||||
PreserveApplicationData = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$paramGetAppxPackage = @{
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (Get-AppxPackage @paramGetAppxPackage | Where-Object -FilterScript {
|
||||
$_.name -like '*' + $item + '*'
|
||||
} | Remove-AppxPackage @paramRemoveAppxPackage)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-Verbose -Message 'Whoopsie'
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
# Stop Search - Gain performance
|
||||
$paramStopService = @{
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$paramGetService = @{
|
||||
Name = 'WSearch'
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Get-Service @paramGetService | Where-Object {
|
||||
$_.Status -eq 'Running'
|
||||
} | Stop-Service @paramStopService)
|
||||
|
||||
$paramRemoveAppxPackage = @{
|
||||
AllUsers = $true
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$paramGetAppxPackage = @{
|
||||
AllUsers = $true
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (Get-AppxPackage @paramGetAppxPackage | Where-Object -FilterScript {
|
||||
$_.name -like '*' + $item + '*'
|
||||
} | Remove-AppxPackage @paramRemoveAppxPackage)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-Verbose -Message 'Whoopsie'
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
$paramRemoveAppxProvisionedPackage = @{
|
||||
Online = $true
|
||||
AllUsers = $true
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$paramGetAppxProvisionedPackage = @{
|
||||
Online = $true
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (Get-AppxProvisionedPackage @paramGetAppxProvisionedPackage | Where-Object -FilterScript {
|
||||
$_.DisplayName -like '*' + $item + '*'
|
||||
} | Remove-AppxProvisionedPackage @paramRemoveAppxProvisionedPackage)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-Verbose -Message 'Whoopsie'
|
||||
}
|
||||
}
|
||||
#endregion AppListLoop
|
||||
|
||||
#region UninstallMcAfeeSecurity
|
||||
$McAfeeSecurityApp = $null
|
||||
|
||||
$paramGetChildItem = @{
|
||||
Path = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
|
||||
$McAfeeSecurityApp = (Get-ChildItem @paramGetChildItem | ForEach-Object -Process {
|
||||
$paramGetItemProperty = @{
|
||||
Path = $_.PSPath
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
Get-ItemProperty @paramGetItemProperty
|
||||
} | Where-Object -FilterScript {
|
||||
$_ -match 'McAfee Security'
|
||||
} | Select-Object -ExpandProperty UninstallString)
|
||||
|
||||
if ($McAfeeSecurityApp)
|
||||
{
|
||||
$McAfeeSecurityApp = $McAfeeSecurityApp -Replace "$env:ProgramW6432\McAfee\MSC\mcuihost.exe", ''
|
||||
|
||||
$paramStartProcess = @{
|
||||
FilePath = "$env:ProgramW6432\McAfee\MSC\mcuihost.exe"
|
||||
ArgumentList = $McAfeeSecurityApp
|
||||
Wait = $true
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (Start-Process @paramStartProcess)
|
||||
}
|
||||
#endregion UninstallMcAfeeSecurity
|
||||
}
|
||||
|
||||
end
|
||||
{
|
||||
if (Get-Command -Name 'Set-MpPreference' -ErrorAction $SCT)
|
||||
{
|
||||
$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction $SCT)
|
||||
}
|
||||
}
|
||||
|
||||
#region LICENSE
|
||||
<#
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, enabling Technology
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#>
|
||||
#endregion LICENSE
|
||||
|
||||
#region DISCLAIMER
|
||||
<#
|
||||
DISCLAIMER:
|
||||
- Use at your own risk, etc.
|
||||
- This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty in any kind
|
||||
- This is a third-party Software
|
||||
- The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its subsidiaries in any way
|
||||
- The Software is not supported by Microsoft Corp (MSFT)
|
||||
- By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
- If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
#>
|
||||
#endregion DISCLAIMER
|
||||
@@ -0,0 +1,483 @@
|
||||
#requires -Version 3.0
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Create a JSON based configuration for Chromium based Browsers
|
||||
|
||||
.DESCRIPTION
|
||||
Create and deploy a JSON based configuration for Chromium based Browsers
|
||||
|
||||
.NOTES
|
||||
For now, Chromium, Google Chrome, Microsoft Edge, and Microsoft Edge Beta are supported
|
||||
|
||||
Version 1.0.0
|
||||
|
||||
.LINK
|
||||
http://enatec.io
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'Low')]
|
||||
param ()
|
||||
|
||||
begin
|
||||
{
|
||||
Write-Output -InputObject 'Create and deploy a JSON based configuration for Chromium based Browsers'
|
||||
|
||||
#region Defaults
|
||||
$SCT = 'SilentlyContinue'
|
||||
#endregion Defaults
|
||||
|
||||
#region Variables
|
||||
$DefaultHome = 'http://www.google.com/ig'
|
||||
$BrowserPath = $null
|
||||
$MasterPreferenceFile = 'master_preferences'
|
||||
#endregion Variables
|
||||
|
||||
#region ChromePreferences
|
||||
$ChromePreferences = [PSCustomObject]@{ }
|
||||
$ChromePreferences | Add-Member -NotePropertyName homepage -NotePropertyValue $DefaultHome
|
||||
$ChromePreferences | Add-Member -NotePropertyName homepage_is_newtabpage -NotePropertyValue $false
|
||||
$ChromePreferences | Add-Member -NotePropertyName browser -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$ChromePreferences.browser | Add-Member -NotePropertyName show_home_button -NotePropertyValue $true
|
||||
$ChromePreferences | Add-Member -NotePropertyName session -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$ChromePreferences.session | Add-Member -NotePropertyName restore_on_startup -NotePropertyValue 4
|
||||
$ChromePreferences.session | Add-Member -NotePropertyName startup_urls -NotePropertyValue (@($DefaultHome))
|
||||
$ChromePreferences | Add-Member -NotePropertyName bookmark_bar -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$ChromePreferences.bookmark_bar | Add-Member -NotePropertyName show_on_all_tabs -NotePropertyValue $true
|
||||
$ChromePreferences | Add-Member -NotePropertyName sync_promo -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$ChromePreferences.sync_promo | Add-Member -NotePropertyName show_on_first_run_allowed -NotePropertyValue $false
|
||||
$ChromePreferences | Add-Member -NotePropertyName distribution -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName skip_first_run_ui -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName import_bookmarks -NotePropertyValue $false
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName import_history -NotePropertyValue $false
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName import_search_engine -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName suppress_first_run_bubble -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName create_all_shortcuts -NotePropertyValue $false
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName do_not_launch_chrome -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName do_not_register_for_update_launch -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName do_not_create_desktop_shortcut -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName do_not_create_quick_launch_shortcut -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName do_not_create_taskbar_shortcut -NotePropertyValue $false
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName make_chrome_default -NotePropertyValue $false
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName ping_delay -NotePropertyValue 60
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName make_chrome_default_for_user -NotePropertyValue $false
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName suppress_first_run_default_browser_prompt -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName system_level -NotePropertyValue $true
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName verbose_logging -NotePropertyValue $false
|
||||
$ChromePreferences.distribution | Add-Member -NotePropertyName allow_downgrade -NotePropertyValue $false
|
||||
$ChromePreferences | Add-Member -NotePropertyName first_run_tabs -NotePropertyValue ([PSObject]@($DefaultHome))
|
||||
$paramConvertToJson = @{
|
||||
Depth = 10
|
||||
Compress = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$ChromePreferencesJson = ($ChromePreferences | ConvertTo-Json @paramConvertToJson)
|
||||
#endregion ChromePreferences
|
||||
|
||||
#region EdgePreferences
|
||||
$EdgePreferences = [PSCustomObject]@{ }
|
||||
$EdgePreferences | Add-Member -NotePropertyName homepage_is_newtabpage -NotePropertyValue $false
|
||||
$EdgePreferences | Add-Member -NotePropertyName browser -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$EdgePreferences.browser | Add-Member -NotePropertyName show_home_button -NotePropertyValue $true
|
||||
$EdgePreferences | Add-Member -NotePropertyName session -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$EdgePreferences.session | Add-Member -NotePropertyName restore_on_startup -NotePropertyValue 4
|
||||
$EdgePreferences | Add-Member -NotePropertyName bookmark_bar -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$EdgePreferences.bookmark_bar | Add-Member -NotePropertyName show_on_all_tabs -NotePropertyValue $true
|
||||
$EdgePreferences | Add-Member -NotePropertyName sync_promo -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$EdgePreferences.sync_promo | Add-Member -NotePropertyName show_on_first_run_allowed -NotePropertyValue $false
|
||||
$EdgePreferences | Add-Member -NotePropertyName distribution -NotePropertyValue ([PSCustomObject]@{ })
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName skip_first_run_ui -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName import_bookmarks -NotePropertyValue $false
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName import_history -NotePropertyValue $false
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName import_search_engine -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName suppress_first_run_bubble -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName create_all_shortcuts -NotePropertyValue $false
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName do_not_launch_chrome -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName do_not_register_for_update_launch -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName do_not_create_desktop_shortcut -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName do_not_create_quick_launch_shortcut -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName do_not_create_taskbar_shortcut -NotePropertyValue $false
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName make_chrome_default -NotePropertyValue $false
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName ping_delay -NotePropertyValue 60
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName make_chrome_default_for_user -NotePropertyValue $false
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName suppress_first_run_default_browser_prompt -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName system_level -NotePropertyValue $true
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName verbose_logging -NotePropertyValue $false
|
||||
$EdgePreferences.distribution | Add-Member -NotePropertyName allow_downgrade -NotePropertyValue $false
|
||||
$paramConvertToJson = @{
|
||||
Depth = 10
|
||||
Compress = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$EdgePreferencesJson = ($EdgePreferences | ConvertTo-Json @paramConvertToJson)
|
||||
#endregion EdgePreferences
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
#region Chromium
|
||||
$BrowserPath = "$env:ProgramW6432\Chromium\Application\"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $BrowserPath
|
||||
PathType = 'Container'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
Write-Verbose -Message 'Configure Chromium X64'
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $BrowserPath
|
||||
Name = $MasterPreferenceFile
|
||||
Value = $ChromePreferencesJson
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
|
||||
$BrowserPath = "${env:ProgramFiles(x86)}\Chromium\Application\"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $BrowserPath
|
||||
PathType = 'Container'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
Write-Verbose -Message 'Configure Chromium X86'
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $BrowserPath
|
||||
Name = $MasterPreferenceFile
|
||||
Value = $ChromePreferencesJson
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
#endregion Chromium
|
||||
|
||||
#region GoogleChrome
|
||||
$BrowserPath = "$env:ProgramW6432\Google\Chrome\Application\"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $BrowserPath
|
||||
PathType = 'Container'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
Write-Verbose -Message 'Configure Google Chrome X64'
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $BrowserPath
|
||||
Name = $MasterPreferenceFile
|
||||
Value = $ChromePreferencesJson
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
|
||||
$BrowserPath = "${env:ProgramFiles(x86)}\Google\Chrome\Application\"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $BrowserPath
|
||||
PathType = 'Container'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
Write-Verbose -Message 'Configure Google Chrome X86'
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $BrowserPath
|
||||
Name = $MasterPreferenceFile
|
||||
Value = $ChromePreferencesJson
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
#endregion GoogleChrome
|
||||
|
||||
#region MicrosoftEdge
|
||||
$BrowserPath = "$env:ProgramW6432\Microsoft\Edge\Application\"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $BrowserPath
|
||||
PathType = 'Container'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
Write-Verbose -Message 'Configure Microsoft Edge Release X64'
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $BrowserPath
|
||||
Name = $MasterPreferenceFile
|
||||
Value = $EdgePreferencesJson
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
|
||||
$BrowserPath = "${env:ProgramFiles(x86)}\Microsoft\Edge\Application\"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $BrowserPath
|
||||
PathType = 'Container'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
Write-Verbose -Message 'Configure Microsoft Edge Release X86'
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $BrowserPath
|
||||
Name = $MasterPreferenceFile
|
||||
Value = $EdgePreferencesJson
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
#endregion MicrosoftEdge
|
||||
|
||||
#region MicrosoftEdgeBeta
|
||||
$BrowserPath = "$env:ProgramW6432\Microsoft\Edge Beta\Application\"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $BrowserPath
|
||||
PathType = 'Container'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
Write-Verbose -Message 'Configure Microsoft Edge Beta X64'
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $BrowserPath
|
||||
Name = $MasterPreferenceFile
|
||||
Value = $EdgePreferencesJson
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
|
||||
$BrowserPath = "${env:ProgramFiles(x86)}\Microsoft\Edge Beta\Application\"
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = $BrowserPath
|
||||
PathType = 'Container'
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
Write-Verbose -Message 'Configure Microsoft Edge Beta X86'
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
if (Test-Path @paramTestPath )
|
||||
{
|
||||
$paramRemoveItem = @{
|
||||
Path = ($BrowserPath + $MasterPreferenceFile)
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
WarningAction = $SCT
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $BrowserPath
|
||||
Name = $MasterPreferenceFile
|
||||
Value = $EdgePreferencesJson
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
#endregion MicrosoftEdgeBeta
|
||||
}
|
||||
|
||||
#region LICENSE
|
||||
<#
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, enabling Technology
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#>
|
||||
#endregion LICENSE
|
||||
|
||||
#region DISCLAIMER
|
||||
<#
|
||||
DISCLAIMER:
|
||||
- Use at your own risk, etc.
|
||||
- This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty in any kind
|
||||
- This is a third-party Software
|
||||
- The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its subsidiaries in any way
|
||||
- The Software is not supported by Microsoft Corp (MSFT)
|
||||
- By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
- If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
#>
|
||||
#endregion DISCLAIMER
|
||||
@@ -0,0 +1,97 @@
|
||||
#requires -Version 1.0
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Disable Windows Content Delivery Management
|
||||
|
||||
.DESCRIPTION
|
||||
Disable Windows Content Delivery Management
|
||||
|
||||
.EXAMPLE
|
||||
PS C:\> .\Disable-ContentDeliveryManager.ps1
|
||||
|
||||
.NOTES
|
||||
Requested Helper
|
||||
|
||||
Version 1.0.0
|
||||
|
||||
.LINK
|
||||
http://enatec.io
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'None')]
|
||||
param ()
|
||||
|
||||
begin
|
||||
{
|
||||
Write-Output -InputObject 'Disable Windows Content Delivery Management'
|
||||
|
||||
#region Defaults
|
||||
$SCT = 'SilentlyContinue'
|
||||
#endregion Defaults
|
||||
|
||||
#region
|
||||
$ContentDeliveryManagerPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager'
|
||||
#endregion
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
$paramGetItem = @{
|
||||
Path = $ContentDeliveryManagerPath
|
||||
Force = $true
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$ContentDeliveryManagerKeys = (Get-Item @paramGetItem)
|
||||
|
||||
$ContentDeliveryManagerKeys.GetValueNames() | ForEach-Object -Process {
|
||||
if ($ContentDeliveryManagerKeys.GetValueKind($_) -eq 'DWord')
|
||||
{
|
||||
$paramSetItemProperty = @{
|
||||
Path = $ContentDeliveryManagerPath
|
||||
Name = $_
|
||||
Value = 0
|
||||
Force = $true
|
||||
WhatIf = $true
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
Confirm = $false
|
||||
}
|
||||
$null = (Set-ItemProperty @paramSetItemProperty)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end
|
||||
{
|
||||
exit (0)
|
||||
}
|
||||
|
||||
#region LICENSE
|
||||
<#
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, enabling Technology
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#>
|
||||
#endregion LICENSE
|
||||
|
||||
#region DISCLAIMER
|
||||
<#
|
||||
DISCLAIMER:
|
||||
- Use at your own risk, etc.
|
||||
- This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty in any kind
|
||||
- This is a third-party Software
|
||||
- The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its subsidiaries in any way
|
||||
- The Software is not supported by Microsoft Corp (MSFT)
|
||||
- By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
- If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
#>
|
||||
#endregion DISCLAIMER
|
||||
@@ -0,0 +1,964 @@
|
||||
#requires -Version 5.0 -RunAsAdministrator
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Enable BitLocker with both TPM and recovery password key protectors on Windows 10 devices.
|
||||
|
||||
.DESCRIPTION
|
||||
Enable BitLocker with both TPM and recovery password key protectors on Windows 10 devices.
|
||||
|
||||
.PARAMETER EncryptionMethod
|
||||
Define the encryption method to be used when enabling BitLocker.
|
||||
|
||||
.PARAMETER OperationalMode
|
||||
Set the operational mode of this script.
|
||||
|
||||
.PARAMETER CompanyName
|
||||
Set the company name to be used as registry root when running in Backup mode.
|
||||
|
||||
.NOTES
|
||||
Version 1.0.1
|
||||
|
||||
Adopted version of Enable-BitLockerEncryption.ps1 from Nickolaj Andersen (@NickolajA)
|
||||
#>
|
||||
[CmdletBinding(SupportsShouldProcess)]
|
||||
param (
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[ValidateSet('Aes128', 'Aes256', 'XtsAes128', 'XtsAes256')]
|
||||
[string]
|
||||
$EncryptionMethod = 'XtsAes256',
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[ValidateSet('Encrypt', 'Backup')]
|
||||
[string]
|
||||
$OperationalMode = 'Encrypt',
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$CompanyName = 'enabling Technology'
|
||||
)
|
||||
|
||||
begin
|
||||
{
|
||||
Write-Output -InputObject 'Enable BitLocker with both TPM and recovery password key protectors'
|
||||
|
||||
#region
|
||||
$STP = 'Stop'
|
||||
$SCT = 'SilentlyContinue'
|
||||
#endregion
|
||||
|
||||
if (Get-Command -Name 'Set-MpPreference' -ErrorAction $SCT)
|
||||
{
|
||||
$null = (Set-MpPreference -EnableControlledFolderAccess Disabled -Force -ErrorAction $SCT)
|
||||
}
|
||||
|
||||
#region
|
||||
function Write-LogEntry
|
||||
{
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Describe purpose of "Write-LogEntry" in 1-2 sentences.
|
||||
|
||||
.DESCRIPTION
|
||||
Add a more complete description of what the function does.
|
||||
|
||||
.PARAMETER Value
|
||||
Describe parameter -Value.
|
||||
|
||||
.PARAMETER Severity
|
||||
Describe parameter -Severity.
|
||||
|
||||
.EXAMPLE
|
||||
Write-LogEntry -Value Value -Severity Value
|
||||
Describe what this call does
|
||||
|
||||
.NOTES
|
||||
Place additional notes here.
|
||||
|
||||
.LINK
|
||||
URLs to related sites
|
||||
The first link is opened by Get-Help -Online Write-LogEntry
|
||||
|
||||
.INPUTS
|
||||
List of input types that are accepted by this function.
|
||||
|
||||
.OUTPUTS
|
||||
List of output types produced by this function.
|
||||
#>
|
||||
param (
|
||||
[parameter(Mandatory, HelpMessage = 'Value added to the log file.')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$Value,
|
||||
[parameter(Mandatory, HelpMessage = 'Severity for the log entry. 1 for Informational, 2 for Warning and 3 for Error.')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[ValidateSet('1', '2', '3')]
|
||||
[string]
|
||||
$Severity
|
||||
)
|
||||
begin
|
||||
{
|
||||
$SCT = 'SilentlyContinue'
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
# Determine log file location
|
||||
$paramJoinPath = @{
|
||||
Path = (Join-Path -Path $env:windir -ChildPath 'Temp' -ErrorAction $SCT)
|
||||
ChildPath = 'Enable-BitLockerEncryption.log'
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$LogFilePath = (Join-Path @paramJoinPath)
|
||||
|
||||
# Construct time stamp for log entry
|
||||
$paramTestPath = @{
|
||||
Path = 'variable:global:TimezoneBias'
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
if (-not (Test-Path @paramTestPath))
|
||||
{
|
||||
[string]$global:TimezoneBias = [TimeZoneInfo]::Local.GetUtcOffset((Get-Date)).TotalMinutes
|
||||
|
||||
if ($TimezoneBias -match '^-')
|
||||
{
|
||||
$TimezoneBias = $TimezoneBias.Replace('-', '+')
|
||||
}
|
||||
else
|
||||
{
|
||||
$TimezoneBias = '-' + $TimezoneBias
|
||||
}
|
||||
}
|
||||
|
||||
$Time = -join @((Get-Date -Format 'HH:mm:ss.fff'), $TimezoneBias)
|
||||
|
||||
# Construct date for log entry
|
||||
$Date = (Get-Date -Format 'MM-dd-yyyy')
|
||||
|
||||
# Construct context for log entry
|
||||
$Context = $([Security.Principal.WindowsIdentity]::GetCurrent().Name)
|
||||
|
||||
# Construct final log entry
|
||||
$LogText = "<![LOG[$($Value)]LOG]!><time=""$($Time)"" date=""$($Date)"" component=""BitLockerEncryption"" context=""$($Context)"" type=""$($Severity)"" thread=""$($PID)"" file="""">"
|
||||
|
||||
# Add value to log file
|
||||
try
|
||||
{
|
||||
$paramOutFile = @{
|
||||
Append = $true
|
||||
NoClobber = $true
|
||||
Encoding = 'Default'
|
||||
FilePath = $LogFilePath
|
||||
ErrorAction = 'Stop'
|
||||
}
|
||||
$null = ($LogText | Out-File @paramOutFile)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-Warning -Message "Unable to append log entry to Enable-BitLockerEncryption.log file. Error message at line $($_.InvocationInfo.ScriptLineNumber): $($_.Exception.Message)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Invoke-Executable
|
||||
{
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Describe purpose of "Invoke-Executable" in 1-2 sentences.
|
||||
|
||||
.DESCRIPTION
|
||||
Add a more complete description of what the function does.
|
||||
|
||||
.PARAMETER FilePath
|
||||
Describe parameter -FilePath.
|
||||
|
||||
.PARAMETER Arguments
|
||||
Describe parameter -Arguments.
|
||||
|
||||
.EXAMPLE
|
||||
Invoke-Executable -FilePath Value -Arguments Value
|
||||
Describe what this call does
|
||||
|
||||
.NOTES
|
||||
Place additional notes here.
|
||||
|
||||
.LINK
|
||||
URLs to related sites
|
||||
The first link is opened by Get-Help -Online Invoke-Executable
|
||||
|
||||
.INPUTS
|
||||
List of input types that are accepted by this function.
|
||||
|
||||
.OUTPUTS
|
||||
List of output types produced by this function.
|
||||
#>
|
||||
param (
|
||||
[parameter(Mandatory, HelpMessage = 'Specify the file name or path of the executable to be invoked, including the extension')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$FilePath,
|
||||
[ValidateNotNull()]
|
||||
[string]
|
||||
$Arguments
|
||||
)
|
||||
|
||||
process
|
||||
{
|
||||
# Construct a hash-table for default parameter splatting
|
||||
$SplatArgs = @{
|
||||
FilePath = $FilePath
|
||||
NoNewWindow = $true
|
||||
Passthru = $true
|
||||
RedirectStandardOutput = 'null.txt'
|
||||
ErrorAction = 'Stop'
|
||||
}
|
||||
|
||||
# Add ArgumentList param if present
|
||||
if (-not ([string]::IsNullOrEmpty($Arguments)))
|
||||
{
|
||||
$SplatArgs.Add('ArgumentList', $Arguments)
|
||||
}
|
||||
|
||||
# Invoke executable and wait for process to exit
|
||||
try
|
||||
{
|
||||
$Invocation = (Start-Process @SplatArgs)
|
||||
$Handle = $Invocation.Handle
|
||||
$Invocation.WaitForExit()
|
||||
|
||||
# Remove redirected output file
|
||||
$paramRemoveItem = @{
|
||||
Path = (Join-Path -Path $PSScriptRoot -ChildPath 'null.txt' -ErrorAction Continue)
|
||||
Force = $true
|
||||
}
|
||||
$null = (Remove-Item @paramRemoveItem)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-Warning -Message $_.Exception.Message
|
||||
break
|
||||
}
|
||||
|
||||
return $Invocation.ExitCode
|
||||
}
|
||||
}
|
||||
|
||||
function Test-RegistryValue
|
||||
{
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Describe purpose of "Test-RegistryValue" in 1-2 sentences.
|
||||
|
||||
.DESCRIPTION
|
||||
Add a more complete description of what the function does.
|
||||
|
||||
.PARAMETER Path
|
||||
Describe parameter -Path.
|
||||
|
||||
.PARAMETER Name
|
||||
Describe parameter -Name.
|
||||
|
||||
.EXAMPLE
|
||||
Test-RegistryValue -Path Value -Name Value
|
||||
Describe what this call does
|
||||
|
||||
.NOTES
|
||||
Place additional notes here.
|
||||
|
||||
.LINK
|
||||
URLs to related sites
|
||||
The first link is opened by Get-Help -Online Test-RegistryValue
|
||||
|
||||
.INPUTS
|
||||
List of input types that are accepted by this function.
|
||||
|
||||
.OUTPUTS
|
||||
List of output types produced by this function.
|
||||
#>
|
||||
param (
|
||||
[parameter(Mandatory, HelpMessage = 'Add help message for user')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$Path,
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$Name
|
||||
)
|
||||
|
||||
begin
|
||||
{
|
||||
# If item property value exists return True, else catch the failure and return False
|
||||
$STP = 'Stop'
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
try
|
||||
{
|
||||
if ($PSBoundParameters['Name'])
|
||||
{
|
||||
$paramGetItemProperty = @{
|
||||
Path = $Path
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$Existence = (Get-ItemProperty @paramGetItemProperty | Select-Object -ExpandProperty $Name -ErrorAction $STP)
|
||||
}
|
||||
else
|
||||
{
|
||||
$paramGetItemProperty = @{
|
||||
Path = $Path
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$Existence = (Get-ItemProperty @paramGetItemProperty)
|
||||
}
|
||||
|
||||
if ($Existence)
|
||||
{
|
||||
return $true
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
return $false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Set-RegistryValue
|
||||
{
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Describe purpose of "Set-RegistryValue" in 1-2 sentences.
|
||||
|
||||
.DESCRIPTION
|
||||
Add a more complete description of what the function does.
|
||||
|
||||
.PARAMETER Path
|
||||
Describe parameter -Path.
|
||||
|
||||
.PARAMETER Name
|
||||
Describe parameter -Name.
|
||||
|
||||
.PARAMETER Value
|
||||
Describe parameter -Value.
|
||||
|
||||
.EXAMPLE
|
||||
Set-RegistryValue -Path Value -Name Value -Value Value
|
||||
Describe what this call does
|
||||
|
||||
.NOTES
|
||||
Place additional notes here.
|
||||
|
||||
.LINK
|
||||
URLs to related sites
|
||||
The first link is opened by Get-Help -Online Set-RegistryValue
|
||||
|
||||
.INPUTS
|
||||
List of input types that are accepted by this function.
|
||||
|
||||
.OUTPUTS
|
||||
List of output types produced by this function.
|
||||
#>
|
||||
param (
|
||||
[parameter(Mandatory, HelpMessage = 'Add help message for user')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$Path,
|
||||
[parameter(Mandatory, HelpMessage = 'Add help message for user')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$Name,
|
||||
[parameter(Mandatory, HelpMessage = 'Add help message for user')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string]
|
||||
$Value
|
||||
)
|
||||
begin
|
||||
{
|
||||
$SCT = 'SilentlyContinue'
|
||||
$STP = 'Stop'
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
try
|
||||
{
|
||||
$paramGetItemProperty = @{
|
||||
Path = $Path
|
||||
Name = $Name
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$RegistryValue = (Get-ItemProperty @paramGetItemProperty)
|
||||
|
||||
if ($RegistryValue)
|
||||
{
|
||||
$paramSetItemProperty = @{
|
||||
Path = $Path
|
||||
Name = $Name
|
||||
Value = $Value
|
||||
Force = $true
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Set-ItemProperty @paramSetItemProperty)
|
||||
}
|
||||
else
|
||||
{
|
||||
$paramNewItemProperty = @{
|
||||
Path = $Path
|
||||
Name = $Name
|
||||
PropertyType = 'String'
|
||||
Value = $Value
|
||||
Force = $true
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "Failed to create or update registry value '$($Name)' in '$($Path)'. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
# Check if we're running as a 64-bit process or not
|
||||
if (-not [Environment]::Is64BitProcess)
|
||||
{
|
||||
# Get the sysnative path for powershell.exe
|
||||
$paramJoinPath = @{
|
||||
Path = ($PSHOME.ToLower().Replace('syswow64', 'sysnative'))
|
||||
ChildPath = 'powershell.exe'
|
||||
}
|
||||
$SysNativePowerShell = (Join-Path @paramJoinPath)
|
||||
|
||||
# Construct new ProcessStartInfo object to restart powershell.exe as a 64-bit process and re-run scipt
|
||||
$ProcessStartInfo = (New-Object -TypeName System.Diagnostics.ProcessStartInfo)
|
||||
$ProcessStartInfo.FileName = $SysNativePowerShell
|
||||
$ProcessStartInfo.Arguments = "-ExecutionPolicy Bypass -File ""$($PSCommandPath)"""
|
||||
$ProcessStartInfo.RedirectStandardOutput = $true
|
||||
$ProcessStartInfo.RedirectStandardError = $true
|
||||
$ProcessStartInfo.UseShellExecute = $false
|
||||
$ProcessStartInfo.WindowStyle = 'Hidden'
|
||||
$ProcessStartInfo.CreateNoWindow = $true
|
||||
|
||||
# Instatiate the new 64-bit process
|
||||
$Process = [Diagnostics.Process]::Start($ProcessStartInfo)
|
||||
|
||||
# Read standard error output to determine if the 64-bit script process somehow failed
|
||||
$ErrorOutput = $Process.StandardError.ReadToEnd()
|
||||
|
||||
if ($ErrorOutput)
|
||||
{
|
||||
Write-Error -Message $ErrorOutput
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
# Define the company registry root key
|
||||
$RegistryRootPath = "HKLM:\SOFTWARE\$($CompanyName)"
|
||||
|
||||
if (-not (Test-RegistryValue -Path $RegistryRootPath))
|
||||
{
|
||||
Write-LogEntry -Value 'Attempting to create registry root path for recovery password escrow results' -Severity 1
|
||||
|
||||
$paramNewItem = @{
|
||||
Path = $RegistryRootPath
|
||||
ItemType = 'Directory'
|
||||
Force = $true
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while creating registry root item '$($RegistryRootPath)'. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
|
||||
# Switch execution context depending on selected operational mode for the script as parameter input
|
||||
switch ($OperationalMode)
|
||||
{
|
||||
'Encrypt'
|
||||
{
|
||||
Write-LogEntry -Value "Current operational mode for script: $($OperationalMode)" -Severity 1
|
||||
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
# Check if TPM chip is currently owned, if not take ownership
|
||||
$paramGetWmiObject = @{
|
||||
Namespace = 'root\cimv2\Security\MicrosoftTPM'
|
||||
Class = 'Win32_TPM'
|
||||
}
|
||||
$TPMClass = (Get-WmiObject @paramGetWmiObject)
|
||||
$IsTPMOwned = $TPMClass.IsOwned().IsOwned
|
||||
|
||||
if ($IsTPMOwned -eq $false)
|
||||
{
|
||||
Write-LogEntry -Value "TPM chip is currently not owned, value from WMI class method 'IsOwned' was: $($IsTPMOwned)" -Severity 1
|
||||
|
||||
# Generate a random pass phrase to be used when taking ownership of TPM chip
|
||||
$NewPassPhrase = (New-Guid).Guid.Replace('-', '').SubString(0, 14)
|
||||
|
||||
# Construct owner auth encoded string
|
||||
$NewOwnerAuth = $TPMClass.ConvertToOwnerAuth($NewPassPhrase).OwnerAuth
|
||||
|
||||
# Attempt to take ownership of TPM chip
|
||||
$Invocation = $TPMClass.TakeOwnership($NewOwnerAuth)
|
||||
|
||||
if ($Invocation.ReturnValue -eq 0)
|
||||
{
|
||||
Write-LogEntry -Value 'TPM chip ownership was successfully taken' -Severity 1
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-LogEntry -Value "Failed to take ownership of TPM chip, return value from invocation: $($Invocation.ReturnValue)" -Severity 3
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-LogEntry -Value 'TPM chip is currently owned, will not attempt to take ownership' -Severity 1
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while taking ownership of TPM chip. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
# Retrieve the current encryption status of the operating system drive
|
||||
Write-LogEntry -Value 'Attempting to retrieve the current encryption status of the operating system drive' -Severity 1
|
||||
|
||||
$paramGetBitLockerVolume = @{
|
||||
MountPoint = $env:SystemRoot
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$BitLockerOSVolume = (Get-BitLockerVolume @paramGetBitLockerVolume)
|
||||
|
||||
if ($BitLockerOSVolume)
|
||||
{
|
||||
# Determine whether BitLocker is turned on or off
|
||||
if (($BitLockerOSVolume.VolumeStatus -like 'FullyDecrypted') -or ($BitLockerOSVolume.KeyProtector.Count -eq 0))
|
||||
{
|
||||
Write-LogEntry -Value "Current encryption status of the operating system drive was detected as: $($BitLockerOSVolume.VolumeStatus)" -Severity 1
|
||||
|
||||
try
|
||||
{
|
||||
# Enable BitLocker with TPM key protector
|
||||
Write-LogEntry -Value "Attempting to enable BitLocker protection with TPM key protector for mount point: $($env:SystemRoot)" -Severity 1
|
||||
|
||||
$paramEnableBitLocker = @{
|
||||
MountPoint = $BitLockerOSVolume.MountPoint
|
||||
TpmProtector = $true
|
||||
UsedSpaceOnly = $true
|
||||
EncryptionMethod = $EncryptionMethod
|
||||
SkipHardwareTest = $true
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Enable-BitLocker @paramEnableBitLocker)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while enabling BitLocker with TPM key protector for mount point '$($env:SystemRoot)'. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
# Enable BitLocker with recovery password key protector
|
||||
Write-LogEntry -Value "Attempting to enable BitLocker protection with recovery password key protector for mount point: $($env:SystemRoot)" -Severity 1
|
||||
|
||||
$paramEnableBitLocker = @{
|
||||
MountPoint = $BitLockerOSVolume.MountPoint
|
||||
RecoveryPasswordProtector = $true
|
||||
UsedSpaceOnly = $true
|
||||
EncryptionMethod = $EncryptionMethod
|
||||
SkipHardwareTest = $true
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Enable-BitLocker @paramEnableBitLocker)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while enabling BitLocker with recovery password key protector for mount point '$($env:SystemRoot)'. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
elseif (($BitLockerOSVolume.VolumeStatus -like 'FullyEncrypted') -or ($BitLockerOSVolume.VolumeStatus -like 'UsedSpaceOnly'))
|
||||
{
|
||||
Write-LogEntry -Value "Current encryption status of the operating system drive was detected as: $($BitLockerOSVolume.VolumeStatus)" -Severity 1
|
||||
Write-LogEntry -Value 'Validating that all desired key protectors are enabled' -Severity 1
|
||||
|
||||
# Validate that not only the TPM protector is enabled, add recovery password protector
|
||||
if ($BitLockerOSVolume.KeyProtector.Count -lt 2)
|
||||
{
|
||||
if ($BitLockerOSVolume.KeyProtector.KeyProtectorType -like 'Tpm')
|
||||
{
|
||||
Write-LogEntry -Value 'Recovery password key protector is not present' -Severity 1
|
||||
|
||||
try
|
||||
{
|
||||
# Enable BitLocker with TPM key protector
|
||||
Write-LogEntry -Value "Attempting to enable BitLocker protection with recovery password key protector for mount point: $($env:SystemRoot)" -Severity 1
|
||||
|
||||
$paramEnableBitLocker = @{
|
||||
MountPoint = $BitLockerOSVolume.MountPoint
|
||||
RecoveryPasswordProtector = $true
|
||||
UsedSpaceOnly = $true
|
||||
EncryptionMethod = $EncryptionMethod
|
||||
SkipHardwareTest = $true
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Enable-BitLocker @paramEnableBitLocker)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while enabling BitLocker with TPM key protector for mount point '$($env:SystemRoot)'. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
|
||||
if ($BitLockerOSVolume.KeyProtector.KeyProtectorType -like 'RecoveryPassword')
|
||||
{
|
||||
Write-LogEntry -Value 'TPM key protector is not present' -Severity 1
|
||||
|
||||
try
|
||||
{
|
||||
# Add BitLocker recovery password key protector
|
||||
Write-LogEntry -Value "Attempting to enable BitLocker protection with TPM key protector for mount point: $($env:SystemRoot)" -Severity 1
|
||||
|
||||
$paramEnableBitLocker = @{
|
||||
MountPoint = $BitLockerOSVolume.MountPoint
|
||||
TpmProtector = $true
|
||||
UsedSpaceOnly = $true
|
||||
EncryptionMethod = $EncryptionMethod
|
||||
SkipHardwareTest = $true
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Enable-BitLocker @paramEnableBitLocker)
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while enabling BitLocker with recovery password key protector for mount point '$($env:SystemRoot)'. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
# BitLocker is in wait state
|
||||
Invoke-Executable -FilePath 'manage-bde.exe' -Arguments "-On $($BitLockerOSVolume.MountPoint) -UsedSpaceOnly"
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-LogEntry -Value "Current encryption status of the operating system drive was detected as: $($BitLockerOSVolume.VolumeStatus)" -Severity 1
|
||||
}
|
||||
|
||||
# Validate that previous configuration was successful and all key protectors have been enabled and encryption is on
|
||||
$paramGetBitLockerVolume = @{
|
||||
MountPoint = $env:SystemRoot
|
||||
}
|
||||
$BitLockerOSVolume = (Get-BitLockerVolume @paramGetBitLockerVolume)
|
||||
|
||||
# Wait for encryption to complete
|
||||
if ($BitLockerOSVolume.VolumeStatus -like 'EncryptionInProgress')
|
||||
{
|
||||
do
|
||||
{
|
||||
$paramGetBitLockerVolume = @{
|
||||
MountPoint = $env:SystemRoot
|
||||
}
|
||||
$BitLockerOSVolume = (Get-BitLockerVolume @paramGetBitLockerVolume)
|
||||
|
||||
Write-LogEntry -Value "Current encryption percentage progress: $($BitLockerOSVolume.EncryptionPercentage)" -Severity 1
|
||||
Write-LogEntry -Value 'Waiting for BitLocker encryption progress to complete, sleeping for 15 seconds' -Severity 1
|
||||
|
||||
Start-Sleep -Seconds 15
|
||||
}
|
||||
until ($BitLockerOSVolume.EncryptionPercentage -eq 100)
|
||||
|
||||
Write-LogEntry -Value 'Encryption of operating system drive has now completed' -Severity 1
|
||||
}
|
||||
|
||||
if (($BitLockerOSVolume.VolumeStatus -like 'FullyEncrypted') -and ($BitLockerOSVolume.KeyProtector.Count -eq 2))
|
||||
{
|
||||
try
|
||||
{
|
||||
# Attempt to backup recovery password to Azure AD device object
|
||||
Write-LogEntry -Value 'Attempting to backup recovery password to Azure AD device object' -Severity 1
|
||||
|
||||
$RecoveryPasswordKeyProtector = $BitLockerOSVolume.KeyProtector | Where-Object {
|
||||
$_.KeyProtectorType -like 'RecoveryPassword'
|
||||
}
|
||||
|
||||
if ($RecoveryPasswordKeyProtector)
|
||||
{
|
||||
$paramBackupToAADBitLockerKeyProtector = @{
|
||||
MountPoint = $BitLockerOSVolume.MountPoint
|
||||
KeyProtectorId = $RecoveryPasswordKeyProtector.KeyProtectorId
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (BackupToAAD-BitLockerKeyProtector @paramBackupToAADBitLockerKeyProtector)
|
||||
|
||||
Write-LogEntry -Value 'Successfully backed up recovery password details' -Severity 1
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-LogEntry -Value 'Unable to determine proper recovery password key protector for backing up of recovery password details' -Severity 2
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while attempting to backup recovery password to Azure AD. Error message: $($_.Exception.Message)" -Severity 3
|
||||
|
||||
# Copy executing script to system temporary directory
|
||||
Write-LogEntry -Value 'Attempting to copy executing script to system temporary directory' -Severity 1
|
||||
|
||||
$paramJoinPath = @{
|
||||
Path = $env:SystemRoot
|
||||
ChildPath = 'Temp'
|
||||
}
|
||||
$SystemTemp = (Join-Path @paramJoinPath)
|
||||
|
||||
$paramTestPath = @{
|
||||
Path = (Join-Path -Path $SystemTemp -ChildPath "$($MyInvocation.MyCommand.Name)")
|
||||
PathType = 'Leaf'
|
||||
}
|
||||
if (-not (Test-Path @paramTestPath))
|
||||
{
|
||||
try
|
||||
{
|
||||
# Copy executing script
|
||||
Write-LogEntry -Value 'Copying executing script to staging folder for scheduled task usage' -Severity 1
|
||||
|
||||
$paramCopyItem = @{
|
||||
Path = $MyInvocation.MyCommand.Definition
|
||||
Destination = $SystemTemp
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Copy-Item @paramCopyItem)
|
||||
|
||||
try
|
||||
{
|
||||
# Create escrow scheduled task to backup recovery password to Azure AD at a later time
|
||||
$paramNewScheduledTaskAction = @{
|
||||
Execute = 'powershell.exe'
|
||||
Argument = "-ExecutionPolicy Bypass -NoProfile -File $($SystemTemp)\$($MyInvocation.MyCommand.Name) -OperationalMode Backup"
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$TaskAction = (New-ScheduledTaskAction @paramNewScheduledTaskAction)
|
||||
|
||||
$paramNewScheduledTaskTrigger = @{
|
||||
AtLogOn = $true
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$TaskTrigger = (New-ScheduledTaskTrigger @paramNewScheduledTaskTrigger)
|
||||
|
||||
$paramNewScheduledTaskSettingsSet = @{
|
||||
AllowStartIfOnBatteries = $true
|
||||
Hidden = $true
|
||||
DontStopIfGoingOnBatteries = $true
|
||||
Compatibility = 'Win8'
|
||||
RunOnlyIfNetworkAvailable = $true
|
||||
MultipleInstances = 'IgnoreNew'
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$TaskSettings = (New-ScheduledTaskSettingsSet @paramNewScheduledTaskSettingsSet)
|
||||
|
||||
$paramNewScheduledTaskPrincipal = @{
|
||||
UserId = 'NT AUTHORITY\SYSTEM'
|
||||
LogonType = 'ServiceAccount'
|
||||
RunLevel = 'Highest'
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$TaskPrincipal = (New-ScheduledTaskPrincipal @paramNewScheduledTaskPrincipal)
|
||||
|
||||
$paramNewScheduledTask = @{
|
||||
Action = $TaskAction
|
||||
Principal = $TaskPrincipal
|
||||
Settings = $TaskSettings
|
||||
Trigger = $TaskTrigger
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$ScheduledTask = (New-ScheduledTask @paramNewScheduledTask)
|
||||
|
||||
$paramRegisterScheduledTask = @{
|
||||
InputObject = $ScheduledTask
|
||||
TaskName = 'Backup BitLocker Recovery Password to Azure AD'
|
||||
TaskPath = '\Microsoft'
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Register-ScheduledTask @paramRegisterScheduledTask)
|
||||
|
||||
try
|
||||
{
|
||||
# Attempt to create BitLocker recovery password escrow registry value
|
||||
$paramTestRegistryValue = @{
|
||||
Path = $RegistryRootPath
|
||||
Name = 'BitLockerEscrowResult'
|
||||
}
|
||||
if (-not (Test-RegistryValue @paramTestRegistryValue))
|
||||
{
|
||||
Write-LogEntry -Value "Setting initial 'BitLockerEscrowResult' registry value to: None" -Severity 1
|
||||
|
||||
$paramSetRegistryValue = @{
|
||||
Path = $RegistryRootPath
|
||||
Name = 'BitLockerEscrowResult'
|
||||
Value = 'None'
|
||||
}
|
||||
$null = (Set-RegistryValue @paramSetRegistryValue)
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "Unable to register scheduled task for backup of recovery password. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "Unable to register scheduled task for backup of recovery password. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "Unable to stage script in system temporary directory for scheduled task. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-LogEntry -Value 'Validation of current encryption status for operating system drive was not successful' -Severity 2
|
||||
Write-LogEntry -Value "Current volume status for mount point '$($BitLockerOSVolume.MountPoint)': $($BitLockerOSVolume.VolumeStatus)" -Severity 2
|
||||
Write-LogEntry -Value "Count of enabled key protectors for volume: $($BitLockerOSVolume.KeyProtector.Count)" -Severity 2
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-LogEntry -Value 'Current encryption status query returned an empty result, this was not expected at this point' -Severity 2
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while retrieving the current encryption status of operating system drive. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while importing the BitLocker module. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
'Backup'
|
||||
{
|
||||
Write-LogEntry -Value "Current operational mode for script: $($OperationalMode)" -Severity 1
|
||||
|
||||
# Retrieve the current encryption status of the operating system drive
|
||||
$paramGetBitLockerVolume = @{
|
||||
MountPoint = $env:SystemRoot
|
||||
}
|
||||
$BitLockerOSVolume = (Get-BitLockerVolume @paramGetBitLockerVolume)
|
||||
|
||||
# Attempt to backup recovery password to Azure AD device object if volume is encrypted
|
||||
if (($BitLockerOSVolume.VolumeStatus -like 'FullyEncrypted') -and ($BitLockerOSVolume.KeyProtector.Count -eq 2))
|
||||
{
|
||||
try
|
||||
{
|
||||
$paramGetItemPropertyValue = @{
|
||||
Path = $RegistryRootPath
|
||||
Name = 'BitLockerEscrowResult'
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$BitLockerEscrowResultsValue = (Get-ItemPropertyValue @paramGetItemPropertyValue)
|
||||
|
||||
if ($BitLockerEscrowResultsValue -match 'None|False')
|
||||
{
|
||||
try
|
||||
{
|
||||
Write-LogEntry -Value 'Attempting to backup recovery password to Azure AD device object' -Severity 1
|
||||
|
||||
$RecoveryPasswordKeyProtector = $BitLockerOSVolume.KeyProtector | Where-Object {
|
||||
$_.KeyProtectorType -like 'RecoveryPassword'
|
||||
}
|
||||
|
||||
if ($RecoveryPasswordKeyProtector)
|
||||
{
|
||||
$paramBackupToAADBitLockerKeyProtector = @{
|
||||
MountPoint = $BitLockerOSVolume.MountPoint
|
||||
KeyProtectorId = $RecoveryPasswordKeyProtector.KeyProtectorId
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (BackupToAAD-BitLockerKeyProtector @paramBackupToAADBitLockerKeyProtector)
|
||||
|
||||
$paramSetRegistryValue = @{
|
||||
Path = $RegistryRootPath
|
||||
Name = 'BitLockerEscrowResult'
|
||||
Value = 'True'
|
||||
}
|
||||
$null = (Set-RegistryValue @paramSetRegistryValue)
|
||||
|
||||
Write-LogEntry -Value 'Successfully backed up recovery password details' -Severity 1
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-LogEntry -Value 'Unable to determine proper recovery password key protector for backing up of recovery password details' -Severity 2
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while attempting to backup recovery password to Azure AD. Error message: $($_.Exception.Message)" -Severity 3
|
||||
|
||||
$paramSetRegistryValue = @{
|
||||
Path = $RegistryRootPath
|
||||
Name = 'BitLockerEscrowResult'
|
||||
Value = 'False'
|
||||
}
|
||||
$null = (Set-RegistryValue @paramSetRegistryValue)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-LogEntry -Value "Value for 'BitLockerEscrowResults' was '$($BitLockerEscrowResultsValue)', will not attempt to backup recovery password once more" -Severity 1
|
||||
|
||||
try
|
||||
{
|
||||
# Disable scheduled task
|
||||
$paramGetScheduledTask = @{
|
||||
TaskName = 'Backup BitLocker Recovery Password to Azure AD'
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$ScheduledTask = (Get-ScheduledTask @paramGetScheduledTask)
|
||||
|
||||
$paramDisableScheduledTask = @{
|
||||
InputObject = $ScheduledTask
|
||||
ErrorAction = $STP
|
||||
}
|
||||
$null = (Disable-ScheduledTask @paramDisableScheduledTask)
|
||||
|
||||
Write-LogEntry -Value "Successfully disabled scheduled task named 'Backup BitLocker Recovery Password to Azure AD'" -Severity 1
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while disabling scheduled task to backup recovery password. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-LogEntry -Value "An error occurred while reading 'BitLockerEscrowResults' registry value. Error message: $($_.Exception.Message)" -Severity 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end
|
||||
{
|
||||
if (Get-Command -Name 'Set-MpPreference' -ErrorAction $SCT)
|
||||
{
|
||||
$null = (Set-MpPreference -EnableControlledFolderAccess Enabled -Force -ErrorAction $SCT)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,271 @@
|
||||
#requires -Version 3.0 -RunAsAdministrator
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Enable DNS-over-HTTPS (DoH) if device is not domain-joined
|
||||
|
||||
.DESCRIPTION
|
||||
Enable DNS-over-HTTPS (DoH) if device is not domain-joined
|
||||
|
||||
It enables the Cloudflare DNS Servers, even if DoH is not working yet.
|
||||
|
||||
IPv6 Support is optional.
|
||||
|
||||
.PARAMETER IPv6
|
||||
Enable IPv6 Support, IPv6 Servers will be added to the server list
|
||||
|
||||
.EXAMPLE
|
||||
PS C:\> .\Enable-DNSOverHTTPS.ps1
|
||||
|
||||
Enable DNS-over-HTTPS (DoH) if device is not domain-joined for IPv4 only
|
||||
|
||||
.EXAMPLE
|
||||
PS C:\> .\Enable-DNSOverHTTPS.ps1 -IPv6
|
||||
|
||||
Enable DNS-over-HTTPS (DoH) if device is not domain-joined for IPv4 and IPv6
|
||||
|
||||
.NOTES
|
||||
Only the Insider Build of Windows 10 supports DoH!
|
||||
But we configure it anyway!
|
||||
|
||||
The Cloudflare servers are used for regular DNS resolution and as soon as DoH is supported,
|
||||
we can configure and use it anyway.
|
||||
|
||||
A future version of this script might support additional parameters, like DohFlags
|
||||
|
||||
You can also change the servers below to any service you like, e.g. Google DNS or Quad9 from IBM.
|
||||
|
||||
The Bool as return was requested by a customer, and the exit code (0 or 1) is implemented for our bootstrap setup
|
||||
|
||||
.LINK
|
||||
https://1.1.1.1/dns/
|
||||
|
||||
.LINK
|
||||
https://techcommunity.microsoft.com/t5/networking-blog/windows-insiders-can-now-test-dns-over-https/ba-p/1381282
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'None')]
|
||||
[OutputType([bool])]
|
||||
param
|
||||
(
|
||||
[Parameter(ValueFromPipeline,
|
||||
ValueFromPipelineByPropertyName)]
|
||||
[Alias('IP6', '6')]
|
||||
[switch]
|
||||
$IPv6
|
||||
)
|
||||
|
||||
begin
|
||||
{
|
||||
#region Defaults
|
||||
$SCT = 'SilentlyContinue'
|
||||
$STP = 'Stop'
|
||||
$CNT = 'Continue'
|
||||
|
||||
# Save the infos from the switches
|
||||
if (($PSCmdlet.MyInvocation.BoundParameters['Verbose']).IsPresent)
|
||||
{
|
||||
$IsVerbose = $true
|
||||
}
|
||||
else
|
||||
{
|
||||
$IsVerbose = $false
|
||||
}
|
||||
|
||||
if (($PSCmdlet.MyInvocation.BoundParameters['Debug']).IsPresent)
|
||||
{
|
||||
$IsDebug = $true
|
||||
}
|
||||
else
|
||||
{
|
||||
$IsDebug = $false
|
||||
}
|
||||
|
||||
if (($PSCmdlet.MyInvocation.BoundParameters['WhatIf']).IsPresent)
|
||||
{
|
||||
$IsWhatIf = $true
|
||||
}
|
||||
else
|
||||
{
|
||||
$IsWhatIf = $false
|
||||
}
|
||||
#endregion Defaults
|
||||
|
||||
#region ServerAddresses
|
||||
# Create an Empty Object
|
||||
$ServerAddresses = @()
|
||||
|
||||
# IPv4 DNS Servers to use
|
||||
$ServerAddressesIPv4 = @(
|
||||
'1.1.1.1'
|
||||
'1.0.0.1'
|
||||
)
|
||||
|
||||
# Add the IPv4 Servers to the Object
|
||||
$ServerAddresses += $ServerAddressesIPv4
|
||||
|
||||
if ((($PSCmdlet.MyInvocation.BoundParameters['IPv6']).IsPresent) -eq $true)
|
||||
{
|
||||
Write-Verbose -Message 'IPv6 Servers will be added to the serverlist'
|
||||
# IPv6 DNS Servers to use
|
||||
$ServerAddressesIPv6 = @(
|
||||
'2606:4700:4700::1111'
|
||||
'2606:4700:4700::1001'
|
||||
)
|
||||
|
||||
# Add the IPv6 Servers to the Object
|
||||
$ServerAddresses += $ServerAddressesIPv6
|
||||
}
|
||||
#endregion ServerAddresses
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
#region DoH
|
||||
# Enable DNS-over-HTTPS for IPv4 if device is not domain-joined
|
||||
$paramGetCimInstance = @{
|
||||
ClassName = 'CIM_ComputerSystem'
|
||||
Verbose = $IsVerbose
|
||||
Debug = $IsDebug
|
||||
ErrorAction = $STP
|
||||
}
|
||||
if (((Get-CimInstance @paramGetCimInstance).PartOfDomain) -eq $false)
|
||||
{
|
||||
try
|
||||
{
|
||||
# Temporarily key
|
||||
$paramNewItemProperty = @{
|
||||
Path = 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters'
|
||||
Name = 'EnableAutoDoh'
|
||||
Value = 2
|
||||
PropertyType = 'DWord'
|
||||
Force = $true
|
||||
WhatIf = $IsWhatIf
|
||||
Verbose = $IsVerbose
|
||||
Debug = $IsDebug
|
||||
ErrorAction = $CNT
|
||||
}
|
||||
$null = (New-ItemProperty @paramNewItemProperty)
|
||||
|
||||
$paramGetNetAdapter = @{
|
||||
Verbose = $IsVerbose
|
||||
Debug = $IsDebug
|
||||
Physical = $true
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$MACAddress = ((Get-NetAdapter @paramGetNetAdapter).MacAddress)
|
||||
|
||||
$paramGetNetIPConfiguration = @{
|
||||
Verbose = $IsVerbose
|
||||
Debug = $IsDebug
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$IpConfig = (Get-NetIPConfiguration @paramGetNetIPConfiguration | Where-Object -FilterScript {
|
||||
$MACAddress -eq $_.NetAdapter.MacAddress
|
||||
})
|
||||
|
||||
$paramSetDnsClientServerAddress = @{
|
||||
ServerAddresses = $ServerAddresses
|
||||
Verbose = $IsVerbose
|
||||
Debug = $IsDebug
|
||||
ErrorAction = $CNT
|
||||
}
|
||||
$null = ($IpConfig | Set-DnsClientServerAddress @paramSetDnsClientServerAddress)
|
||||
|
||||
$paramClearDnsClientCache = @{
|
||||
Verbose = $IsVerbose
|
||||
Debug = $IsDebug
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Clear-DnsClientCache @paramClearDnsClientCache)
|
||||
|
||||
$paramRegisterDnsClient = @{
|
||||
Verbose = $IsVerbose
|
||||
Debug = $IsDebug
|
||||
ErrorAction = $SCT
|
||||
}
|
||||
$null = (Register-DnsClient @paramRegisterDnsClient)
|
||||
}
|
||||
catch
|
||||
{
|
||||
# Get error record
|
||||
[Management.Automation.ErrorRecord]$e = $_
|
||||
|
||||
# retrieve information about runtime error
|
||||
$info = [PSCustomObject]@{
|
||||
Exception = $e.Exception.Message
|
||||
Reason = $e.CategoryInfo.Reason
|
||||
Target = $e.CategoryInfo.TargetName
|
||||
Script = $e.InvocationInfo.ScriptName
|
||||
Line = $e.InvocationInfo.ScriptLineNumber
|
||||
Column = $e.InvocationInfo.OffsetInLine
|
||||
}
|
||||
|
||||
# output information. Post-process collected info, and log info (optional)
|
||||
$info | Out-String | Write-Verbose
|
||||
|
||||
$paramWriteError = @{
|
||||
Message = $e.Exception.Message
|
||||
ErrorAction = $CNT
|
||||
Exception = $e.Exception
|
||||
TargetObject = $e.CategoryInfo.TargetName
|
||||
}
|
||||
Write-Error @paramWriteError
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$paramWriteError = @{
|
||||
Message = 'Sorry, this computer seems to be part of a Active Directory domain!'
|
||||
Exception = 'Active Directory Domain Members are not supported'
|
||||
Category = 'NotEnabled'
|
||||
TargetObject = $env:COMPUTERNAME
|
||||
ErrorAction = $CNT
|
||||
}
|
||||
Write-Error @paramWriteError
|
||||
|
||||
# Return the Bool
|
||||
Write-Output -InputObject $false
|
||||
|
||||
# Unclean exit
|
||||
exit 1
|
||||
}
|
||||
#endregion DoH
|
||||
}
|
||||
|
||||
end
|
||||
{
|
||||
# Return the Bool
|
||||
Write-Output -InputObject $true
|
||||
|
||||
# Clean exit
|
||||
exit 0
|
||||
}
|
||||
|
||||
#region LICENSE
|
||||
<#
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, enabling Technology
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#>
|
||||
#endregion LICENSE
|
||||
|
||||
#region DISCLAIMER
|
||||
<#
|
||||
DISCLAIMER:
|
||||
- Use at your own risk, etc.
|
||||
- This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty in any kind
|
||||
- This is a third-party Software
|
||||
- The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its subsidiaries in any way
|
||||
- The Software is not supported by Microsoft Corp (MSFT)
|
||||
- By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
- If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
#>
|
||||
#endregion DISCLAIMER
|
||||
@@ -0,0 +1,111 @@
|
||||
#requires -Version 1.0
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Configure and enhance Endpoint Manager (Intune) Agent logging
|
||||
|
||||
.DESCRIPTION
|
||||
Configure and enhance Endpoint Manager (Intune) Agent logging
|
||||
|
||||
.NOTES
|
||||
Version 1.0.0
|
||||
|
||||
.LINK
|
||||
http://enatec.io
|
||||
#>
|
||||
[CmdletBinding(ConfirmImpact = 'Low')]
|
||||
param ()
|
||||
|
||||
begin
|
||||
{
|
||||
Write-Output -InputObject 'Configure and enhance Endpont Manager (Intune) Agent logging'
|
||||
|
||||
#region Defaults
|
||||
$SCT = 'SilentlyContinue'
|
||||
#endregion Defaults
|
||||
|
||||
#region Variables
|
||||
# Cleanup
|
||||
$logMaxSize = $null
|
||||
|
||||
# Size in MB
|
||||
$logMaxSize = 4
|
||||
|
||||
# Logic From MB to Bytes
|
||||
$logMaxSize = ($logMaxSize * 1024 * 1024)
|
||||
|
||||
# Define log files to keep
|
||||
$logMaxHistory = 4
|
||||
|
||||
# Main Registry Path
|
||||
$regKeyFullPath = 'HKLM:\SOFTWARE\Microsoft\IntuneWindowsAgent\Logging'
|
||||
#endregion Variables
|
||||
}
|
||||
|
||||
process
|
||||
{
|
||||
# Create the registry key path for the Endpont Manager (Intune) agent
|
||||
$paramNewItem = @{
|
||||
Path = $regKeyFullPath
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (New-Item @paramNewItem)
|
||||
|
||||
# Set value to define new size instead of the default 2 MB
|
||||
$paramSetItemProperty = @{
|
||||
Path = $regKeyFullPath
|
||||
Name = 'LogMaxSize'
|
||||
Value = $logMaxSize
|
||||
Type = 'String'
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (Set-ItemProperty @paramSetItemProperty)
|
||||
|
||||
# Set value to define new amount of logfiles to keep
|
||||
$paramSetItemProperty = @{
|
||||
Path = $regKeyFullPath
|
||||
Name = 'LogMaxHistory'
|
||||
Value = $logMaxHistory
|
||||
Type = 'String'
|
||||
Force = $true
|
||||
Confirm = $false
|
||||
ErrorAction = $SCT
|
||||
WarningAction = $SCT
|
||||
}
|
||||
$null = (Set-ItemProperty @paramSetItemProperty)
|
||||
}
|
||||
|
||||
#region LICENSE
|
||||
<#
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2021, enabling Technology
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#>
|
||||
#endregion LICENSE
|
||||
|
||||
#region DISCLAIMER
|
||||
<#
|
||||
DISCLAIMER:
|
||||
- Use at your own risk, etc.
|
||||
- This is open-source software, if you find an issue try to fix it yourself. There is no support and/or warranty in any kind
|
||||
- This is a third-party Software
|
||||
- The developer of this Software is NOT sponsored by or affiliated with Microsoft Corp (MSFT) or any of its subsidiaries in any way
|
||||
- The Software is not supported by Microsoft Corp (MSFT)
|
||||
- By using the Software, you agree to the License, Terms, and any Conditions declared and described above
|
||||
- If you disagree with any of the Terms, and any Conditions declared: Just delete it and build your own solution
|
||||
#>
|
||||
#endregion DISCLAIMER
|
||||