Advertisement

1 - 7 of 7 containing alltags:("win32_computersystem") (0 seconds)
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 = ...
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...
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...
Zones: MS Dev, MS Visual Basic, .Net ...Date Answered: 04/23/2007 Grade: A Views: 28
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...
Zones: VB Script, Windows XPDate Answered: 09/06/2007 Grade: A Views: 111
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...
Zones: Scripting, Programming, VB ScriptDate Answered: 12/05/2007 Grade: A Views: 0
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...
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...
Zones: ProgrammingDate Answered: 04/05/2006 Grade: A Views: 0
  • 1