Saved for later reference

online repository of stuff I had to google for hours to figure out – and random snippets of code

Active Directory user GUID

Tags: , , , , , ,

I found this page which contains an old oneliner to get a user GUID in PowerShell – but sadly it doesn’t work anymore.

After some tricking around, I found the following to work:

(new-object Guid(,(([directoryservices.directorysearcher] "(samaccountname=theuser)").findall())[0].properties["objectguid"][0])).ToString()

MS Dynamics CRM installation: ASP.NET 2.0 is not installed

Tags: , , , ,

I got this error message on a server while installing Dynamics. At first I thought the problem was that my IIS is running 64 bit .NET 2.0 (I’ve had problems with that in the past), but it turns out that the actual problem is that .NET 4.0 was installed.

This guy figured out what the problem is: The installer checks for a specific filter in the IIS settings, which doesn’t exist when .NET 4.0 has been installed.

I’ll repeat the fix here, hopefully making this a bit more “discoverable” by search engines (searching the exact error message gave me nothing helpful, just tips about running aspnet_regiis.exe -i repeatedly):

In IIS Manager, right click Web Sites, and select Properties.

Under ISAPI Filters, Add a new filter you call ASP.NET_2.0.50727, pointing to C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_filter.dll (assuming 64 bit server, otherwise substitute Framework for Framework64).

Dynamics should now install without issue.


“Couldn’t generate the upgrade script.” for version C.0.8.40 of MS SQL Reporting Services

Tags: , , , , ,

The error message “Couldn’t generate the upgrade script” pops up during configuration of Reporting Services for MS SQL Server 2005, if you install reporting services after installing a service pack – in my case Reporting Services was installed as SP1, while the main SQL Server 2005 install was updated to SP3.

Reinstalling SQL Server 2005 SP3 fixed it.


© 2009 Saved for later reference. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.