29 Dec

Bubble sorting with Perl

03 Aug

Listing IIS Application Pool Memory usage in PowerShell

Open Powershell as an Administrator on the web server, then run:

You should see something like:

If you get Get-WmiObject : Could not get objects from namespace root/WebAdministration. Invalid namespace then you need to enable the IIS Management Scripts and Tools feature using:

07 Jan

How to troubleshoot memory issues when executing remote Powershell queries

If you are receiving “Processing data for a remote command failed with the following error message: The WSMan provider” message from the PS Queries (e.g. on the Nagios)

All you have to do is log on the target computer, and run powershell with Administrator Rights. Then you can increase Powershell memory with below commands

You can get current memory size with get-item:


And here is the command for change the value:


winrm set winrm/config/winrs @{MaxMemoryPerShellMB=”512″}




In some cases, you need to restart the WinRM service on target system:

28 Apr

How to connect Oracle DB with PowerShell

connect to Oracle

Create a datareader for a SQL statement

Write out the results