2017年8月3日 星期四

SCOM 2016,Unable to resolve the user xxx associated with the user role. Error code 1332

Problem
===========
Unable to resolve the user xxx associated with the user role. Error code 1332

Cause
=========
Normally – when you have a trust with a remote account domain, and you want to add users from the rote domain to SCOM, things go perfectly.
However, if the user account in the remote domain uses a different UPN name than the SAM account name – the SCOM UI block’s it.
  
Solution
===========
Use SCOM PowerShell to add these users to the role:

$Role = Get-SCOMUserRole -Name "MSFT TEST"
$Role | Set-SCOMUserRole -User ($Role.Users + "MSFT\jimmytest")


2017年7月26日 星期三

After applying update KB4025336 to our WSUS servers clients are no longer able to communicate with WSUS.

Cause
========
the virtual directories were throwing internal server error 500's for the WSUS


Analysis
=========

2017-07-26    13:41:01:572 1048   20d8   PT        WARNING: GetCookie_WithRecovery failed : 0x80244008
2017-07-26    13:41:01:572 1048   20d8   PT        WARNING: RefreshCookie failed: 0x80244008
2017-07-26    13:41:01:572 1048   20d8   PT        WARNING: RefreshPTState failed: 0x80244008
2017-07-26    13:41:01:572 1048   20d8   PT        WARNING: PTError: 0x80244008
2017-07-26    13:41:01:572 1048   20d8   Report           WARNING: Reporter failed to upload events with hr = 80244008.

Action Plan
=============

1. Open the elevated command prompt, and cd to the directory: C:\Program Files\Update Services\Tools;
2. Run the command: wsusutil.exe usecustomwebsite true,  to change the 80 port usage to 8530;
3. Run the command: wsusutil.exe usecustomwebsite false,  to change the 8530 port usage to 80 again.

2017年5月24日 星期三

Windows 10 Shows Windows Vista on Windows Server 2008R2 WSUS

請在WSUSDB裡面執行以下的語法,會將所有的Windows 10 Client Machine的OS Description 修改成Windows 10
UPDATE [SUSDB].[dbo].[tbComputerTargetDetail]
SET [OSDescription] = 'Windows 10'
WHERE [OSMajorVersion] = '10'
AND [OSMinorVersion] = '0'
AND [OldProductType] = '1'

AND ([OSDescription] <> 'Windows 10' or [OSDescription] IS NULL) 

2017年5月11日 星期四

Error 2912 (0x80070534) happened when a host was added to VMM.

Cause
=========
The error occurred after the AD service account was renamed, and then the account mismatches with that in VMM registry.

Resolution
==============
1. Login to VMM server machine, and check the below registry:

     HKLM\Software\Microsoft\Microsoft System Center Virtual Machine manager Server\Setup\VMMerviceAccount

Please make note of the value.


2. Compare it with the account in AD side, and make sure they are matching.

2017年4月27日 星期四

SCOM Workgroup Monitoring – Disable AD Integration

To disable during setup:
Install the SCOM agent with the following command line: MOMAgent.msi USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=“<Management Group Here>” MANAGEMENT_SERVER_DNS=<FQDN of management server here> /qb

To disable in the registry:
Open registry editor and nagivate to: “SYSTEM\CurrentControlSet\Services\HealthService\Parameters\ConnectorManager“.
Set the EnableADIntegration in the registry to ‘0′
Restart the HealthService (System Center Management)