Have a few PowerShell scripts I’ve been testing and for some reason they will not work properly via an Automox policy, but if I run them locally they seem to work fine.
RDP Disable - Worklet
Set-ItemProperty -Path “HKLM:\System\CurrentControlSet\Control\Terminal Server” -Name “fDenyTSConnections” –Value 1
Teams Install - Required Software
Start-Process -FilePath “Teams_windows_x64.exe” -ArgumentList “-s” -Wait -PassThru
To my knowledge the Automox agent is supposed to run all the PowerShell commands as SYSTEM which should have elevated privileges. Was hoping to see if anyone else has run into this and what I can do to resolve it?
Thanks in advance.