Tuesday, March 31, 2015

SharePoint: Remove User from Site Collection

That's an easy one. I wanted to remove a certain User from a SC, because it seems that the profile didn't get an update.

1) Head over to Site Permissions
2) Choose any group you want, click on it. The address is something like /_layouts/people.aspx?MembershipGroupID=1
3) Change the ID to 0

Now you will see a list of all Users in that particular SC. You can now remove the Users.

Thursday, March 26, 2015

Sharepoint: Get a list of all Site Collections & Libraries

Here's a little script which will help you get every Site Collection in a WebApp.
It will also go through every Web you have in a Site Collection and give you a summary of the found document libraries at the end.
You will also get a transcript stored in the same directory as the script is started from.
The filename is the title of your WebApp.

Friday, March 6, 2015

AWS: Get all running instances across all regions

I got something new and shiny to play with: Amazon Web Services, or AWS. I made a little script on how to get every running instance in every region. I think it might be usefull if you got a lot of systems in different regions. This script will only show you the running instances. You would have to add another line to automatically shut them down.
You will need the AWS Tools for PowerShell to run this script.