SET NETWORK AS PRIVATE (WIN-10) - POWERSHELL # === Set Network Category to Private === $networkName = "YourNetworkName" # <-- Replace with your actual network name # Check current profile $profile = Get-NetConnectionProfile | Where-Object { $_.Name -eq $networkName } if ($profile) { Set-NetConnectionProfile -Name $networkName -NetworkCategory Private Write-Host "Network '$networkName' has been set to Private." -ForegroundColor Green } else { Write-Host "Network '$networkName' not found. Check the name and try again." -ForegroundColor Red } ====================================================================================================== ====================================================================================================== POWERSHELL - DJ Group LLC # === SECTION 1: UNINSTALL ONEDRIVE, CHECK + INSTALL CHROME, CLEAN STARTUP === Write-Host "Uninstalling OneDrive..." -ForegroundColor Yellow Stop-Process -Name OneDrive -ErrorAction SilentlyContinue Start-Sleep -Seconds 2 if ([Environment]::Is64BitOperatingSystem) { & "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" /uninstall } else { & "$env:SystemRoot\System32\OneDriveSetup.exe" /uninstall } Remove-Item "$env:UserProfile\OneDrive","$env:LocalAppData\Microsoft\OneDrive","$env:ProgramData\Microsoft OneDrive" -Recurse -Force -ErrorAction SilentlyContinue # === CHECK IF CHROME INSTALLED, IF NOT, INSTALL === $chromePath = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome" -ErrorAction SilentlyContinue if ($null -eq $chromePath) { Write-Host "Google Chrome not found. Installing..." -ForegroundColor Yellow $chromeInstaller = "$env:TEMP\ChromeSetup.exe" Invoke-WebRequest "https://dl.google.com/chrome/install/latest/chrome_installer.exe" -OutFile $chromeInstaller Start-Process $chromeInstaller -ArgumentList "/silent /install" -Wait Remove-Item $chromeInstaller -Force } else { Write-Host "āœ… Google Chrome already installed. Skipping download." -ForegroundColor Green } Write-Host "Disabling startup apps..." -ForegroundColor Yellow $keepList = @("Google Chrome", "chrome", "printer", "Print", "Spooler", "HP", "Brother", "Canon", "Epson") Get-CimInstance Win32_StartupCommand | ForEach-Object { if ($keepList -notcontains $_.Name) { Disable-ScheduledTask -TaskPath $_.Command -TaskName $_.Name -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name $_.Name -ErrorAction SilentlyContinue } } # === SECTION 2: POWER SETTINGS, UI TWEAKS, BACKGROUND APPS === powercfg -setactive SCHEME_MIN powercfg -change -monitor-timeout-ac 0 powercfg -change -standby-timeout-ac 0 powercfg -change -hibernate-timeout-ac 0 powercfg /setacvalueindex SCHEME_MIN SUB_BUTTONS PBUTTONACTION 0 powercfg /setacvalueindex SCHEME_MIN SUB_BUTTONS LIDACTION 0 Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Value ([byte[]](0x90,0x12,0x03,0x80,0x10,0x00,0x00,0x00)) Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Value 2 Set-ItemProperty -Path "HKCU:\Control Panel\Colors" -Name "Background" -Value "0 0 0" Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "Wallpaper" -Value "" RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters Get-AppxPackage | Where-Object {$_.Name -notlike "*store*"} | ForEach-Object { Stop-Process -Name $_.Name -ErrorAction SilentlyContinue } reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" /v GlobalUserDisabled /t REG_DWORD /d 1 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Feeds" /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-310093Enabled /t REG_DWORD /d 0 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338387Enabled /t REG_DWORD /d 0 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f tzutil /s "Eastern Standard Time" # === SECTION 3: DISABLE WINDOWS UPDATE, CLEAN LOCK SCREEN === Stop-Service -Name wuauserv -Force Set-Service -Name wuauserv -StartupType Disabled reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 1 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightFeatures /t REG_DWORD /d 1 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v NoLockScreen /t REG_DWORD /d 1 /f reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableConsumerFeatures /t REG_DWORD /d 1 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenOverlayEnabled /t REG_DWORD /d 0 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v RotatingLockScreenEnabled /t REG_DWORD /d 0 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338389Enabled /t REG_DWORD /d 0 /f # === SECTION 4: REMOVE MICROSOFT EDGE + BLOATWARE === Write-Host "Removing Microsoft Edge..." -ForegroundColor Yellow $paths = @("C:\Program Files (x86)\Microsoft\Edge\Application", "C:\Program Files\Microsoft\Edge\Application") foreach ($base in $paths) { Get-ChildItem "$base" -Directory -ErrorAction SilentlyContinue | ForEach-Object { $setup = "$base\$($_.Name)\Installer\setup.exe" if (Test-Path $setup) { Start-Process $setup -ArgumentList "--uninstall --system-level --force-uninstall" -Wait } } } Write-Host "Removing bloatware apps..." -ForegroundColor Yellow $appsToRemove = @( "Microsoft.3DViewer", "Microsoft.BingWeather", "Microsoft.GetHelp", "Microsoft.Getstarted", "Microsoft.Microsoft3DViewer", "Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.MicrosoftStickyNotes", "Microsoft.MixedReality.Portal", "Microsoft.OneConnect", "Microsoft.People", "Microsoft.SkypeApp", "Microsoft.Wallet", "Microsoft.Xbox*", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "Microsoft.YourPhone", "Microsoft.Whiteboard", "Microsoft.Office.OneNote", "Clipchamp.Clipchamp", "Microsoft.Todos", "Microsoft.WindowsMaps", "Microsoft.GamingApp", "Microsoft.WindowsFeedbackHub" ) foreach ($app in $appsToRemove) { Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -Like $app | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue } # === FINALIZE === Stop-Process -Name explorer -Force Start-Process explorer Write-Host "`nāœ… PC fully optimized. Rebooting in 10 seconds..." -ForegroundColor Green Start-Sleep -Seconds 10 Restart-Computer -Force ====================================================================================================== ====================================================================================================== POWERSHELL - POS - user (Change URL) # === 1. Define Settings === $chromePath = "C:\Program Files\Google\Chrome\Application\chrome.exe" $kioskURL = "https://djgroupllc.com/login" $startupFolder = "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup" # === 2. Create Kiosk Launcher BAT File === $kioskScript = @' @echo off :start tasklist | find /i "chrome.exe" >nul if errorlevel 1 ( start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --kiosk --kiosk-printing https://djgroupllc.com/login ) timeout /t 5 >nul goto start '@ $kioskFile = "$env:USERPROFILE\kiosk.bat" Set-Content -Path $kioskFile -Value $kioskScript # === 3. Replace Shell (Per-User Only) === New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name "Shell" -Value "$kioskFile" -PropertyType String -Force | Out-Null # === 4. Enable On-Screen Keyboard === New-ItemProperty -Path "HKCU:\Software\Microsoft\TabletTip\1.7" -Name "EnableDesktopModeAutoInvoke" -Value 1 -PropertyType DWORD -Force | Out-Null New-ItemProperty -Path "HKCU:\Software\Microsoft\TabletTip\1.7" -Name "EdgeTargetDockedState" -Value 1 -PropertyType DWORD -Force | Out-Null # === 5. Disable Task Manager & Hotkeys === New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Force | Out-Null Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "DisableTaskMgr" -Value 1 -Type DWord New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Force | Out-Null Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoWinKeys" -Value 1 -Type DWord # === 6. Auto-hide Taskbar === $bytes = (Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3").Settings $bytes[8] = 3 Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" -Name "Settings" -Value $bytes Stop-Process -Name explorer -Force Start-Process explorer # === 7. Hide Desktop Icons === reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDesktop /t REG_DWORD /d 1 /f $shell = New-Object -ComObject Shell.Application $shell.ToggleDesktop() Start-Sleep -Milliseconds 500 $shell.ToggleDesktop() # === 8. Set Chrome as Default Browser === $chromeRegPath = "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice" New-Item -Path $chromeRegPath -Force | Out-Null Set-ItemProperty -Path $chromeRegPath -Name "ProgId" -Value "ChromeHTML" # === 9. Log Out to Apply Shell Change === shutdown.exe /l