Compare commits

4 Commits

Author SHA1 Message Date
Bram Prieshof
da6821a95f Package listrenamed XNConvert 2022-10-26 14:46:02 +00:00
a3da939025 Added auto Prepend for systemname and removed enableing/disableing WU
Now prepending 'PC' to the given input (assetID), since windows refuses system name only consisting of numbers.
Removed setting status of Windows updates services since this did not work,
this feature was meant to pause WU until the system was activated, to prevent the network form being overloaded
2022-06-10 14:12:15 +02:00
Bram Prieshof
0169acc9b3 Update 'DeployTools/Deploy-FirstBoot.ps1' 2022-03-31 13:27:48 +00:00
Bram Prieshof
e2b1c6b665 Updated Packagelist 2022-03-25 13:46:04 +00:00
2 changed files with 3 additions and 9 deletions

View File

@@ -16,16 +16,13 @@ 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..."
$ta = Get-CimInstance -ClassName SoftwareLicensingProduct -Filter "PartialProductKey IS NOT NULL" | Where-Object -Property Name -Like "Windows*"
if ($ta.LicenseStatus -eq 1) {Write-Output "Activation [OK]"} else {Write-Output "Activation [Error, Opening settings]";Start-Process "ms-settings:activation"; pause }
Write-Output "Getting System name"
$sysid = Read-Host -Prompt 'Please enter system ID (example: DT001)'
Rename-Computer -NewName $sysid
$sysid = Read-Host -Prompt 'Please enter asset ID:'
Rename-Computer -NewName "PC$sysid"
Write-Output "System name [OK]"
#Chocolaty software updates
@@ -38,9 +35,6 @@ if ( $confirmSupdates -eq 'y'){
$confirmWupdates = Read-Host "Run Windows updates? (y/n)"
if ( $confirmWupdates -eq 'y'){
#Enable Windows updates service
Set-Service -Name "wuauserv" -Status Stopped -StartupType Manual
Write-Output "Checking Windows updates"
Import-Module PSWindowsUpdate
Get-WUInstall -MicrosoftUpdate -AcceptAll -IgnoreReboot -IgnoreRebootRequired -Install

View File

@@ -1 +1 @@
7zip;caesium.install;firefox;gimp;handbrake;inkscape;libreoffice-fresh;notepadplusplus;paint.net;pdfsam.install;pnggauntlet.install;vlc;vscode.install;xnconvert.install;googlechrome;pswindowsupdate;git;filezilla;mobaxterm
7zip;caesium.install;firefox;gimp;inkscape;libreoffice-fresh;notepadplusplus;paint.net;pnggauntlet.install;vlc;vscode.install;xnconvert;googlechrome;pswindowsupdate;git;filezilla;mobaxterm;krita