-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not a real Bug: MeshCentral cant be installed on Win11 24H2 #1901
Comments
Ok, so this is more a feature request than a bug, you would like either WMIC to be checked and then installed prior to mesh install or when generating the exe installer be able to hard code nomesh rather than having to do that manually. For now I guess you can create a powershell installer that will work with a deployment link and some variables and have the |
Ah, yes ... sure - sorry for that. Yes, that would be nice when there were an option for enbaling automatic installation of WMIC (for the moment until all dependencies are solved - i think MS will remove WMIC sooner or later in a upcoming release). Aah, okay, i see with the deployment Methode its easy with "nomesh" argument. |
so soemthing like this from https://docs.tacticalrmm.com/install_agent/#scripting-agent-installation:
Or if we wanted to be really smart we could change the powershell script to detect if wmic is installed and install it if its not detected, then Exit if it doesnt install
|
Ive done it this way: (in "-ArgumentList") `Invoke-WebRequest "" -OutFile ( New-Item -Path "c:\ProgramData\TacticalRMM\temp\trmminstall.exe" -Force ) if ($proc.ExitCode -ne 0) { For now "nomesh" is needed for installation on 24H2, because even if WMIC is installed MeshCentral wont install on 24H2. Are there any dependencies on TRMM side for WMIC? |
ah ok, no it shouldnt effect using TRMM but some of the data is collected using WMI so you might have some incomplete data on the machine until its install, I have adjusted the If statement above then to just install with nomesh |
So the new Script cheks if WMIC is installed, when not (probably only on 24H2), it installs with "nomesh" argument!? Am i right? |
yeah thats right |
Thank you! |
to be clear, |
There currently is an open issue for this in MeshCentral Git Issues See here Not clear if its actively being working on though How will this affect Windows 11 Machines updating to 24H2 will they break? |
What ive seen until now it only a problem when you are installing the TRMM Agent on a fresh installed 24H2 Machine. |
@wh1te909 is the trmm agent installer going to be updated to install wmic.exe ? Or do we need to update our install process ourselves to install it first? |
I know it was being looked at by Si as all the wmic commands can be replaced with native powershell commands. I looked out all the commands and started checking the powershell alternatives then Si mentioned he was looking at it so I left it. Happy to work on this as part of a group via the mesh or tactical discord. |
The installer/mesh works for me on 24H2 even though wmic is gone. I need to be able to reproduce the issue so I can fix the installer. What am I missing here? PS C:\Users\tactical> (Get-ItemProperty "HKLM:\Software\Microsoft\Windows NT\CurrentVersion").LCUVer
10.0.26100.1742 time="2024-10-06T14:33:50-07:00" level=info msg="Downloading mesh agent..."
time="2024-10-06T14:33:51-07:00" level=info msg="Installing mesh agent..."
[...Checking for previous installation of "Mesh Agent" [NONE]
...Installing service [DONE]
-> Writing firewall rules for Mesh Agent Service... [DONE]
-> Starting service... [OK]
]
time="2024-10-06T14:33:59-07:00" level=info msg="Adding agent to dashboard"
time="2024-10-06T14:34:09-07:00" level=info msg="Installing service..."
time="2024-10-06T14:34:10-07:00" level=info msg="Starting service..."
c:\cds>wmic
'wmic' is not recognized as an internal or external command,
operable program or batch file. |
This is a freshly installed 24H2 just downloaded the latest ISO today, so not an upgrade. |
I don't have wmic installed, but the agent still works. Trying to figure out why it still works for me, but nobody else. |
@wh1te909 Im going to Install 24h2 directly on a virtual Machine and give it a shot, ill let you know what the outcome is. |
I have 4 freshly installed windows 11 24h2, and all them has an issue with meshcentral agent installation, I tried to follow Astorek86 suggestions but there is no WMIC when I tried to search for it. Any one has another walk around for this issue, while we are waiting for the solution? Thanks. |
Did you read the link to the meshcentral repo? There's a new agent |
Server Info (please complete the following information):
Installation Method:
--insecure
flag at installAgent Info (please complete the following information):
Describe the bug
Its not a real bug ... i dont know if this is a known "problem" ... but ive got a message that i cant install TRMM on a fresh installed Win11 24H2, because MeshCentral isnt supported on 24H2. Its because 24H2 hasnt installed/enabled WMIC by default. When installing manually via cmd with "-nomesh" argument, installation is OK.
Expected behavior
It not a real problem with TRMM, so ive would like if there is a option to set "nomesh" for the EXE-installer.
And/or is it possible (as a workaround) to implement the installation of WMIC in the EXE-Installer, if there are also dependencies from TRMM to WMIC!?
The text was updated successfully, but these errors were encountered: