Monday, April 30, 2012

Windows PowerShell Command Builder for SharePoint 2010 Products and Office 365

If you're like us, you're starting to figure out that you can do much more with SharePoint through PowerShell than you can through Central Admin. Microsoft recognize that not everyone is comfortable with PowerShell so they've created an excellent tool to help rookies create scripts they can use for everyday administration tasks.


Windows PowerShell Command Builder for SharePoint 2010 Products and Office 365 is a Silverlight® 4 application that is designed to help IT professionals and power users learn how to use Windows PowerShell for administrative tasks. The Windows PowerShell Command Builder enables IT professionals and power users to visually assemble commands related to SharePoint 2010 Products and Office 365 in the browser and take those commands to their respective products.


You can access the tool here: http://www.microsoft.com/resources/TechNet/en-us/Office/media/WindowsPowerShell/WindowsPowerShellCommandBuilder.html


And the getting started guide is here: http://www.microsoft.com/download/en/details.aspx?id=27588


Here's a screen shot to give you an idea of how the drag and drop interface looks:


If you're interested in learning more about administering SharePoint with PowerShell, have a look at the following:


http://dmitrysotnikov.wordpress.com/2010/04/14/sharepoint-2010-powershell-cheat-sheet/
http://technet.microsoft.com/en-us/sharepoint/ee518673
http://technet.microsoft.com/en-us/library/ee806878.aspx


Happy scripting!

Friday, April 27, 2012

List of SharePoint 2010 Site and List Templates

The following is a handy list of all the available site templates followed by the list templates in SharePoint 2010:



Thursday, April 26, 2012

Disable "Anyone outside my organization" in Outlook/Exchange 2010

We had a requirement in our organization recently to disallow sending auto replies (formerly know as out-of-office messages) to recipients outside our organization who are not in our contacts. The basis for the request was to stop spammers from finding valid email addresses and to prevent SMTP loops. There are also concerns around privacy. You don't want people you don't know being aware you're out of town on vacation for the next two weeks!


To achieve this we run a script which changes the mailbox settings to disable the “Anyone outside my organization” in Outlook:
The following script was setup on our Exchange 2010 server to run as a scheduled task every hour (D:\scripts\lockextooftocontactsonly.ps1):
Get-Mailbox -database "DB01" | Get-MailboxAutoReplyConfiguration | where {($_.AutoReplyState -eq "Enabled") -AND ($_.ExternalAudience -eq "All")} | foreach {Set-MailboxAutoReplyConfiguration $_.Identity -ExternalAudience "Known"}


Note: You need to change DB01 to the name of your mailbox database.

The script does not disable the ability of a user to select the “Anyone outside my organization” option. It simply changes the option to “My Contacts only”. As a result the script needs to be run numerous times throughout the day to update the mailboxes with the proper setting.