First I'm going to show a code snippet I got from somewhere, and then I'll ask the question.
//snippet
oq = new System.Management.ObjectQuery("SELECT * FROM Win32_OperatingSystem");
query = ...
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_20845237.html
Zones:
C#Date Answered: 01/08/2004 Grade: A Views: 6
Is there some way I can eliminate my For/Next loop in the following chunk of code?
Public Function GetHardwareType(ServerName)
Set objWMIService = GetObject("winmgmts:\\" & ServerNam...
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_20429362.html
Zones:
Visual BasicDate Answered: 02/11/2003 Grade: A Views: 0
I am building a small application that retrieves system information via WMI. My VBScript works fine, however, the VB.Net code does not execute. Further, I get an "Unspecified Error" when I try to...
http://www.experts-exchange.com/Microsoft/Development/Q_22528543.html
I had a script that on our old domain worked fine. It was designed so I enter the hostname of an XP client, and the script returns the username if anyone was logged on. When changing from an NT d...
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_22807157.ht...
This script below provides a bunch of info about the computer after I enter the computer name.
I would like to know if I can see another info which is the system uptime( since when the computer ha...
http://www.experts-exchange.com/Programming/Languages/Scripting/Q_23001323.html
This is the script I'm using, but i can't et it to work correctly....
Input_File = Wscript.Arguments(0)
Const FOR_READING = 1
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFi...
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/2000/Q_21071197.htm...
Zones:
Windows 2000Date Answered: 08/05/2004 Grade: A Views: 0
Thought this was working, but second glance shows 'no'...
I'm running this on a server in EST. The .CurrentTimeZone should reveal -300, but shows -240 instead.
set oQuery=oWMI.ExecQuery("selec...
http://www.experts-exchange.com/Programming/Misc/Q_21803211.html
Zones:
ProgrammingDate Answered: 04/05/2006 Grade: A Views: 0