Today's tip is about getting the free space in memory on a computer. This can easily done with WMI. Let's take a look in a one-liner.
This can play a good role when you are writing a script which might consume too much of memory, you can plan the execution when memory usage is normal.
Enjoy!
Get-WmiObject win32_operatingsystem | select csname, FreePhysicalMemory, FreeSpaceInPagingFiles, FreeVirtualMemory
This can play a good role when you are writing a script which might consume too much of memory, you can plan the execution when memory usage is normal.
Enjoy!
No comments:
Post a Comment