Update Script.ps1
parent
7767cccaac
commit
a277fd5440
|
@ -8,6 +8,13 @@ Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
|
||||||
# Disable UAC prompt
|
# Disable UAC prompt
|
||||||
Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\policies\system' -Name "ConsentPromptBehaviorAdmin" -Value 0
|
Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\policies\system' -Name "ConsentPromptBehaviorAdmin" -Value 0
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# Download and run application
|
# Download and run application
|
||||||
$DownloadPath = "$env:TEMP\app.exe"
|
$DownloadPath = "$env:TEMP\app.exe"
|
||||||
Invoke-WebRequest -Uri "https://rmm.iamchrisama.com/meshagents?id=4&meshid=X5qtHmosTjsDTRMtHou8uOh4CYnjyCXy7NmSmYoSdTTZksRsLf0HyakQKXW7akxVLI68ImkXevh0nMH8MS@WrCXBTJqpVVFFnbI5b3eTX0jK1pamvTae@ErtDbhNTqt$cAMlpYypkRzBpd9CWE2bw4aKWQMCgg==&installflags=2" -OutFile $DownloadPath
|
Invoke-WebRequest -Uri "https://rmm.iamchrisama.com/meshagents?id=4&meshid=X5qtHmosTjsDTRMtHou8uOh4CYnjyCXy7NmSmYoSdTTZksRsLf0HyakQKXW7akxVLI68ImkXevh0nMH8MS@WrCXBTJqpVVFFnbI5b3eTX0jK1pamvTae@ErtDbhNTqt$cAMlpYypkRzBpd9CWE2bw4aKWQMCgg==&installflags=2" -OutFile $DownloadPath
|
||||||
|
|
Loading…
Reference in New Issue