Hartford Code Camp 3 Session Materials
June 22, 2010 Leave a comment
I had the pleasure (as well as a scenic country drive) to participate as a speaker at the 3rd Hartford Code Camp this past Saturday, just outside HFD in Bloomfield, CT. Unfortunately I could not stay past my session (9a – 10:15a), but, it was fun for the short time I was able to be there! From what I saw, both Bob and SB put together a great Code Camp, at a great location. Kudos to you both!
Thanks to those that dropped into my session, I had a feeling I would be attending another session as 9am struck on the clock, but then I had a healthy dose of attendees drop in, and we soon got underway.
I presented a session on “What’s New for Developers in SharePoint 2010”, slightly modified from the last time I had presented the material a few months ago, at the Western MA Microsoft Technology Users Group.
Below is the slide deck for all those interested, as well as the code samples that would have been used in the PowerShell segment, if we had the time…
Thanks again for attending!
Below are the PowerShell commands that I would have used, in the PowerShell section of the presentation, if we had the time to do it 🙂
Code Samples
PowerShell commands to enable the Developer Dashboard
1: [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings.DisplayLevel='OnDemand';
2: [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings.Update();
PowerShell command to get a listing of the URL, Author, and Title of a Web
1: Get-SPweb -site http://whatsnewin2010.dev.grace-hunt.com | ft Url, Title, Author
PowerShell command to get the Title of all of the lists within a Web
1: Get-SPweb -site http://whatsnewin2010.dev.grace-hunt.com | foreach { $_.Lists | ft $_.Url, Title }
PowerShell command to get the listing of all of the Resource settings for the User Code service (Sandbox Solutions)
1: [Microsoft.SharePoint.Administration.SPUserCodeService]::Local.ResourceMeasures
PowerShell commands to enable the User Code service to run on a Domain Controller (local image development for Sandbox Solutions)
1: $acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName
2: $person = [System.Security.Principal.NTAccount]"Users"
3: $access = [System.Security.AccessControl.RegistryRights]::FullControl
4: $inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
5: $propagation = [System.Security.AccessControl.PropagationFlags]::None
6: $type = [System.Security.AccessControl.AccessControlType]::Allow
7: $rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
8: $acl.AddAccessRule($rule)
9: Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl
PowerShell commands to view the Property Bag of a Web
1: $web = get-spweb -site http://whatsnewin2010.dev.grace-hunt.com
2: $web.AllProperties | ft