How to Recreate the SBSMonitoring Database
[Today's post comes to us courtesy of Damian Leibaschoff from Commercial Technical Support]
In SBS 2008 and SBS 2011 standard, we have a service called the Windows SBS Manager that is responsible for a number of tasks around monitoring, alert reporting and maintenance. This service relies on a SQL database running on a SQL express instance called SBSMonitoring. Under certain circumstances, the database may become unusable, when this happens you can experience behaviors like the SBS console crashing, or incorrectly reporting the status of machines. When this happens there might be a need to create a new, blank, database to regain functionality. Since all the information collected is dynamic, by creating a new database you would lose only any custom reports you may have created in the SBS Console, report customizations, and all the archived reports. Furthermore, upon recreating the database, it will need some time to contact all clients and report on their status, this time may vary, since clients may be offline, it is recommended to wait 48hrs before trying to validate the data.
To recreate the databases use these steps:
- Download the following package: https://skydrive.live.com/self.aspx/.Public/MonitoringDBRecreate/Create-SBSMonitoringDb.zip?cid=d5fe25afb6c3615f&sc=documents
- Extract the files to c:windowstemp
- Complete the one set of the following steps according to the version you are working with:
For SBS 2008
- Launch an administrative PowerShell session
- Launch the script:
C:windowstempCreate-SBSMonitoringDb.ps1 - After completing the script and verifying that that monitoring is working, complete the steps in this article: https://blogs.technet.com/b/sbs/archive/2009/07/14/sbs-2008-console-may-take-too-long-to-display-alerts-and-security-statuses-display-not-available-or-crash.aspx
For SBS 2011 Standard
- Launch "C:Program FilesWindows Small Business ServerBinMoveDataPowerShellHost.exe" as an administrator
- Launch the script:
C:windowstempCreate-SBSMonitoringDb.ps1
Trouble Shooting:
File C:windowstempcreate-sbsmonitoringdb.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
By default we should have the required code execution policy on our SBS servers, this issue is usually related to the way the script was downloaded into the affected server. Open the properties of the download script file from Windows Explorer and click on the Unblock option.
Comments
Anonymous
August 22, 2011
Hooray! I've been waiting for this for a long time. I've copying SMSMonitoring databases from working servers to fix broken ones.Anonymous
July 29, 2014
The comment has been removedAnonymous
October 02, 2014
Ran this script and it did not work. no errors, no new database. SBS2008 up to date.
Anything else?Anonymous
November 24, 2014
Works on SBS 2011 fine, THANKSAnonymous
December 06, 2014
Thought our SBS2011 was really sluggish due to sql memory usage. Checked SBSMonitoring db and it was over 10GB. This fix did it and now have great performance.Anonymous
December 06, 2014
The comment has been removedAnonymous
December 06, 2014
To clarify I'm getting this:
PS C:windowstemp> .Create-SBSMonitoringDb.ps1
Stop-Service : Cannot stop service 'SQL Server (SBSMONITORING) (MSSQL$SBSMONITO
RING)' because it has dependent services. It can only be stopped if the Force f
lag is set.
At C:windowstempCreate-SBSMonitoringDb.ps1:28 char:13
+ Stop-Service <<<< 'MSSQL$SBSMONITORING'
+ CategoryInfo : InvalidOperation: (System.ServiceProcess.Service
Controller:ServiceController) [Stop-Service], ServiceCommandException
+ FullyQualifiedErrorId : ServiceHasDependentServices,Microsoft.PowerShell
.Commands.StopServiceCommand
Rename-Item : The process cannot access the file because it is being used by an
other process.
At C:windowstempCreate-SBSMonitoringDb.ps1:45 char:5
+ ren <<<< $dbpath -NewName "SBSMonitoring.mdf.$date"
+ CategoryInfo : WriteError: (C:Program File...SMonitoring.mdf:S
tring) [Rename-Item], IOException
+ FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.
RenameItemCommand
Backup file created - remove it after functionality is restored to recover the d
isk space .2014_12_07_12_37_09
Rename-Item : The process cannot access the file because it is being used by an
other process.
At C:windowstempCreate-SBSMonitoringDb.ps1:49 char:5
+ ren <<<< $ldpath -NewName "SBSMonitoring_log.LDF.$date"
+ CategoryInfo : WriteError: (C:Program File...itoring_log.LDF:S
tring) [Rename-Item], IOException
+ FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.
RenameItemCommand
Backup file created - remove it after functionality is restored to recover the d
isk space C:Program FilesMicrosoft SQL ServerMSSQL10_50.SBSMONITORINGMSSQLD
ataSBSMonitoring_log.LDF.2014_12_07_12_37_09
GAC Version Location
--- ------- --------
False v4.0.30319 C:Program FilesWindows Small Business ServerBinMon...
Changed database context to 'SBSMonitoring'.
(1 rows affected)
PS C:windowstemp>Anonymous
December 06, 2014
The comment has been removedAnonymous
January 06, 2015
The comment has been removedAnonymous
January 20, 2015
Perfect! Works a treat in SBS2011 Standard!Anonymous
February 16, 2015
Completely unthrilled with this script which merely succeeded in trashing my monitoring database. Here is the partial output:
PS C:> .\WindowsTempCreate-SBSMonitoringDb.ps1
WARNING: Waiting for service 'SQL Server (SBSMONITORING) (MSSQL$SBSMONITORING)' to finish stopping...
WARNING: Waiting for service 'SQL Server (SBSMONITORING) (MSSQL$SBSMONITORING)' to finish stopping...
Backup file created - remove it after functionality is restored to recover the disk space .2015_02_16_05_40_53
Backup file created - remove it after functionality is restored to recover the disk space C:Program FilesMicrosoft SQL
ServerMSSQL10_50.SBSMONITORINGMSSQLDataSBSMonitoring_log.LDF.2015_02_16_05_40_53
WARNING: Waiting for service 'SQL Server (SBSMONITORING) (MSSQL$SBSMONITORING)' to finish starting...
WARNING: Waiting for service 'Windows SBS Manager (DataCollectorSvc)' to finish starting...
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///c:program filesWindows small business serverbinMonitoringCommon.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."
At C:WindowsTempCreate-SBSMonitoringDb.ps1:64 char:39
+ [system.reflection.assembly]::LoadFrom <<<< ("c:program filesWindows small business serverbinMonitoringCommon.dll
")
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
New-Object : Cannot find type [Microsoft.WindowsServerSolutions.SystemHealth.Monitoring.ReportContent]: make sure the assembly containing this type is loaded.
followed by about a dozen other errors the same type, complaining about this DLL mismatch.Anonymous
April 08, 2015
The comment has been removedAnonymous
May 10, 2015
I had to add the -force to those two lines as well to the script.
After that I manually ran a report and it worked fine. Thank you!Anonymous
May 20, 2015
Ok, many thanks for this!Anonymous
May 30, 2015
Thanks for the info on this fix. Our server was S U P E R Sluggish. This fix solved the problem. Unblock option is helpful!Anonymous
July 28, 2015
The comment has been removedAnonymous
October 20, 2015
Worked fine had to unblock the file and add the -force commandAnonymous
October 22, 2015
I added the force command and the script seems to run about halfway, it doesn't seem to finish. No error message. It just doesn't do anything. Any ideas?Anonymous
December 02, 2015
The comment has been removedAnonymous
December 07, 2015
http://www.edhardypopsale.com
http://www.michaelkorsoutletsonlines.us.com
http://www.coachoutletonlinesstore.us.com
http://www.katespadeoutletsstore.us.com
http://www.cheapjordansretro.us.com
http://www.michaelkorsoutletsstores.us.com
http://www.coachhandbagstore.us.com
http://www.coachoutletsonlinestore.us.com
http://www.oakleyglassessale.us.com
http://www.toryburch-outlet.us.org
http://www.longchampsoutlet.us.com
http://www.innnov8.com
http://www.innnovate.com
http://www.uggbootsoutlets.us.com
http://www.redbottomshoeoutlet.com
http://www.monclerdownjackets.us.com
http://www.northfacestoresoutlet.us.com
http://www.katespadefactoryoutlet.us.com
http://www.monclerjacketsoutlet.com.co
http://www.maganates.com
http://www.coachhandbagsfactoryoutlet.us.com
http://www.katesapdeoutlet.us.org
http://www.outletraybans.us.com
http://www.raybans-glasses.us.com
http://www.burberryhandbagsoutlet.com.co
http://www.christianlouboutinshoes.name
http://www.outletnorthfacestore.name
http://www.coachfactoryoutlet.name
http://www.katespadesoutlet.us.org
http://www.michaelkorsfactoryoutletstores.us.com
http://www.coachoutlet.name
http://www.nikeairmaxstore.ru
http://www.monclerjacketsru.ru
http://www.tanienikerosherun.pl
http://www.nike-airmaxaustralia.com
http://www.airmaxsprzedazdla.pl
http://www.cheapnikeairmax.pl
http://www.nikeairmax.com.co
http://www.redbottomshoes.name
http://www.christianlouboutinoutlet.us.org
http://www.balenciagaoutlet.us.com
http://www.burberryshandbag.us.com
http://www.balenciagahandbags.us.com
http://www.louisvuittonwallets.org
http://www.uggsbootsoutlet.us.com
http://www.katespadeoutletsale.us.com
http://www.tomshoesoutlet.us.com
http://www.hermesbeltstore.com
http://www.uggboots2015.us.com
http://www.uggbootsoutlet.net
http://www.pradafactoryoutlet.com
http://www.uggbootssale.us.com
http://www.burberryhandbags.name
http://www.louisvuittonsoutlet.us.com
http://www.louisvuittonoutletsonline.us.com
http://www.northfaceoutletstores.us.com
http://www.north-face.us.com
http://www.north-faceoutlets.us.com
http://www.louis-vuittonfactoryoutlet.com
http://www.louisvuittons.name
http://www.louisvuitton-outletonline.com
http://www.timberlandsboots.us.com
http://www.cheaptimberlandboots.name
http://www.timberlandoutletstore.us.com
http://www.toryburchoutletstore.name
http://www.toryburchoutletstores.com
http://www.toryburchoutletonline.us.com
http://www.michaelkorsoutletusa.us.com
http://www.ralphlaurenstoreoutlet.name
http://www.guccifactoryoutlet.name
http://www.outletgucci.name
http://www.cheapguccihandbags.us.com
http://www.cheap-raybanglasses.us.com
http://www.outlet-northface.us.com
http://www.northfacestoreoutlet.name
http://www.prada-outlet.name
http://www.ralphlaurenoutletstore.name
http://www.northfacestoreoutlet.us.com
http://www.canadagoose-jackets.name
http://www.canada-goosejackets.name
http://www.burberrystoreoutlet.name
http://www.hollisterclothingoutlet.us.com/
http://www.tiffanystoreoutlet.us.com/
http://www.ferragamoshoes.name/
http://www.tiffanyandcooutlet.name/Anonymous
December 25, 2015
The comment has been removedAnonymous
January 07, 2016
http://www.happynewyear2016wishesimagessms.com/hindu-festival-2016/
http://www.happynewyear2016wishesimagessms.com/lohri-pics-lohri-sms-lohri-wallpapers/
http://www.happynewyear2016wishesimagessms.com/happy-lohri-images/
http://www.happynewyear2016wishesimagessms.com/happy-lohri-quotes/
http://www.happynewyear2016wishesimagessms.com/happy-lohri-wishes/
http://www.happynewyear2016wishesimagessms.com/happy-lohri-wallpaper/
http://www.happynewyear2016wishesimagessms.com/lohri-greetings/
http://www.happynewyear2016wishesimagessms.com/lohri-images/
http://www.happynewyear2016wishesimagessms.com/lohri-songs/
http://www.happynewyear2016wishesimagessms.com/lohri-wishes/
http://www.happynewyear2016wishesimagessms.com/lohri-festival/
http://www.happynewyear2016wishesimagessms.com/happy-lohri-bonfire-festival/
http://www.happynewyear2016wishesimagessms.com/lohri-bonfire-festival/
http://www.happynewyear2016wishesimagessms.com/lohri-the-bonfire-festival/
http://www.happynewyear2016wishesimagessms.com/up-helly-aa-event-in-scotland/
http://www.happynewyear2016wishesimagessms.com/dinagyang-festival/
http://www.happynewyear2016wishesimagessms.com/sundance-film-festival-2016/
http://www.happynewyear2016wishesimagessms.com/wwe-in-india-wwe-live-event-in-new-delhi/
http://www.happynewyear2016wishesimagessms.com/lohri-wishes-for-friends-family/
http://www.happynewyear2016wishesimagessms.com/cowboy-poetry/
http://www.happynewyear2016wishesimagessms.com/ati-atihan-festival-full-information/
http://www.happynewyear2016wishesimagessms.com/holy-ship-2016/
http://www.happynewyear2016wishesimagessms.com/things-to-do-in-banff-town-canada/
http://www.happynewyear2016wishesimagessms.com/rainbow-serpent-festival/
http://www.happynewyear2016wishesimagessms.com/sundance-film-festival-winners/
http://www.happynewyear2016wishesimagessms.com/junkanoo-parade/
http://www.happynewyear2016wishesimagessms.com/hogmanay-2016/
http://www.happynewyear2016wishesimagessms.com/ice-sculpture-snow-sculpture-festival/
http://www.happynewyear2016wishesimagessms.com/carnevale-di-venezia/
http://www.happynewyear2016wishesimagessms.com/bpm-festival-what-bpm-festival-is/
http://www.happynewyear2016wishesimagessms.com/thaipusam-thaipusam-is-a-hindu-festival/
http://www.happynewyear2016wishesimagessms.com/holy-ship-unveils-massive-lineups-for-2016-cruises/
http://www.happynewyear2016wishesimagessms.com/quebec-winter-carnival/
http://www.happynewyear2016wishesimagessms.com/jam-cruise/
http://www.happynewyear2016wishesimagessms.com/things-to-do-in-edinburgh/
http://www.happynewyear2016wishesimagessms.com/harbin-ice-festival/
http://www.happynewyear2016wishesimagessms.com/the-sundance-film-festival-a-program-of-the-sundance-institute/Anonymous
January 07, 2016
http://www.republicdayimagesi.com/republic-day-songs/
http://www.republicdayimagesi.com/republic-day-status-republic-day-wallpaper/
http://www.republicdayimagesi.com/republic-day-information-republic-day-photos/
http://www.republicdayimagesi.com/republic-day-pictures-republic-day-pics/
http://www.republicdayimagesi.com/republic-day-messages-republic-day-sms/
http://www.republicdayimagesi.com/republic-day-in-hindi/
http://www.republicdayimagesi.com/essay-on-republic-day/
http://www.republicdayimagesi.com/what-is-republic-day/
http://www.republicdayimagesi.com/republic-day-wishes/
http://www.republicdayimagesi.com/speech-on-republic-day-in-hindi-speech-for-republic-day/
http://www.republicdayimagesi.com/republic-day-speech-in-hindi/
http://www.republicdayimagesi.com/republic-day-image/
http://www.republicdayimagesi.com/india-republic-day/
http://www.republicdayimagesi.com/republic-day-quotes/
http://www.republicdayimagesi.com/images-of-republic-day-pics-of-republic-day/
http://www.republicdayimagesi.com/speech-on-republic-day/
http://www.republicdayimagesi.com/republic-day-2016/
http://www.republicdayimagesi.com/republic-day-india/
http://www.republicdayimagesi.com/republic-day-speech/
http://www.republicdayimagesi.com/republic-day-images/
http://www.republicdayimagesi.com/happy-republic-day/
http://www.republicdayimagesi.com/republic-day/
http://www.republicdayi.com/republic-day-songs/
http://www.republicdayi.com/republic-day-status-republic-day-wallpaper/
http://www.republicdayi.com/republic-day-information-republic-day-photos/
http://www.republicdayi.com/republic-day-pictures-republic-day-pics/
http://www.republicdayi.com/republic-day-messages-republic-day-sms/
http://www.republicdayi.com/speech-on-republic-day-in-hindi-speech-for-republic-day/
http://www.republicdayi.com/republic-day-in-hindi/
http://www.republicdayi.com/essay-on-republic-day/
http://www.republicdayi.com/what-is-republic-day/
http://www.republicdayi.com/republic-day-wishes/
http://www.republicdayi.com/republic-day-speech-in-hindi/
http://www.republicdayi.com/republic-day-image/
http://www.republicdayi.com/india-republic-day/
http://www.republicdayi.com/republic-day-quotes/
http://www.republicdayi.com/images-of-republic-day/
http://www.republicdayi.com/speech-on-republic-day/
http://www.republicdayi.com/republic-day-2016/
http://www.republicdayi.com/republic-day-india/
http://www.republicdayi.com/republic-day-speech/
http://www.republicdayi.com/republic-day-images/
http://www.republicdayi.com/happy-republic-day/
http://www.republicdayi.com/republic-day/Anonymous
January 07, 2016
http://www.happylohrii.com/lohri-pics-lohri-sms-lohri-wallpapers/
http://www.happylohrii.com/happy-lohri-images/
http://www.happylohrii.com/hindu-festival-2016/
http://www.happylohrii.com/happy-lohri-quotes/
http://www.happylohrii.com/happy-lohri-wishes/
http://www.happylohrii.com/happy-lohri-wallpaper/
http://www.happylohrii.com/lohri-greetings/
http://www.happylohrii.com/lohri-images/
http://www.happylohrii.com/lohri-songs/
http://www.happylohrii.com/lohri-wishes/
http://www.happylohrii.com/lohri-festival/
http://www.happylohrii.com/happy-lohri-bonfire-festival/
http://www.happylohrii.com/lohri-bonfire-festival/Anonymous
January 30, 2016
Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
http://www.movieboxapkdownload.com/ - It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
http://www.aptoideapkdownload.com/ - It’s just 2 MB file you can easily get it on your android device without much trouble.
http://www.vidmatedownloadapk.com/
Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
http://www.shareitforpccdownload.com/
http://www.shareitforpccdownload.com/shareit-for-pc-windows-10-8-1-7-mac-free-download/
SHAREit for PC lets you transfer files between devices like phones, tablets and computers. With the wide area of sharing compatibility, sharing across anything is easy now. This is the best and the fastest alternative for USB sharing.Anonymous
January 31, 2016
Great, Works on SBS 2011 fine