Blog

PowerShell

Creating user accounts from CSV in PowerShell

This PowerShell scripts shows how to create user accounts that are located in a .csv file and move it to a specified OU. You can add lots of attributes to the New-ADUser cmdlet for example: –mail –manager –mobile etc. I created a users.csv file before I executed this...

Get SharePoint 2010 SMTP Server with PowerShell

Because we monitor a lot of SharePoint servers we dont want to click through central admin if we want to know if anything has changed. The SMTP server is also something that we want to see with our summary script. There are a couple of ways to get the SMTP Server...

Get SharePoint 2010 version with PowerShell

As part of the summary script I use the following code to get the SharePoint 2010 version. This identifies which CU or Service Pack has been installed. There are a couple of ways for getting the build version: 1. Using Central Administration It is of course possible...

Get SharePoint 2010 Edition with PowerShell

This is a script that identifies if SharePoint 2010 foundation, standard or enterprise is installed in your environment. This is part of an SharePoint 2010 summary script I created. I will post some bits of this script on my blog starting with the SharePoint 2010...

Shedule task with PowerShell

This blog contains a script which can be run to set schedule a task with PowerShell that also runs a PowerShell script. We create 5 tasks using this script when we install SharePoint 2010. function CreateTask { #Change below variables...

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Archive