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...
Blog
PowerShellGet SharePoint 2010 Managed paths with PowerShell
You created an environment with a couple of web applications that each have their own unique managed paths. With this PowerShell code you can view which managed paths you have used for each web application. You dont have to click trough SharePoint 2010 anymore. 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...