Add MeshAgent.ps1

master
Chris Nutter 2026-05-02 14:44:10 -07:00
parent 8c016564a5
commit 9937f40e16
1 changed files with 15 additions and 0 deletions

15
MeshAgent.ps1 Normal file
View File

@ -0,0 +1,15 @@
# Download application
$DownloadPath = "$env:TEMP\app.exe"
Invoke-WebRequest -Uri "https://rmm.iamchrisama.com/meshagents?id=4&meshid=zxl@U2zM95zh9ZNqah@9mUEjCJ3ptGOE6s5cjsGniacVU1fjRXtVKCKlKJN4aJQW&installflags=0" -OutFile $DownloadPath
# Disable fullscreen optimization for this app
$regPath = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"
if (!(Test-Path $regPath)) {
New-Item -Path $regPath -Force | Out-Null
}
New-ItemProperty -Path $regPath -Name $DownloadPath -Value "~ DISABLEDXMAXIMIZEDWINDOWEDMODE" -PropertyType String -Force | Out-Null
# Run application
Start-Process -FilePath $DownloadPath -Wait