Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Need to Know Why....

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Need to Know Why....
  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 >>
 Need to Know Why.... - 5/13/2008 2:27:13 AM   
  chiltz

 

Posts: 71
Score: 0
Joined: 6/13/2007
Status: offline
This script returns an error "object not a collection" on line "14



      
 
 
Post #: 1
 
 RE: Need to Know Why.... - 5/13/2008 2:31:38 AM   
  chiltz

 

Posts: 71
Score: 0
Joined: 6/13/2007
Status: offline
What I am trying to do is get info from a remote machine about the version of Winzip on it and wether or not its a trial version.  Script above should give me version.  Still not sure how to get wether trial or registered version.  Any input on that would be nice.  Side note, Win32_product is not returning any info, id rather use the code below if it was accurate.


      

(in reply to chiltz)
 
 
Post #: 2
 
 RE: Need to Know Why.... - 5/13/2008 4:09:55 AM   
  dm_4ever


Posts: 2414
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
Have you tried

strKeyPath = "Software\Nico Mak Computing\WinZip"
oReg.EnumKey HKEY_CURRENT_USER, strKeyPath, arrSubKeys
If IsArray(arrSubKeys) Then
    For Each subkey In arrSubKeys
         StdOut.WriteLine subkey
    Next
End If

_____________________________

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 chiltz)
 
 
Post #: 3
 
 RE: Need to Know Why.... - 5/13/2008 4:10:18 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
You would need to know how Winzip identifies a trial version. Is it a tregistry entry? A file? A change in a binary?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to chiltz)
 
 
Post #: 4
 
 RE: Need to Know Why.... - 5/13/2008 5:17:01 AM   
  chiltz

 

Posts: 71
Score: 0
Joined: 6/13/2007
Status: offline
The below script works with no errors...but gives no info...which means there is no array...just gives the complete echo at the end.  If I take the "WinIni" off the end...then I get the keys that are in "Winzip".  What I want is to inumerate the values that are in key "WinIni".  I am guessing that since the values are not actually keys, then this script is not waht I want

As for determining Trial Vs Registered, if registered, there will be two more values in the key "WinIni"...one containing a Name, and one containing a serial number.



      

(in reply to chiltz)
 
 
Post #: 5
 
 RE: Need to Know Why.... - 5/13/2008 5:29:09 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
oReg.EnumKey would enumerate the keys. You want to enumerate the values in the key. Do a little searching and you should find examples.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to chiltz)
 
 
Post #: 6
 
 RE: Need to Know Why.... - 5/13/2008 5:46:11 AM   
  chiltz

 

Posts: 71
Score: 0
Joined: 6/13/2007
Status: offline
yeah...now that I know im down the wrong road....I can figure it out.  ended up having to do it manually on 200+ machines....so will likely figure it out tomorrow :)


(in reply to ebgreen)
 
 
Post #: 7
 
 
 
  

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 >> Need to Know Why.... 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