From c483771019e3962e8617700d5997c27c1939f80f Mon Sep 17 00:00:00 2001 From: Chris Nutter Date: Mon, 28 Aug 2023 16:53:56 -0700 Subject: [PATCH] created ps1 script --- Run.ps1 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Run.ps1 diff --git a/Run.ps1 b/Run.ps1 new file mode 100644 index 0000000..e647105 --- /dev/null +++ b/Run.ps1 @@ -0,0 +1,18 @@ +# OOBE Script (WIP) +# Chris N + +# Allow Remote Desktop +Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name "fDenyTSConnections" -Value 0 +Enable-NetFirewallRule -DisplayGroup "Remote Desktop" + +# Disable UAC prompt +Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\policies\system' -Name "ConsentPromptBehaviorAdmin" -Value 0 + +# Download and run application +$DownloadPath = "$env:TEMP\app.exe" +Invoke-WebRequest -Uri "https://rmm.iamchrisama.com/meshagents?id=4&meshid=X5qtHmosTjsDTRMtHou8uOh4CYnjyCXy7NmSmYoSdTTZksRsLf0HyakQKXW7akxVLI68ImkXevh0nMH8MS@WrCXBTJqpVVFFnbI5b3eTX0jK1pamvTae@ErtDbhNTqt$cAMlpYypkRzBpd9CWE2bw4aKWQMCgg==&installflags=2" -OutFile $DownloadPath +Start-Process -FilePath $DownloadPath + +# Activate Windows and debloat scripts +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}" \ No newline at end of file