Search found 15436 matches

by jvierra
Sat Nov 15, 2008 11:55 pm
Forum: Other Scripting Languages
Topic: Psuedo-multithreading by any means necessary
Replies: 3
Views: 7202

Psuedo-multithreading by any means necessary

I thought from your original post that that is not a solution you wanted to use. It has been used with varying degrees of success depending on what it is you are trying to do. Give it a try and see if it helps is all that I can say. I have done data collection that way in the past. It can be made to...
by jvierra
Sat Nov 15, 2008 2:21 pm
Forum: Other Scripting Languages
Topic: Psuedo-multithreading by any means necessary
Replies: 3
Views: 7202

Psuedo-multithreading by any means necessary

You can't. It's a built in limitation. WSh is single threaded.
When PowerShell V2 becomes available you will be able to have a multi-thereaded script as it can do true "background" processing.

Download the CTP of PS V2 and take a look at how it does this.
by jvierra
Sat Nov 15, 2008 5:03 am
Forum: VBScript
Topic: Timesync
Replies: 3
Views: 2019

Timesync

Save yourself a lot of wasted time.

If teh doamin is in sync - it's in sync. The Event Logs on all servers and DCs will have entries if the domain is out of sync.
by jvierra
Fri Nov 14, 2008 1:29 am
Forum: PowerShell
Topic: Slow rename-item script
Replies: 2
Views: 2292

Slow rename-item script

Out-File -append Actually that will not be the fastest although I think PoSH keeps the file open and ready. If you use a File object it hs a writeline method that would be the fastest. This may help if the slowness is only due to opening and closing files. It could be due to the network or server wh...
by jvierra
Fri Nov 14, 2008 12:50 am
Forum: PowerShell
Topic: Slow rename-item script
Replies: 2
Views: 2292

Slow rename-item script

add-content is probably very much slower that out-file for ading to a file. As the file grows bigger it should take longer and longer. Out-File will probably keep the file open and cached for performance whereas add-content will constantly close, reopen and read teh file.

by jvierra
Thu Nov 13, 2008 1:57 am
Forum: VBScript
Topic: What's the object WSH?
Replies: 6
Views: 3721

What's the object WSH?

Well your all wrong and definitely don't know how to read a class diagram. WSH is not anywhere on teh diagram. WScript object is on top. The modular representation shows WWSH as a wrapper around everything. This is purely conceptual and not meant to indicate how the wiring actually works. Thereare t...
by jvierra
Wed Nov 12, 2008 6:21 am
Forum: PowerShell
Topic: Newbie, please help.
Replies: 2
Views: 1719

Newbie, please help.

PowerShell for Exchange is for "management" of mailboxes and not for reading mail.

To read mail you would either need to use Outlook VBA or CDO. The CDO objects can be used from PowerShell but I am not sure how well they will work. They are newer COM so they should work well.

by jvierra
Mon Nov 10, 2008 4:54 am
Forum: PowerShell
Topic: Script for managing actions during PC startup
Replies: 3
Views: 2607

Script for managing actions during PC startup

Try google "powershell test harness"

There are dozens of good articles on using PowerShell as a test harness/test generator. There are even some extenders beginning to appear to help with the job.
by jvierra
Mon Nov 10, 2008 4:03 am
Forum: VBScript
Topic: HELP - User info by Group
Replies: 4
Views: 1708

HELP - User info by Group

Brian -

I decided to run your code. It won't work in an AD WS2003 domain in Native mode with two DCs.

The method you are using to query the domain won't work in all situations.
by jvierra
Mon Nov 10, 2008 3:23 am
Forum: VBScript
Topic: HELP - User info by Group
Replies: 4
Views: 1708

HELP - User info by Group

Hi Brian

I see you used Richards code to start with.

Looks good.

Why don't you post it to the "Sharing" forum as most scripts in teh forum have a short shelf life. The Sharing forums are not archived or deleted so things stick around.