7 articles Powershell

PowerShell Get Memory used by a group of processes

Get the memory usage of a process, grouped, so you get the total. Example; chrome, always have one process per page, use this to get the total of memory used by all of them.

From Laurent’s comments below, another take on this with the following code, which lists all open processes, with total memory:…

PowerShell Message Tracking in Exchange

Ever wanted to track some messages in Exchange ? Here is a neet trick to will help you track messages quickly. A lot more options are available, of course, this is only a small one liner to verify if a user received an email, from someone, on a particular date.

  See all available…

PowerShell Send Email in one line command

Powerful one liner to send an email with PowerShell.  Useful in scheduled tasks to send status, or additional info. The use of environment variables is totally optional, but make a fine subject line when you want to know from which server it came from ! Suggestions on improvements are welcome, please leave a comment !…

Duplicate Active Directory Group with Members from PowerShell

Fireup your PowerShell ISE, modify to your needs, and run ! Please leave comments, suggestions below !

Get FSMO Roles in domain with Powershell

First, fire up a PowerShell windows with the Active Directory module. If you have the Admins tools installed, it should be called “Active Directory Module for Windows PowerShell” If you don’t have the admin tools install, you must install them, or log on a server that has them, like a Domain Controler. If you do…

Get a list of assigned IPs and Host name from System Center Virtual Machine Manager IP Pool

Run from Virtual Machine Manager PowerShell Console:  

PowerShell – Remove all files from a folder

This script will delte everyting in the “Script” folder, sub-folder, and the “-recurse” option will prevent the prompting of confirmation. The “-exclude” option alllows you to exclude files and folders.


More on the Remove-Item Powershell cmdlet can be found here: Powershell 1.0 http://technet.microsoft.com/en-us/library/ee176938.aspx Powershell 4.0 http://technet.microsoft.com/en-us/library/hh849765.aspx