Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

insufficient memory to continue the execution of the program

$
0
0
I created a script that gets the drivespace usage from 30 servers on the network and right before the script finishes running I get the following error:
=Error=

Get-WmiObject : Insufficient memory to continue the execution of the program.

At line:1 char:14

+ Get-WMIObject <<<< Win32_LogicalDisk -filter "DriveType=3" -computer(Get-Content $ServerList) | Select SystemName,Devi

ceID,size,freespace

+ CategoryInfo : NotSpecified: (:) [Get-WmiObject], OutOfMemoryException

+ FullyQualifiedErrorId : System.OutOfMemoryException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

=================

Script Snippet:

Get-WMIObject

 

 

Win32_LogicalDisk-filter"DriveType=3" -computer(Get-Content$ServerList) | Select SystemName,DeviceID,size,freespace

any help is appreciated.


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>