Wednesday, July 4, 2018

WSUS sync failed

Microsoft.SystemsManagementServer.WSUS.WSUSMSPException: WSUS sync failed with UssCommunicationError: ~~   at Microsoft.SystemsManagementServer.WSUS.WSUSServer.IsSyncRunning()
Failed to set Subscriptions on the WSUS Server. Error:(-2146233088)Unknown error 0x80131500


STATMSG: ID=6603 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_CONFIGURATION_MANAGER" 


To fix the issue, add the correct proxy details to the SUP site system and Software Update Point properties;
Open the site system properties for Software Update Point;
Select Use a proxy server when synchronizing information from the internet then enter the proxy server name and port


Then open the Software update point properties, under software update point proxy server settings
Select use a proxy server when synchronising software updates and
Select use a proxy server when downloading content by using automatic deployment rules


This should fix the issue and WSUS sync should proceed without any error.

Thursday, June 14, 2018

We were unable to create the certificate binding

When trying to convert SCCM Reporting services point from HTTP to HTTPS, the configuration will throw We were unable to create the certificate binding error msg;
If you expand the error message you will see;
Microsoft.ReportingServices.WmiProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070520
 ---> System.Runtime.InteropServices.COMException: A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)
   --- End of inner exception stack trace ---    at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)  at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.CreateSSLCertificateBinding(String application, String certificateHash, String ipAddress, Int32 port)at  ReportServicesConfigUI.WMIProvider. RSReportServerAdmin.CreateSSLCertificateBinding (UrlApplication app, String certificateHash, String ipAddress, Int32 port)














The reason for this error is, when generating CSR (Certificate Signing Request) make sure exportable private key option is selected.
After the certificate is created, validate the properties of the certificate. it should say you have a private key that corresponds to this certificate.

Thursday, May 31, 2018

Failed to add the file autorun.inf in content Error 0x80040154

When distributing a packages with many files, specially autorun.ini file you may get below error;

PkgXferMgr.log (SMS_PACKAGE_TRANSFER_MANAGER) at Primary site;
ExecStaticMethod failed (80040154) SMS_DistributionPoint, AddFile
CSendFileAction::AddFile failed; 0x80040154
Failed to add the file autorun.inf in content SCB00014.2. Error 0x80040154
CSendFileAction::AddFileMetaData failed; 0x80040154
CSendFileAction::SendFiles failed; 0x80040154
CSendFileAction::SendContent failed; 0x8004015


And on the target distribution point (smsdpprov.log);
CFileLibrary::AddFile failed; 0x80040154
CFileLibrary::AddFile failed; 0x80040154
CContentDefinition::AddFile failed; 0x80040154
Failed to add file 'autorun.inf' to content library. Error code: 0X80040154
CFileLibrary::AddFile failed; 0x80040154
CFileLibrary::AddFile failed; 0x80040154
CContentDefinition::AddFile failed; 0x80040154
Failed to add file 'autorun.inf' to content library. Error code: 0X80040154
CFileLibrary::AddFile failed; 0x80040154
CFileLibrary::AddFile failed; 0x80040154
CContentDefinition::AddFile failed; 0x80040154
Failed to add file 'autorun.inf' to content library. Error code: 0X80040154

Most likely the reason for this error is missing Remote Differential Compression on the distribution point.
Install remote differential compression on the distribution point and update the content.
The content will successfully deploy to it;

Friday, May 4, 2018

Database is in restoring mode

When a ConfigMgr site database is on SQL always on and failover performed to asynchronous node, then all the synchronous nodes will stay in Restoring mode.
Note: SCCM site database AlwaysOn failover to Asynchronous node is not supported

There is no option to recover the database when it is in restoring state, also no option to take the database offline.
Deletion of the database is only the option.
To delete the database select the database which is tuck in Restoring mode, then right click then select Delete

Friday, April 13, 2018

CreateVirtualDirectory: Failed to update virtual directory SMS_DP_SMSPKG$

ERROR CreateVirtualDirectory: Failed to update virtual directory SMS_DP_SMSPKG$. error = IDispatch error #3603
Cannot set the current Drizzle Role status for the DP.
DP thread with ID 6908 failed to process DP action
SMS_DISTRIBUTION_MANAGER will generate above errors in distmgr.log and there will be no errors in PkgXferMgr.log on the primary site server.

On offending DP, there will be no entries to the offending package in smsdpprov.log

The error in distmgr.log relates to virtual directories / IIS. Review the installed pre-requisites of IIS on the DP, most likely the DP will be missing IIS 6 WMI Compatibility feature.
If it is not installed, install the IIS 6 WMI Compatibility feature.

If it is already installed, remove the feature and re-add it then re-distribute the package.
This should the fix the issue and the package distribution will complete successfully.