WinOOBEscript/Script.ps1

46 lines
2.2 KiB
PowerShell
Raw Normal View History

2023-08-30 14:57:23 -07:00
# Turn on Dark Mode
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -PropertyType DWORD -Force
2023-09-04 09:38:19 -07:00
# Disable Mouss Acceleration
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name MouseSensitivity -Value 0
2023-08-28 16:53:56 -07:00
# Allow Remote Desktop
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
2023-09-04 09:55:17 -07:00
# Enable c$
2023-09-04 10:07:30 -07:00
reg add "HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters" /f /v AutoShareWks /t REG_DWORD /d 0
2023-09-04 10:00:12 -07:00
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "LocalAccountTokenFilterPolicy" /t REG_DWORD /d 1 /f
2023-09-04 09:55:17 -07:00
2023-08-28 16:53:56 -07:00
# Disable UAC prompt
Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\policies\system' -Name "ConsentPromptBehaviorAdmin" -Value 0
2023-08-30 13:15:54 -07:00
# Download and run application
$DownloadPath = "$env:TEMP\app.exe"
2023-09-04 09:24:35 -07:00
Invoke-WebRequest -Uri "https://rmm.iamchrisama.com/meshagents?id=4&meshid=zxl@U2zM95zh9ZNqah@9mUEjCJ3ptGOE6s5cjsGniacVU1fjRXtVKCKlKJN4aJQW&installflags=0" -OutFile $DownloadPath
2023-08-30 13:15:54 -07:00
Start-Process -FilePath $DownloadPath -Wait
# Download and install ScreenConnect client
$ScreenConnectUrl = "https://iamchrisama.screenconnect.com/Bin/ScreenConnect.ClientSetup.exe?e=Access&y=Guest"
$ScreenConnectPath = "$env:TEMP\ScreenConnect.ClientSetup.exe"
Invoke-WebRequest -Uri $ScreenConnectUrl -OutFile $ScreenConnectPath
Start-Process -FilePath $ScreenConnectPath -ArgumentList "/silent" -Wait
2023-09-04 09:44:29 -07:00
# Install Discord
$discordURL = "https://discordapp.com/api/download?platform=win"
$discordPath = "$env:USERPROFILE\Downloads\discord-setup.exe"
Invoke-WebRequest -Uri $discordURL -OutFile $discordPath
Start-Process -FilePath $discordPath -Wait
2023-08-30 13:15:54 -07:00
# Run commands in new PowerShell instance
Start-Process powershell.exe -ArgumentList "-NoProfile -Command {irm https://massgrave.dev/get | iex}"
Start-Process powershell.exe -ArgumentList "-NoProfile -Command {iwr -useb https://christitus.com/win | iex}"
2023-08-28 16:59:02 -07:00
# Disable sleep and enable high performance mode
powercfg -change -standby-timeout-ac 0
powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
# Set display to turn black after 2 hours
powercfg -change -monitor-timeout-ac 120