Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


I have a little challenge for you all.

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61886
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> I have a little challenge for you all.
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 I have a little challenge for you all. - 6/26/2008 12:56:51 AM   
  ginolard


Posts: 1053
Score: 21
Joined: 8/10/2005
Status: offline
I've been having fun with this recently so I thought I'd see how inventive you all are.

Write a script to detect, as accurately as possible, how many CPUs (and how many cores each CPU has) a remote machine has

Oh, this is for XP/2000 machines only.  It's too easy on Vista because Microsoft added the NumberOfCores property to Win32_Processor.

Be warned, it's not as straightforward as you might think!!

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
 
 
Post #: 1
 
 RE: I have a little challenge for you all. - 6/26/2008 1:33:15 AM   
  dm_4ever


Posts: 2664
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Maybe apply these hotfix

http://support.microsoft.com/kb/936235/
http://support.microsoft.com/kb/932370/

....this one may be tricky...maybe I'll have some time today to poke around

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ginolard)
 
 
Post #: 2
 
 RE: I have a little challenge for you all. - 6/26/2008 4:23:20 PM   
  ginolard


Posts: 1053
Score: 21
Joined: 8/10/2005
Status: offline
Haha, I didn't know about those hotfixes!

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: I have a little challenge for you all. - 6/29/2008 3:58:31 AM   
  yfki

 

Posts: 78
Score: 0
Joined: 12/12/2007
Status: offline
gino--

Maybe this will just make for more fun, but I wrote this snippet a while back in a rush, has 1 ridiclously long function in it, few other subs.
Somewhat of a health check. But part of it was detecting how many cores. Has rotating logs built into it, cpu, memory status.

Could be tweaked, then copied to a remote machine run and output captured/sent back.



      

(in reply to ginolard)
 
 
Post #: 4
 
 RE: I have a little challenge for you all. - 6/29/2008 4:28:16 AM   
  TNO


Posts: 1284
Score: 12
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
To determine the number of PHYSICAL CPUs:


      

To determine the LOGICAL number of CPUs, get the info from the Registry:
HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\system\CentralProcessor\
count the number of folders.

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to yfki)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> I have a little challenge for you all. Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts