Search found 14212 matches

by jvierra
Fri Sep 19, 2008 7:16 am
Forum: VBScript
Topic: Query SQL version and edition via wmi on powershel
Replies: 2
Views: 3478

Query SQL version and edition via wmi on powershel

Win32_Product is not installed on post-XP machines by default. (WS200x) WMI TRroubleshooting tips: http://support.microsoft.com/default.aspx?scid=kb;en-us;875605 The falure is odd and may indicate a problem with either local WMI or Firewalls. Major errors are RPC and Class not found. Generic indicat...
by jvierra
Fri Sep 19, 2008 6:00 am
Forum: VBScript
Topic: windows script component, type lib + registering
Replies: 9
Views: 4516

windows script component, type lib + registering

Sasha

Changes keep us alive but old Planck limits even that.

Good Luck
Jim
by jvierra
Fri Sep 19, 2008 4:37 am
Forum: VBScript
Topic: windows script component, type lib + registering
Replies: 9
Views: 4516

windows script component, type lib + registering

Well Sasha - many changes in a short time. This forum is not really set up or intended for use with NET languages and technologies. I suggest finding a local users group and joining it as it will be able to provide you will resources more closely tuned to your region. As for strings with COM interop...
by jvierra
Thu Sep 18, 2008 6:17 am
Forum: VBScript
Topic: Some Array Questions
Replies: 12
Views: 2518

Some Array Questions

See - I learn something everyday and from Jeff much. I never knew that the ADSI provider for ADO was that flexible. Good thing to know. Now if Microsoft will just add full Regex to ADSI/ADO we will be in business.
jvierra2008-09-18 13:17:31
by jvierra
Thu Sep 18, 2008 4:02 am
Forum: VBScript
Topic: Enumerate Nested Group Members
Replies: 7
Views: 5172

Enumerate Nested Group Members

Sorry Brett I lost your post.

Here is one way to enumerate nested groups. I put it in the script repository as it is asked for frequently.

http://www.scriptinganswers.com/forum2/ ... =2237&PN=1

by jvierra
Thu Sep 18, 2008 3:09 am
Forum: VBScript
Topic: Some Array Questions
Replies: 12
Views: 2518

Some Array Questions

I just love new scripters because they have an uncanny ability to ask for teh impossible. This is always a good chance to learn something new for me. Here is one solution using a Dictionary and some subroutines. It may not be the best but, I believe it is a very elegant solution. It provides a ditio...
by jvierra
Thu Sep 18, 2008 2:37 am
Forum: VBScript
Topic: Some Array Questions
Replies: 12
Views: 2518

Some Array Questions

Good example Jeff. Now how do we solve the "remove from array problem"? This requirement conflicts immediately with the need to subroutine as teh information needed to determine if the computer should be removed frm the array only exists briefly in the subroutine. PS: Don't cheat and use globals tha...
by jvierra
Thu Sep 18, 2008 2:29 am
Forum: VBScript
Topic: Some Array Questions
Replies: 12
Views: 2518

Some Array Questions

If objItem.Caption <> " Microsoft XP" Then If you want to remove things from your array then consider using a DIctionary as it is esier to remove from a dict. Set dct = CreateObject("Scripting.Dictionary") dct.Add "key","value" for each key in dct.Keys dct.Remove(key) Next keys = Dct.Keys ' returns ...
by jvierra
Thu Sep 18, 2008 12:38 am
Forum: Windows PowerShell
Topic: How do I run WinZip from a PowerShell Script?
Replies: 7
Views: 8514

How do I run WinZip from a PowerShell Script?

I am surprised that PowerGUI doesn't parse exactly the same way as PoSH. Might be an issue with the debugger implementation or just a program bug. Did you report it? In most cases if the first tokenin a command line is a known program iPS will pass teh remainder of the command line unchanged to teh ...
by jvierra
Wed Sep 17, 2008 6:52 am
Forum: Windows PowerShell
Topic: How do I run WinZip from a PowerShell Script?
Replies: 7
Views: 8514

How do I run WinZip from a PowerShell Script?

If WZZIP is an executable in teh DOS path then: WZZIP C:MyArchiveabackup.zip -a -P -r -ex C:MySrcAProject*.* Should work. To check path just type WZZIP and see if it give program banner. If not then just add the path to WZZIP in from of it. C:myutilsWZZIP .... Works like CMD mostly.