WMI Username

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
Harroguk
Posts: 25
Joined: Mon Jul 30, 2007 2:23 am

WMI Username

Post by Harroguk »

I had some problems getting Hosmonitor tests using WMI to work.

I am receiving an Access Denied error in KSHM.

Investigation shows that when testing using WMIC I receive "Invalid Global Switch" if I use a user with a hyphen in it.

Code: Select all

C:\Users\me>wmic /user:domain\SVC-User /password:password /node:192.168.10.10 computersystem list full
However if you place apostrophies around the user it will parse correctly

Code: Select all

C:\Users\me>wmic /user:'domain\SVC-User' /password:password /node:192.168.10.10 computersystem list full
From what I can tell Hostmonitor does not parse user names containing hyphens correctly for WMI tests.

Thanks

Harroguk
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What version of HostMonitor do you use?
Windows?
Service Pack?
Antivirus monitor?

We just re-tested several versions of HostMonitor and Windows XP, Windows 2003, Windows 7 - we cannot reproduce the problem, as we see HostMonitor works fine.
Actually HostMonitor does not parse user name and it does not care about '-' character in user name.

Regards
Alex
Harroguk
Posts: 25
Joined: Mon Jul 30, 2007 2:23 am

Post by Harroguk »

What version of HostMonitor do you use? v9.10
Windows? Server 2003 Standard x64 Edition
Service Pack? SP2
Antivirus monitor? No AV is running.

The only difference between the users is the use of a Hyphen in the username.

As stated when using WMIC the user with the hyphen in the name will not run correctly in the command unless you put ' around the user name. If you dont do this it thinks you are trying to use an invalid switch.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you dont do this it thinks you are trying to use an invalid switch.
HostMonitor does not use any switches. It uses username that you provide.
As stated when using WMIC the user with the hyphen in the name will not run correctly in the command unless you put ' around the user name
This has nothing to do with HostMonitor. HostMonitor is not command line utility that gets username from command line.
You specified user name for WMI tests using Connection Manager, right?
What version of HostMonitor do you use? v9.10
Windows? Server 2003 Standard x64 Edition
Service Pack? SP2
We tested HostMonitor 9.10 on Windows Server 2003 Standard x32, works fine.
Will check Windows 2003 x64 system as well...
What Windows installed on remote(target) system?

Regards
Alex
Post Reply