Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Error when adding server via WMI
-
I'm attempting to add a server to Otter via WMI, instead of the Inedo agent, but I'm running into an issue. Otter administration is showing this error:
Error scanning PowerShell agent: Could not load file or assembly 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.Is there something I'm missing?
-
Hi @jwest_6990
What Windows server version is Otter installed on? That might help us narrow this down.
We have seen that error if RSAT is not enabled:
https://learn.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/remote-server-administration-toolsCheers,
Steve
-
Hi Steve,
Thanks for the response. I'm running Windows Server 2019. Following your suggestion about RSAT, I installed every available RSAT, but had the same issue. After installation, I restarted the the Otter and web services, but the problem remained, so I rebooted the server, but still see the error.
I've done some manual testing in PowerShell, and found that Test-WSMan, Enter-PSSession, and Invoke-Command all work without issue.
-
-
@rhessinger
Hello Rich,Otter is running on Windows Server 2019, and I installed it via the Inedo Hub.
Thanks
-
Hi @jwest_6990,
I'm sorry, somehow I missed that in your previous response. I'm going to attempt to recreate this in our test lab and see if I can get the same error. I'll let you know what I find.
Thanks,
Rich
-
Hi @jwest_6990 ,
So I'm struggling to reproduce this error. For me, it just seems to work. I'm wondering if maybe a DLL got removed (possibly an antivirus false-positive) or conflict with something else installed on the host. Are you able to see a full stack trace? Do you have anything else installed on your Otter server?
Thanks,
Rich
-
I hate to say this, but its working now. Without making any configuration changes, I uninstalled Otter via the Inedo hub, rebooted the server, then reinstalled Otter. I was then able to add an agentless server without issue.
I'm obviously happy that it's now working, but I'm sorry for making you look into this.
Thanks.