Can’t Find PowerShell Modules Shortcut

The new server build process seemed to have changed slightly for my most recent SharePoint 2010 server. Everything looked for the most part as it should, but there were still a couple of minor things here and there that just seemed slightly different.

Fast forward in time – I have SharePoint installed, patched, and configured. Now I need to run some PowerShell commands to check a few things – but there aren’t any PowerShell items under All Programs > Administrative Tools as there is on my other servers. Sure, I have the basic “Windows PowerShell” folder under “Accessories,” but that’s about it.

Normally I’d say “ok, no problem” and move on, but I wasn’t even able to add my SharePoint snapin in a normal PowerShell window as a work around:

PS C:\>add-pssnapin microsoft.sharepoint.powershell
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

After a bit of research I found that it’s an issue with some combination of Windows Server 2008 R2 SP1, .NET 4, and PowerShell 3. Doesn’t Microsoft make all 3 of these? Why can’t they play well?

Anyway. No need to uninstall .NET 4 or any crazy work-arounds. Just go to Control Panel > Uninstall a Program > View installed updates > and search on “Windows Management Framework.” You’ll likely have “Microsoft Windows Management Framework 3.0 (KB2506143)” installed.

Uninstall Windows Management Framework 3

Uninstall it and reboot when finished.

Like magic, I now have my “Windows PowerShell Modules” app link that loads everything I need, as well as the “SharePoint 2010 Management Shell” under the SharePoint folder!

Thanks to Trevor’s answer in this thread for saving my day. I figured I’d post this here for my own future reference, and also because my scenario started out slightly different than original topic in that thread.

SharePoint 2010 ‘allowInsecureTransport’ error

I’ve been working with SharePoint 2010 and Word Automation Services quite a bit these days. I recently ran into an error that I just could not figure out. There’s very little out there on teh interwebs, and the only solution that I found sounded perfect. At first.

When attempting to convert a file from .docx to .pdf via Word Automation Services we were receiving:

Unrecognized attribute ‘allowInsecureTransport’. Note that attribute names are case-sensitive. (D:\Program Files\Microsoft Office Servers\14.0\WebServices\WordServer\Proxy.config line 77)

This was a brand new SharePoint install and everything appeared to be configured correctly. The ONLY solution that I could find was to apply a .NET hotfix (KB976462). It made sense. It sounded perfect! However… the .dlls that the hotfix wanted to apply were at an older version than what was already on the SharePoint server. At this point, we opened a case with Microsoft… (more…)

Make the Most of Your SharePoint 2007 Wiki

On a normal day lately, I’ve been either migrating old 2003 sites to 2007, or finding ways to implement functionality that’s not exactly “out of the box” to accommodate various needs. This usually involves a few “related” lists, maybe some custom SPD workflow, and a DVWP or two. It’s fun! And then… I need to document what I’ve done for either the users to understand how to use it, and what to expect. Or more likely, for myself to refer to down the line when someone asks me to go back and support it 😉

Sure, you can use the SharePoint wiki as-is. It’s fine. It “works”. But I like to take it a step or two further. Here are some “extras” that I implement on most wikis that I create these days. (more…)

Problems Adding ListViews to DispForm.aspx in SharePoint 2007

Strange problems when attempting to add ListViews to the DispForm.aspx (kind of similar to the breakage of attachments of a customized EditForm.aspx).

If you use the trick to add web parts so that you don’t unghost the page… ListViews added will not display the title, or a border. They’re “stuck” with a default. If you convert it to a DVWP, everything’s snazzy.

If you want to use a query string filter, this also will not work. You will need a DVWP to do this.
Add a LVWP to the page using the trick above, then open in SPD and Convert to DVWP. Then setup a query string parameter to filter the DVWP on. As long as you don’t start monkeying with the code, making these changes in SPD doesn’t seem to unghost the page.

IE 9 Shortcut Behaviors

I’ve recently upgraded from IE 8 to IE 9 on my Windows 7 machine and started noticing some strange behavior. When I want to save “bookmarks” I usually just drag the URL to a folder on my computer instead of actually creating a bookmark within the application. I seem less likely to forget about going back to them later this way.

Since the upgrade I’ve noticed inconsistencies with these shortcuts. When I double-click on them, some would open in a new tab while others would open in a completely new window. Those who know me would initially think “You have too many tabs open, so it’s opening the overflow into new windows” – but that doesn’t appear to be the case.

I’m not sure if it’s strictly the shortcuts from after the upgrade that are exhibiting this behavior, or just some of them (I haven’t done enough testing). I do know that at a minimum that it is not a random behavior – it’s always the same shortcuts that open in a new window.

My IE preferences are already configured to always open links and pop-ups in new tabs, so that wasn’t it, and viewing the properties of the shortcuts didn’t see to help either. I figured I’d try to edit the shortcuts and see if I could figure out what the difference was that caused this behavior. Bingo! I should have looked a little closer at the shortcut properties.

The shortcuts that opened in new tabs were “.url” files, while the shortcuts that opened in new windows are “.website” files. There’s about twice as much data in the shortcuts that open new windows, and all had different GUIDs. The shortcuts that opened in new tabs seemed to have all the same generic content with the exception of the URL propertly. Also, the .website shortcuts are called “Pinned Site Shortcuts” while the .url shortcuts are called “Internet Shortcuts”. I was able to copy the URL from one of the new-window shortcuts and paste it into one of the new-tab files and save it with a new name and it worked beautifully.

What a frustration. Now I have to figure out how to create the appropriate shortcut types on-demand. 🙂

Here is an example of the contents of a .website file:

Prop4=31,Page Title Here

And here is an example of the contents of a .url file: