[GH-ISSUE #2363] Replace wmic examples in documentation #3401

Closed
opened 2026-03-14 07:16:27 +03:00 by kerem · 2 comments
Owner

Originally created by @muzzol on GitHub (Dec 3, 2025).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2363

New Windows 11 instalations don't have wmic executable by default and some commands on official docs rely on it. Ex: https://docs.tacticalrmm.com/install_agent/#scripting-agent-installation

It could be replaced with powershell equivalences or at least inform about it so admins don't get confused about failing commands.

There's some related discussion on this ticket: https://github.com/amidaware/tacticalrmm/issues/1901

Originally created by @muzzol on GitHub (Dec 3, 2025). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2363 New Windows 11 instalations don't have wmic executable by default and some commands on official docs rely on it. Ex: https://docs.tacticalrmm.com/install_agent/#scripting-agent-installation It could be replaced with powershell equivalences or at least inform about it so admins don't get confused about failing commands. There's some related discussion on this ticket: https://github.com/amidaware/tacticalrmm/issues/1901
kerem closed this issue 2026-03-14 07:16:32 +03:00
Author
Owner

@silversword411 commented on GitHub (Dec 3, 2025):

Please test this script

@echo off

set "DeploymentURL=!!!REPLACEME!!!"

for /f "delims=" %%g in ('powershell -NoProfile -Command "(Get-Service -Name tacticalrmm -ErrorAction SilentlyContinue).Name"') do (
    set "Name=%%g"
)

if not defined Name (
    echo Tactical RMM not found, installing now.
    if not exist "C:\ProgramData\TacticalRMM\temp" md "C:\ProgramData\TacticalRMM\temp"
    powershell Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force
    powershell Add-MpPreference -ExclusionPath "C:\Program Files\TacticalAgent\*"
    powershell Add-MpPreference -ExclusionPath "C:\Program Files\Mesh Agent\*"
    powershell Add-MpPreference -ExclusionPath "C:\ProgramData\TacticalRMM\*"
    cd /d "C:\ProgramData\TacticalRMM\temp"
    powershell Invoke-WebRequest "%DeploymentURL%" -Outfile tactical.exe
    tactical.exe
) else (
    echo Tactical RMM already installed Exiting
    exit 0
)

and we'll then add to docs

<!-- gh-comment-id:3606100771 --> @silversword411 commented on GitHub (Dec 3, 2025): Please test this script ```cmd @echo off set "DeploymentURL=!!!REPLACEME!!!" for /f "delims=" %%g in ('powershell -NoProfile -Command "(Get-Service -Name tacticalrmm -ErrorAction SilentlyContinue).Name"') do ( set "Name=%%g" ) if not defined Name ( echo Tactical RMM not found, installing now. if not exist "C:\ProgramData\TacticalRMM\temp" md "C:\ProgramData\TacticalRMM\temp" powershell Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force powershell Add-MpPreference -ExclusionPath "C:\Program Files\TacticalAgent\*" powershell Add-MpPreference -ExclusionPath "C:\Program Files\Mesh Agent\*" powershell Add-MpPreference -ExclusionPath "C:\ProgramData\TacticalRMM\*" cd /d "C:\ProgramData\TacticalRMM\temp" powershell Invoke-WebRequest "%DeploymentURL%" -Outfile tactical.exe tactical.exe ) else ( echo Tactical RMM already installed Exiting exit 0 ) ``` and we'll then add to docs
Author
Owner

@muzzol commented on GitHub (Dec 3, 2025):

yeah, works great.

I'm not sure if there's other examples around docs, I just found this one while testing on a W11 machine.

thanks for your time.

<!-- gh-comment-id:3606788576 --> @muzzol commented on GitHub (Dec 3, 2025): yeah, works great. I'm not sure if there's other examples around docs, I just found this one while testing on a W11 machine. thanks for your time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#3401
No description provided.