KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

WMI Username

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
Harroguk



Joined: 30 Jul 2007
Posts: 25

PostPosted: Thu Feb 16, 2012 7:15 am    Post subject: WMI Username Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu Feb 16, 2012 11:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Harroguk



Joined: 30 Jul 2007
Posts: 25

PostPosted: Thu Feb 16, 2012 12:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu Feb 16, 2012 3:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index