AGPM error 80070005

Problem:

While saving changes in AGPM (Advanced Group Policy Management) you get errors like

Failed to write production GPO permissions for this domain.
The following error occurred:
Access to the path ‘D:\AGPM\Archive\gpostate.xml’ is denied.
System.UnauthorizedAccessException (80070005)

Reason:

The error is not generated by your current user but from the service AGPM ist running on

Solution

Findout what user the AGPM Service is running as and give the user rights on the folders where the file mentioned in the error message is placed.

Posted in Fix IT, Information Technology | Comments Off on AGPM error 80070005

SCOM Exchange Managment Pack Error ‘Count’

Problem:

Scom error from Exchange 2010 Managementpack , can’t create System.PropertyBagData pointing to HotFixValidation.vbs

C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Monitoring Host Temporary Files 284\5106\HotFixValidation.vbs(117, 10) Microsoft VBScript runtime error: Subscript out of range: ‘count’

Reason:

The script is only checking explicit for version 6 agents and has no loop for newer agents. So variable hotfixVersion is not set for the following checks.

If (Left(OpsMgrVersion,3) = "6.0") Then
        hotfixVersion = SP1FileVersion
        kbLink = "http://go.microsoft.com/fwlink/?LinkID=167911"
ElseIf (Left(OpsMgrVersion,3) = "6.1") Then
        hotfixVersion = R2FileVersion
    kbLink = "http://go.microsoft.com/fwlink/?LinkID=167912"
End If 

Solution:

If you have only V7 agents in use , disable the monitor as the newer agent should have the fixes included.

If you have older Agent Versions , try to manually edit the Management Pack and set hotfixVersion to = “6.1.7221.2” just below line : Const R2FileVersion = “6.1.7221.2”

Posted in Fix IT, Information Technology | Tagged , | Comments Off on SCOM Exchange Managment Pack Error ‘Count’

Scom SQL 2012 Discovery Managment Pack error . Variable not defined

Problem:

Alert: message is Variable not defined ‘EVENT_TYPE_ERROR’ C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Monitoring Host Temporary Files 104\4529\SQLAgentJobDiscovery.vbs(293, 9) Microsoft VBScript runtime error: Variable is undefined: ‘EVENT_TYPE_ERROR’

Reason:

The variable is really not defined inside the management pack and Option Explicit is set so variables must be defined. (ManagamentPack Bug). As the variable is only used if Access is denied the error is not allways showing up.

Else If DoJobDiscovery(ServiceName, InstanceName, ConnectionString, oSQLDiscoveryData, TcpPort) < 0 Then

oAPI.LogScriptEvent “SQLAgentJobDiscovery:” & InstanceName, SCRIPT_EVENT_ID, EVENT_TYPE_ERROR, “SQL Agent Job for SQL instance ‘” + InstanceName + “‘ discovery failed.” End If End If

Solution:

Fix the management Pack Microsoft.SQLServer.2012.Discovery Or Fix the reason the discovery cant read the jobs in your SQL DB. Give the runas account rights or add sysadmin right to NT Authority\system as it was before on SQL 2008.

Posted in Fix IT | Tagged , , | Comments Off on Scom SQL 2012 Discovery Managment Pack error . Variable not defined

Disk full on Microsoft Reporting Server

Problem:

Disk Drive C: on Reporting Server is filling up every day by 40MB

Reason:

Microsoft Reporting Server is installed by default on C:. The configuration file C:\Program Files\Microsoft SQL Server\MSRS10.SQL1\Reporting Services\ReportServer\bin\ReportingServicesService.exe.config is showing
<add name=”KeepFilesForDays” value=”14″ />
but no files are deleted.

Solution:

Clean them manually or scheduled by script. The location is
C:\Program Files\Microsoft SQL Server\MSRS10.SQL1\Reporting Services\LogFiles

Posted in Fix IT | Tagged , | Comments Off on Disk full on Microsoft Reporting Server

Microsoft CA Certificate backup failed

Problem

C:\Backup>Certutil -p “xxxxxxxxxx” -f -backup “c:\backup”
CertUtil: -backup command FAILED: 0x8009000b (-2146893813)
CertUtil: Key not valid for use in specified state.

Check:

Check the Certificate of your CA whether the Private Key can be exported by starting an export of the Certificate. If the option “Yes , export the private key” is greyed out , this is possibly the problem. The picture shows how it should be.

Solution

Reimport the certificate from Backup with the option to allow Private Key export

Posted in Fix IT | Tagged , | Comments Off on Microsoft CA Certificate backup failed

Microsoft SQL Agent ist not starting

Problem

sql Agent start error 5 “Access is Denied”

This might happen when you use other directories than the default installation.

Solution

Apply the rights for the service user of SQL to the path where the agent executable is located.

One way is to enable inheritance of rights and push the rights down from the base of your installation. Here L:\SQL1.

Posted in Fix IT | Tagged , | Comments Off on Microsoft SQL Agent ist not starting

NTP Settings for Switzerland

For Switzerland use one of the NTP pool servers as listed under

http://www.pool.ntp.org/zone/ch

To configure your Windows system to get the time and act as a time server run following commands using one of the listed timeservers.

There is no need to list multiple servers as the Pool is already a list of about 4 servers.

net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:2.ch.pool.ntp.org
w32tm /config /reliable:yes
net start w32time
w32tm /query /status
Posted in Fix IT, Information Technology | Comments Off on NTP Settings for Switzerland