Geeks With Blogs
Reidar Husmo SharePoint from the trenches April 2012 Entries
Office14 guids
Ok, perhaps not the most meaningful post today, but I haven’t seen it mentioned anywhere else. Crank open a SharePoint web.config, and scroll down to the "action" elements. <Action id="0ff1ce14-0001-0002-0000... <Action id="0ff1ce14-0001-0003-0000... <Action id="0ff1ce14-0001-0004-0000... <Action id="0ff1ce14-0001-0005-0000... <Action id="0ff1ce14-0001-0006-0000... etc. Cute ......

Posted On Thursday, April 26, 2012 2:51 PM

SharePoint PowerShell Error: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

So you've already checked that you have the necessary rights.

Did you install Powershell 3.0 CTP?

Powershell 3.0 CTP seems to have some issues with the SharePoint snapin, and will not give you the above error. Uninstall it, and things start working again.

Posted On Thursday, April 19, 2012 4:58 PM

Creating SharePoint sites from xml using Powershell
It is frequently useful to create / delete web applications in a development environment. If you need to create a structure, this can quickly become tedious. Enter Powershell, xml and recursive functions. Create the structure in xml. Something like: <Sites> <Site Name="Test 1" Url="Test1" /> <Site Name="Test 2" Url="Test2" > <Site Name="Test 2 1" Url="Test21" > <Site Name="Test 2 1 1" Url="Test211" /> <Site Name="Test 2 1 2" Url="Test212" /> </Site> </Site> ......

Posted On Thursday, April 12, 2012 2:53 PM

Powershell progress dialogs
Creating nested progress dialogs in Powershell is easy. Let the code speak for itself: for ($i = 1; $i -le 2; $i++) { Write-Progress -ID 1 -Activity "Outer loop" -Status "Tick $i" -percentComplete ($i / 2*100) for ($j = 1; $j -le 3; $j++) { Write-Progress -ID 2 -Activity "Mid loop" -Status "Tick $j" -percentComplete ($j / 3*100) for ($k = 1; $k -le 3; $k++) { Write-Progress -ID 3 -Activity "Inner loop" -Status "Tick $k" -percentComplete ($k / 3*100) Sleep(1) } } } I.e. some text that explains what ......

Posted On Wednesday, April 11, 2012 1:21 PM

Copyright © Norgean | Powered by: | Join free