Windows Server ディスカバリーがエラー Get-CimClass:アクセスが拒否されましたで失敗する。Issue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } Windows Server ディスカバリーがエラー Get-CimClass : Access is denied で失敗した場合は、次の情報と手順が問題の解決に役立ちます。 エラーの例は次のようになります。 Get-CimClass : Access is denied. At C:\MidServer\EAPPSVCNOWMID01\agent\scripts\PowerShell\WMIFetch.psm1:421 char:20+ ... $reg = Get-CimClass -Namespace "root\default" -ClassName "StdReg ...+ CategoryInfo : PermissionDenied: (root\default:StdRegProv:String) [Get-CimClass], CimException+ FullyQualifiedErrorId : HRESULT 0x80070005,Microsoft.Management.Infrastructure.CimCmdlets.GetCimClassCommand+ PSComputerName : 10.10.4.51 入力ペイロードにも同様のエラーが表示されます。 Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } すべてのリリース Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } アドミン共有アクセスと PowerShell アクセスチェックは、ターゲットで WMIRunner プローブを実行する前に実行されます。このサポート技術情報の記事で説明されているエラーは、管理者共有アクセス テストが失敗し、WMI 要求が従来のマドリードより前のリリースにフォールバックするときによく見られます。このトピックの詳細については、「KB0752537: Differences between Windows PowerShell Discovery and legacy Windows Discovery」を参照してください。 アドミン共有テストが失敗しているかどうかを確認するには: MID サーバーパラメーター mid.log.level = debug を設定します。MID サーバープロパティ mid.property.powershell.log_info を true に設定します。テストディスカバリーを実行します。MID サーバーエージェントログを確認します。ログには、次のメッセージが表示されます: <date_time> PowerConsole-<ecc_queue_sysId>>stdout DEBUG: STDOUT : <SNC_LOG><date_time> Beginning admin share access test with cred: <credentail_name></SNC_LOG><date_time> PowerConsole-<ecc_queue_sysId>>stdout DEBUG: STDOUT : <SNC_LOG><date_time> admin share access: False</SNC_LOG><date_time> PowerConsole-<ecc_queue_sysId>>stdout DEBUG: STDOUT : <SNC_LOG><date_time> PowerShell access: False</SNC_LOG> アドミン共有アクセスが失敗すると、WMI クエリはレガシーにフォールバックし、MID サーバーで以下が実行されます。 Get-CimClass -Namespace "root/Default" -ClassName "StdRegProv" -CimSession $session 注: $sessionは、コードの前半で作成され、引数として渡される CIMSession です。 その後、エラーが返されます。この問題は、PowerShell コマンドの実行時に、ターゲット デバイスで名前空間 root\default が使用できない可能性があるためです。 Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } 同じディスカバリー認証情報を使用してターゲットデバイスにログインし、PowerShell エディターで次の PowerShell スクリプトを実行します。 Get-CimClass - Namespace "root/Default" 次の画像に示すように、名前空間が正常に返されるはずです。 そうでない場合は、デバイスのメンテナンスを担当する Windows アドミンチームと協力して、名前空間が返されない理由を特定します。 または、MID サーバーからターゲットデバイスへのアドミン共有アクセスを許可して、WMIRunner プローブを非レガシーの方法で実行できるようにします。 アドミン共有アクセスをテストする方法の 1 つは、次のとおりです。 MID サーバーにログインします。ターゲットデバイスの検出に使用するアカウントで PowerShell を開きます。Test-Path を実行します。-Path "\\<target_ip_address>\admin$" ターゲット デバイスで netlogon service スタートアップの種類が [手動] に設定されているため、管理者共有アクセスが失敗することがありました。これを自動に設定すると、リモート共有アクセスの問題が解決され、プローブが正常に実行されました。 Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: block; max-width: ; width: auto; height: auto; } } 識別エンジン:ディスカバリーステータスが [エラー。属性が定義されていないため、CI タイプを作成できません (Identification Engine: Discovery status is FAILURE, CI Type cmdb_ci_certificate cannot be created because there are no attributes defined) エラーメッセージについては、「KB1441458:Microsoft CA のディスカバリーを実行できません。「識別エンジン:ディスカバリーステータスがエラーで、属性が定義されていないため CI タイプcmdb_ci_certificateを作成できません (Identification Engine: Discovery status is FAILURE, CI Type U cannot be created because there are no attributes defined)」というエラーメッセージが表示されますを参照してください。