Skip to content

Commit 9c84de1

Browse files
authored
Gist Cleaning Up
1 parent a93fb97 commit 9c84de1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

demos/GistScript.ps1

+13-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ $Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a r
3434
#--- Basic setup ---
3535
Update-ExecutionPolicy -Policy RemoteSigned
3636
Disable-UAC
37-
Enable-RemoteDesktop
3837
choco feature enable -n=allowGlobalConfirmation
3938
$ConfirmPreference = "None" #ensure installing powershell modules don't prompt on needed dependencies
4039

@@ -939,6 +938,19 @@ Disable-WindowsOptionalFeature -Online -FeatureName "WindowsMediaPlayer" -NoRest
939938
# See also:
940939
# https://learn.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update
941940

941+
RefreshEnv
942+
942943
#############################################
943944
# Clean Up
944945
#############################################
946+
947+
## set desktop wallpaper
948+
#Invoke-WebRequest -Uri 'http://chocolateyfest.com/wp-content/uploads/2018/05/img-bg-front-page-header-NO_logo-opt.jpg' -Method Get -ContentType image/jpeg -OutFile 'C:\github\chocofest.jpg'
949+
#Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value 'C:\github\chocofest.jpg'
950+
#rundll32.exe user32.dll, UpdatePerUserSystemParameters
951+
#RefreshEnv
952+
953+
Write-Host "Cleaning Up..." -ForegroundColor "Yellow"
954+
Enable-UAC
955+
Enable-MicrosoftUpdate
956+
Install-WindowsUpdate -acceptEula

0 commit comments

Comments
 (0)