PowerShell

Powershell – Access Request Settings (SharePoint 2010 & 2013)

I had a request to turn on all access requests or notifications on all sites with a web application. PowerShell is your best bet for doing these types of occasional tasks. This script will turn access requests on for all sites. Change the email address below to the intended recipient. # Get All Web Application $webApp=Get-SPWebApplication # Get All site collections foreach ($SPsite in $webApp.Sites) { # get the collection…

PowerShell

PowerShell – Find SharePoint Group Assignments

This PowerShell script will enumerate through all sites in the collection and return any sites that contain a given group name. Replace the red text, Administrative Members with the name of the group. # Get All Web Application $webApp=Get-SPWebApplication # Get All site collections foreach ($SPsite in $webApp.Sites) { # get the collection of webs foreach($SPweb in $SPsite.AllWebs) { foreach($SPG in $SPweb.Groups) { if ($SPG.Name -eq “Administration Members“) { Write-Host…

SharePoint 2013 place holder

SharePoint Powershell , Get all site workflows by list

This PowerShell Script returns all sites that have a list with workflows. It pipes to an output file named output.txt $webApp=Get-SPWebApplication "Powershell script by Jeremy @ <a href="http://www.BondByte.com">http://www.BondByte.com</a>" | Out-File output.txt " "  | Out-File output.txt -append    # Get All site collections     foreach ($SPsite in $webApp.Sites)     {        # get the collection of webs        foreach($SPweb in $SPsite.AllWebs)         {         foreach($SPList in $SPweb.Lists)         {         if…

SharePoint 2013 place holder

Run SharePoint Workflow for all list items

This is one of those, durrrr, why didn’t I think of that solutions. Basically, I have this workflow that sets up data in another column. There was a change to the system and I needed to rerun the workflow for all the items in the list. After some searching, you can’t really kick off a workflow for all items. What you can do, change the workflow start criteria to fire…

InitializeControl

The name ‘InitializeControl’ does not exist in the current context

I’ve ran into this error several times now. The name ‘InitializeControl’ does not exist in the current context There have been several suggestions on how to fix this, some blogs say to create a new Visual Web Part in the Template folder and copy it back into the Web Part Project and a myriad of other mumbo jumbo. I discovered the cause of the problem by reading a connect.microsoft submission,…