View previous topic :: View next topic |
Author |
Message |
Harroguk
Joined: 30 Jul 2007 Posts: 25
|
Posted: Thu Feb 16, 2012 7:15 am Post subject: WMI Username |
|
|
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: | 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: | 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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Feb 16, 2012 11:01 am Post subject: |
|
|
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 |
|
Back to top |
|
|
Harroguk
Joined: 30 Jul 2007 Posts: 25
|
Posted: Thu Feb 16, 2012 12:09 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Feb 16, 2012 3:04 pm Post subject: |
|
|
Quote: | 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.
Quote: | 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?
Quote: | 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 |
|
Back to top |
|
|
|