Powershell: Changing registry key value
After posting Pagefile size bigger than 4095MB on Windows Server 2003 I had the Idea to change this...
Powershell: Count Sharepoint Sites on Sharepoint Server 2010
This is a very small line of code to count Sharepoint 2010 Site Collections with Powershell. (Get-SPSite -Limit all).Count By the...
Powershell: Working with XML part 2
After my first post (Powershell: Parsing XML part 1) about working with XML and Powershell, I have create this second post which describes...
PowerShell: Count your Code lines
After Coding some lines in a lot of different files you wanna know how much lines you have coded....
Powershell: Simple retry logic
I am working on some larger PowerShell scripts right now and so I needed to create a simple retry logic for sending web request to a...
Powershell: Get Sharepoint 2010 Site Collection Storage Usage
If you need to get the Storage Usage from a Sharepoint 2010 Site Collection, you can do this with Powershell. 1. Start SharePoint 2010...
Powershell: check variable for null
If you are working a lot with PowerShell parameters and inputs you need to check if variables have...
Powershell: Send Tweet
For some reason your Powershell script should send a Tweet. With this function Powershell will send a message to Twitter. function...
Powershell: Parsing XML part 1
In my company, we started to use XML files as configuration files. So we use it for some configurations of servers or automation for our...
Powershell: Invoke-Expression
Using the Invoke-Expression Cmdlet: The Invoke-Expression cmdlet provides one way to run a script...