Remote support tools

23rd August 2024

When you run commands on workstations thru a remote support tool most of the time they run under the System context so they don’t have a search path to find useful tools like winget

“C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.23.1911.0_x64__8wekyb3d8bbwe\winget.exe” upgrade –all –accept-package-agreements –accept-source-agreements

“C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.23.1911.0_x64__8wekyb3d8bbwe\winget.exe” upgrade “VLC media player” –accept-package-agreements –accept-source-agreements

powershell
Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.8.2-1.msi -OutFile ${env.tmp}\wazuh-agent; msiexec.exe /i ${env.tmp}\wazuh-agent /q WAZUH_MANAGER=’wazuh-server.yourdomain.local’

NET START WazuhSvc