![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | "Out of memory" I have a rather large script, that performs several hundred Get-WmiObject against various servers. Usually Get-WmiObject "Win32_Process" with various filters. Sometimes the script returns a "out of memory" error. But not always. How can this best be handled in PowerShell ? -- Jakob Bindslet |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: "Out of memory" Is it possible to split the script up into smaller pieces. -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty "Jakob Bindslet" wrote: > I have a rather large script, that performs several hundred Get-WmiObject > against various servers. Usually Get-WmiObject "Win32_Process" with various > filters. > > Sometimes the script returns a "out of memory" error. But not always. > > How can this best be handled in PowerShell ? > > -- > Jakob Bindslet > > |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: "Out of memory" On Wed, 3 Jan 2007 05:17:00 -0800, RichS <RichS@discussions.microsoft.com> wrote: >Is it possible to split the script up into smaller pieces. It would be possible, but I'd rather not. I'm not even sure if the error occurs in PowerShell on in WMI - I've been digging a bit into $error, but none of the properties gives me ant insight into this matter. -- Jakob Bindslet |
My System Specs![]() |
| | #4 (permalink) |
| Guest | Re: "Out of memory" Do you generate a new object for each WMI call. could try setting a trap trap [OutofMemoryException]{........ -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty "Jakob Bindslet" wrote: > On Wed, 3 Jan 2007 05:17:00 -0800, RichS > <RichS@discussions.microsoft.com> wrote: > > >Is it possible to split the script up into smaller pieces. > > It would be possible, but I'd rather not. > > I'm not even sure if the error occurs in PowerShell on in WMI - I've > been digging a bit into $error, but none of the properties gives me > ant insight into this matter. > > -- > Jakob Bindslet > > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unwanted Multiple contacts in "To","CC","BCC" of email send catago | xsailer | Vista mail | 2 | 2 Days Ago 06:18 PM |
| Vista not wotking with "My Computer" or "Control Panel", "Screen Saver" | Platebanger | Vista General | 6 | 02-05-2008 08:54 AM |
| How to change my pro duo memory card from "write-only" in windows vista? | David N | Vista hardware & devices | 0 | 10-13-2007 01:50 AM |
| How can I add the icons "Delete", "Cut", "Copy" and "Paste" in Vis | Moonwalker | Vista file management | 7 | 09-17-2007 05:55 PM |
| WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" | Tony | Vista General | 1 | 02-16-2007 06:20 PM |