PowerShell script for (automatically) importing user attribute data into active directory. (source XML, destination AD)
http://adimportxml.codeplex.com
Tested with: Active Directory 2008 (I’am sure it will also works with AD 2012)
PowerShell error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.
When you run SharePoint management powershell on your SharePoint 2010 server you get the following error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered. Solution: Make sure the logged in user has the correct rights to the SharePoint_Configuration database SharePoint_Shell_Acces or: DB_reader or DB_writer Use the following Powershell cmdlet to give … Continued
SharePoint PowerShell Backup Script with Windows Scheduler
An easy script to backup your SharePoint farm with Windows scheduler. First create a powershell script: 1-Backup a site: Add-PSSnapin Microsoft.SharePoint.PowerShell backup-spsite -identity $args[0] -path $args[1] -force 2-Backup the complete farm: Add-PSSnapin Microsoft.SharePoint.PowerShell Backup-SPFarm -Directory $args[1] -BackupMethod full Next, create a .bat script to start the powershell script: @echo off SET SOURCE_SITE=http://sharepointfarm/ SET DEST=E:\SQLBackupFolder\ echo … Continued
DPM 2010 create catalog PowerShell script
A little script to do a DPM 2010 restore on item-level to a SharePoint 2010 farm directly after creating the first backup of the SharePoint 2010 environment. Normally every 24 hours, DPM will create a catalogue of the Sharepoint environment in order to allow the item-level recovery. To force this task (for demo purposes maybe) you can … Continued
Add User to Farm admin group PS script
I wrote a little script in PowerShell to add users to the Farm Administrator group of a SharePoint environment. You can easily customize this script for other SharePoint groups or import users from a CSV file to import multiple users into a SharePoint Group. # <# # .DESCRIPTION # Add users to the Farm Administrators … Continued
