diff --git a/MeshAgent.ps1 b/MeshAgent.ps1 new file mode 100644 index 0000000..09314ae --- /dev/null +++ b/MeshAgent.ps1 @@ -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 \ No newline at end of file