1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# Install Chocolatey (if not already installed) if (!(Test-Path -Path $env:ProgramData\chocolatey)) { Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) } # Install Telegram choco install telegram -y # Install Chrome browser choco install googlechrome -y # Install VLC choco install vlc -y # Install Firefox choco install firefox -y # Install 7-Zip choco install 7zip -y # Set Firefox policies #$FirefoxProfilePath = Get-Item -Path "$env:APPDATA\Mozilla\Firefox\Profiles\*.default" #$FirefoxPrefsFile = Join-Path $FirefoxProfilePath.FullName "user.js" #UnPin All Apps From TaskBar Remove-Item -Path "$env:APPDATA\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*" -Force -Recurse -ErrorAction SilentlyContinue Remove-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -Force -Recurse -ErrorAction SilentlyContinue Stop-Process -ProcessName explorer -Force Start-Process explorer #unpin Chat Icons #color for chrome #ThemeURL = "https://chromewebstore.google.com/detail/red-black/lkdalccnojhegeedgifgmlcggigcgegh?hl=en" Write-Host "Installation and customization completed. The Photopea shortcut is created on the desktop." |
1 2 |
Get-ComputerInfo | Select-Object -ExpandProperty CsName Rename-Computer -NewName "NewHostname" -Restart |
1 |
Rename-LocalUser -Name "OldUser" -NewName "NewUser" |