Fixed install and deploy tools
This commit is contained in:
@@ -16,6 +16,9 @@ if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Disable Windows updates service
|
||||||
|
Set-Service -Name "wuauserv" -Status Stopped -StartupType Disabled
|
||||||
|
|
||||||
Write-Output "Checking activation status..."
|
Write-Output "Checking activation status..."
|
||||||
$ta = Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "PartialProductKey IS NOT NULL" | Where-Object -Property Name -Like "Windows*"
|
$ta = Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "PartialProductKey IS NOT NULL" | Where-Object -Property Name -Like "Windows*"
|
||||||
if ($ta.LicenseStatus -eq 1) {Write-Outpute-Output "Activation [OK]"} else {Write-Output "Activation [Error, Opening settings]";Start-Process "ms-settings:activation"; pause }
|
if ($ta.LicenseStatus -eq 1) {Write-Outpute-Output "Activation [OK]"} else {Write-Output "Activation [Error, Opening settings]";Start-Process "ms-settings:activation"; pause }
|
||||||
@@ -30,6 +33,9 @@ Write-Output "Checking Chocolatey package updates"
|
|||||||
choco upgrade -y all
|
choco upgrade -y all
|
||||||
Write-Output " Chocolatey updates [OK]"
|
Write-Output " Chocolatey updates [OK]"
|
||||||
|
|
||||||
|
#Enable Windows updates service
|
||||||
|
Set-Service -Name "wuauserv" -Status Stopped -StartupType Manual
|
||||||
|
|
||||||
Write-Output "Checking Windows updates"
|
Write-Output "Checking Windows updates"
|
||||||
Import-Module PSWindowsUpdate
|
Import-Module PSWindowsUpdate
|
||||||
Get-WUInstall -MicrosoftUpdate -AcceptAll -IgnoreReboot -IgnoreRebootRequired -Install
|
Get-WUInstall -MicrosoftUpdate -AcceptAll -IgnoreReboot -IgnoreRebootRequired -Install
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
7zip bulk-crap-uninstaller caesium.install firefox gimp handbrake inkscape libreoffice-fresh notepadplusplus paint.net pdfsam.install pnggauntlet.install vlc vscode.install xnconvert.install choco install googlechrome pswindowsupdate git
|
7zip;caesium.install;firefox;gimp;handbrake;inkscape;libreoffice-fresh;notepadplusplus;paint.net;pdfsam.install;pnggauntlet.install;vlc;vscode.install;xnconvert.install;googlechrome;pswindowsupdate;git
|
||||||
@@ -9,7 +9,7 @@ REM # @author: Bram Prieshof #
|
|||||||
REM ###################################################
|
REM ###################################################
|
||||||
|
|
||||||
PowerShell.exe "Invoke-WebRequest -UseBasicParsing -Uri https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe -OutFile C:\SysTools\InstallTools\OOSU10.exe; Invoke-WebRequest -UseBasicParsing -Uri https://dl5.oo-software.com/files/ooappbuster/OOAPB.exe -OutFile C:\SysTools\InstallTools\OOAPB.exe.exe"
|
PowerShell.exe "Invoke-WebRequest -UseBasicParsing -Uri https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe -OutFile C:\SysTools\InstallTools\OOSU10.exe; Invoke-WebRequest -UseBasicParsing -Uri https://dl5.oo-software.com/files/ooappbuster/OOAPB.exe -OutFile C:\SysTools\InstallTools\OOAPB.exe.exe"
|
||||||
echo Downlaod [OK]
|
echo Download [OK]
|
||||||
pause
|
pause
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ NET SESSION >nul 2>&1
|
|||||||
IF %ERRORLEVEL% EQU 0 (
|
IF %ERRORLEVEL% EQU 0 (
|
||||||
echo Install packages listed in Choco-PKGS.list
|
echo Install packages listed in Choco-PKGS.list
|
||||||
pause
|
pause
|
||||||
PowerShell.exe "$content = [IO.File]::ReadAllText("C:\SysTools\InstallTools\Choco-PKGS.list"); choco install $content -y"
|
PowerShell.exe "$content = [IO.File]::ReadAllText('C:\SysTools\InstallTools\Choco-PKGS.list'); choco install $content -y"
|
||||||
echo Chocolatey installed
|
echo Chocolatey installed
|
||||||
pasue
|
pause
|
||||||
) ELSE (
|
) ELSE (
|
||||||
echo Please run this script as administrator
|
echo Please run this script as administrator
|
||||||
pause
|
pause
|
||||||
|
|||||||
14
InstallTools/unblock-Tools.cmd
Normal file
14
InstallTools/unblock-Tools.cmd
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
REM ###############################################################
|
||||||
|
REM # @description: #
|
||||||
|
REM # Unblocks all files from this repo so SmartScreen is happy #
|
||||||
|
REM # #
|
||||||
|
REM # @project: IMGSystTools #
|
||||||
|
REM # @author: Bram Prieshof #
|
||||||
|
REM ###############################################################
|
||||||
|
|
||||||
|
PowerShell.exe "dir -Path 'C:\SysTools' -Recurse | Unblock-File"
|
||||||
|
|
||||||
|
echo Unblock [OK]
|
||||||
|
pause
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
# SysTools
|
# SysTools
|
||||||
## Tools and scripts used for system image creation, maintainance and deployment
|
## Tools and scripts used for system image creation, maintainance and deployment
|
||||||
|
|
||||||
Files expected in of C:\SysTools
|
Files expected in of C:\SysTools
|
||||||
|
First run InstallTools\Unblock-Tools.cmd to allow the scripts to run without trippig SmartScreen
|
||||||
Reference in New Issue
Block a user