Monthly Archives: September 2012

How to make a AdminContent and SharePoint_Config database without a GUID

 

 

There are only a few ways to make SharePoint databases, Automatic or Manual. If you choose the automatic way you get ugly GUID’s behind your databases and if the wizard did all the handy work for you  everything is configured under one Service Account. A true passionate admin go’s for the manual path and want as less GUID’s as possible.

Some Service Applications give you the option to specify the database name but unfortunately not all. I suggest to look in to PowerShell and find the scripts to create also those ones by one completely the way you like them to be.

For the first two databases of your farm you need to do a little trick to get rid of the GUID.

The AdminContent database is like the name says the Content Database for the SharePoint Configuration Console. The other one is the SharePoint_Config database which holds the little configuration settings of your farm.

I suggest to make your own naming convention to keep everything clear. I always rename the SharePoint_Config to SharePoint_Farm_Config and the AdminContent to SharePoint_AdminContent so both stay nicely together in alphabetical order in SQL.

 

Here how to make the GUIDless

After you run the installation and you get the question to run the Product and Configuration wizard it’s very important to uncheck the little checkbox and stop the installation.

Make sure your logged on as DOMAIN\SPsetup and SPsetup had dbcreate and securityadmin server roles authorizations in SQL.

 

Check if your User Access Control Level is disabled in the Control Panel under the users section and run the command prompt as an Administrator Run >> cmd -admin

 

Go to this path, C:\Program Files\Common Files\microsoft shared\Web Server Extentions\15\BIN
Change the number to your SharePoint version, 12 = MOSS 2007, 14 = SharePoint 2010 and 15 = SharePoint 2013

 

Run the following code from your DOS Prompt with elevated admin privileges!!

psconfig -cmd configdb -create -server <SQLServerName> -database <ConfigDatabaseName> -user <DOMAIN\farmaccount> -password <FarmAccountPassword> -passphrase <PassPhrase> -admincontentdatabase <AdminContentDatabaseName>

 

Example

psconfig -cmd configdb -create -server SharePoint_DB_SRV -database SharePoint_Farm_Config -user DOMAIN\SPfarm -password ******* -passphrase ******* -admincontentdatabase SharePoint_Farm_Admin_Content_DB

Now you see the PSConfig.exe do some stuff and you have two fresh databases. check SQL Studio Manager. If you have any problems I guess you have not set your permissions correct for the two accounts or the command prompt is not ran as an administrator.

Good luck


Usage and Health Data Collection Service Proxy Stopped

Sometimes you notice that under the Service Applications which are provisioned one of them is stopped. If that’s the case you have to restart them via PowerShell. The Usage and Health Data collection Service Proxy is stopped almost certain after provisioning and sometimes just to be spontaneous. It’s an unfortunate known bug.

 The PowerShell Script below will help you restart the Service Application.  

  1. Open PowerShell and Add the SharePoint Snapin.
    Add-PSSnapin-Microsoft.SharePoint.Powershell
  2. Get-ServiceApplicationProxy
    This will give you a whole list of Service Applications.
    Get-SPServiceApplicationProxy | where {$_.TypeName -like “Usage*”}
    This will only give you the Usage Data Collection Service Proxy because your filtering on one starting with the word “Usage*”
  3. Double click on the ID number and copy it to an empty notepad file.
  4. Copy the script below and replace the part with the ID you just copied.
    $UP = Get-SPServiceApplicationProxy | Where {$_.ID -eq “Paste ID Here”}
    $UP.Provision()

Now if you refresh the page with your published Service Applications in Central Admin the SA is Started.