Thursday, July 8, 2010

check Kerberos Authentication

if you have in the Domain Controller in the System Event Viewer an Error with ID 11 and source KDC (which is logged if your Kerberos is not working and after you try to access the site from the DC) with something like DS_SERVICE_PRINCIPAL_NAME it means something is not working, use http://support.microsoft.com/kb/321044 with method 2 to solve it:

example:
C:\Documents and Settings\moss_sysadmin>ldifde -f check_SPN_MOSSDEVWFE.txt -t 32
68 -d "" -l servicePrincipalName -r "(servicePrincipalName=HTTP/MOSS-DEV-WFE*)"
-p subtree

where check_SPN_MOSSDEVWFE is the name you want to give the file and MOSS-DEV-WFE is the name of my Production server

Wednesday, July 7, 2010

add SPN entry for Kerberos SQL server authentication

SETSPN -A MSSQLSvc/.:1433

this is in case the instance is using the default port 1433.

to check what authentication a SQL connection is using, log on to your WFE and satrt the SQL Server Managemnet Studio (client tools), connect to the BE and place a new query:

select auth_scheme from sys.dm_exec_connections Where session_id=@@spid

Friday, February 5, 2010

Detect SQL servers on a domain

To find whether there is a connection to a SQL server and which SQL servers are available on the Network, type:

sqlcmd -L on the shell

Friday, December 18, 2009

DCOM and ASP.NET error and warning after SharePoint installation

In case you get the DCOM error logged to the windows events after installing SharePoint (MOSS), go to the IWAN Reg Admin Service reacheable from the administrative Tools -> Component services and grant the accounts (application Pool accounts) specified in the event error, launch permissions.

If you have the ASP.NET warning and do not reach your SSP admin site, add the following Windows accounts and permissions to the Windows\temp folder:
IISwpg Read and Network service modify permissions.

If you still have a problem, follow KB 825791.

Saturday, October 24, 2009

Disable the Shutdown Event Tracker

To disable the teasing Shutdown Event Tracker, choose start > Run... > and type GPedit.msc

Then go to Local Computer Policy > Computer Configuration > Administrative Templates > System > Dbl-Click "Display Shutdown Event Tracker" and select Disabled.

Setting up a Virtual Domain

Getting Multiple Virtual PCs to Work Together

Sunday, October 18, 2009

extending a virtual hard drive vhd for Virtual PC / Virtual Server

I saw this good link http://blog.donnfelker.com/post/Resizing-a-VHD-and-a-Volume.aspx to extend virtual hard disks. I change it a bit and here is what I did:

(please check as well the good post http://kb.dutchalps.com/microsoftvirtualpc.htm)

To extend the VHD you need to use a tool called VHResizer from the host. It is really good. Then add the new drive as a secundary HD of some virtual machine (does not need to be the one you are going to use that VHD - I used a Windows XP VM. In Disk management from windows, right click the just extended space and create a volume.

Then use the diskpart.exe command line tool from microsoft to extend the volume.

VMWare ESX has a tool for that included on the product called vmkfstools.