Posts Tagged: powershell
-
May 15, 2011
3 CommentsRecycle an Application Pool on remote server using Powershell
The following script will let you recycle an Application Pool on a remote server running IIS 6 or IIS 7 (with IIS 6 WMI Compatibility Features installed). The script accepts 2 parameters: a server name and an application pools name, in the following format: PS >.\RecycleIIsAppPool.ps1 server_name "application_pool_name" To obtain a list of application pools...
-
May 14, 2011
No CommentsList IIS application pools on remote server using Powershell
The following script will let you query remote IIS server and return a list of the application pools on that server. It is assumed that you run the script with domain account that is a member of Administrators group on the remote computer but the script can be easily modified to use other credentials. This...
-
Nov 22, 2010
No CommentsHow to exclude Exchange 2010 Mailbox Database from provisioning.
Microsoft Exchange 2010 offers a feature to automatically select the database in which new or moved mailbox will be stored. This is a great feature and it does it’s job quite good too. With the release of Exchange 2010 Service Pack 1 we are now able to specify the database we want to create online...
-
Oct 31, 2010
No CommentsSend email with folder sizes report in CSV from Powershell
We’ve recently rolled out Folder Redirection and although we haven’t implemended quotas we wanted to be able to monitor the amount of space redirected folders are using on the server. Following script generates the report in CSV format: Name | Size(MB) | Path and sends it to email address. ReportUserFoldersSize.ps1: $path = "Path_To_Folders_Root" $EmailFrom =...
-
Oct 27, 2010
No CommentsSend email with Exchange mailbox statistics in CSV from Powershell
Would you like to receive weekly email from your Exchange server with mailbox statistics attached in a CSV file? Script below will generate CSV file with the following format: Name | ItemCount | Size | DeletedItemCount | DeletedItemsSize | MailboxDatabase and email it to address specified. ReportMailboxSizes.ps1: $EmailFrom = "from_address" $EmailTo = "to_address" $EmailSubject =...
