Add MeshAgent.ps1
parent
8c016564a5
commit
9937f40e16
|
|
@ -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
|
||||||
Loading…
Reference in New Issue