UAC – Accessing Internet Explorer

Accessing Internet Explorer can be useful for obtaining Web content. The usual approach uses a COM object called InternetExplorer.Application like this: $ie = New-Object -comObject InternetExplorer.Application$ie.visible = $true$ie.navigate(‘http://www.powershell.com’)$ie$ie.Document Unfortunately, this approach fails when you use IE with enhanced security (Vista UAC for example). While you can open IE and navigate to the Web page, you…

0

Save Team Foundation Server Password

Have you ever be tired of entering your password every time you access your Team Foundation Server (TFS) project. Don’t worry. There’s a way to bypass the login my storing your passwords in a secure vault. For Windows 7 users: Start Menu>Control Panel User Accounts and Family Safety > Credential Manager Add A Windows Credential>…

1

SharePoint stsadm.exe and Powershell

Trying to run the SharePoint tool stsadm.exe in PowerSehll I get the following error: The term ‘stsadm.exe’ is not recognized as a cmdlet, function, operable program, or script fileTo get stsadm.exe to work in PowerShell you have to edit the ‘profile.ps1’ file.Look in C:\WINDOWS\system32\windowspowershell\v1.0\ and if it doesn’t exist just create a new file and…

0

SharePoint Page Layout Error: Only Content controls are allowed directly in a content page that contains Content controls

I recently built a SharePoint feature to provision custom master pages and page layouts for a client.  Overall the solution worked pretty well until one day, while making changes to one of the page layouts, I saw the following error: Only Content controls are allowed directly in a content page that contains Content controls. Since…

10

Aggregating content with the Content Query Web Part (CQWP)

In most web content management projects based on SharePoint the Content Query Web Part is used for aggregating content. Out of the box it have a few styles, but seems a little limited. With a little tweaking you can display the information you want in the way you want it. There are mainly three parts…

1

Feature Stapling

Causes the attachment of a Feature to all new instances of sites that use a given site definition, without modifying the site definition or creating code routines to activate the Feature on each site. Also known as a feature site template association, Real World Example A developer creates a Feature and to add it to…

0

IIS Service Unavailable Error on a 64 bit operating system

PROBLEM: If you find this error in the event log when starting an iis service on a 64 bit operating system (personally this happened to us with SharePoint). (This is also followed by a Service Unavailable error when trying to use the application): Event Log: Could not load all ISAPI filters for site/service. Therefore startup…

4

SharePoint JavaScript – Page Load Add function: _spBodyOnLoadFunctionNames

In most cases SharePoint pages are based on a master page that contains the “body” element. These content pages can’t directly add a function to the body’s onload event. In order to work around this limitation, SharePoint provides the “_spBodyOnLoadFunctionNames” array. When the body is loaded, the onload event handler executes each function whose name…

4

Adding SharePoint Search to IE7

The following registry file can be used to add MOSS search to the list of IE7 search providers … so you can access it from the top right search box. (Rename xxxx with the name of your MOSS machine) Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Intranet] "DisplayName"="Search Intranet" "URL"=http://xxxx/searchcenter/pages/search_results.aspx?k={searchTerms}&s=Intranet [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\People] "DisplayName"="Search people" "URL"="http://xxxx/searchcenter/pages/people_results.aspx?k={searchTerms}" Save…

1