Table of Contents
- Locate manageability status errors
- Troubleshoot manageability status errors
- Additional resources
This topic is Part II of the Server Manager Troubleshooting Guide.
- Windows Server 2012 — Server Manager Troubleshooting Guide, Part I: Overview
- Windows Server 2012 — Server Manager Troubleshooting Guide, Part
III: Common Events and Errors in Server Manager
In Server Manager in Windows Server® 2012, manageability is defined as the readiness or ability of a remote computer to be managed by using Server Manager. The following factors are measured as part of evaluating the manageability of a remote computer.
- Whether the computer can communicate with Server Manager, and transmit data about the computer’s operational state, and installed roles and features.
- Whether the computer is running the right software, or software is configured in a way that allows Server Manager to query and update the computer.
- Whether the user of Server Manager has adequate user rights to query the computer or make changes to its configuration.
Locate manageability status errors
Manageability status is displayed in the following locations in the Server Manager console.
- On the Server Manager dashboard, the Manageability row in role and server group thumbnails displays alerts (red-highlighted numbers) if there are manageability problems with servers associated with those roles or groups, and a custom filter
created in the Manageability Detail View dialog box is not suppressing those alerts. - The Manageability Detail View dialog box, opened from the
Manageability row in thumbnails on the dashboard, displays the manageability status errors that are the source of alerts. - In the Servers tile on any role or server group home page (including the page for the
All Servers group) the Manageability column displays manageability status.
Troubleshoot manageability status errors
The following table can help you interpret the brief manageability status messages, and resolve problems that are preventing you from managing remote servers by using Server Manager. Many manageability status errors have underlying error messages that are
generated by Windows Remote Management (WinRM); these can be the result of security or authentication problems (such as attempting to manage a remote server in an untrusted domain, for example; or attempting to manage a server by using credentials that are
not recognized as those of an administrator on the remote server), or configuration problems (missing Windows PowerShell, remote management not enabled on the target server, etc.).
Note: In Server Manager practical terms, Negotiate authentication means that Server Manager falls back to NTLM authentication (1) if you attempt to use Server Manager to manage a server that is in an untrusted domain, or
that is in a workgroup, and (2) you provide explicit credentials to manage the target server. If you are using Server Manager to manage servers on which you must authenticate by using
Negotiate authentication, you cannot disable NTLM in your server environment.
In this context, the client is defined as the computer from which you are managing by using Server Manager; this computer can be a server that is running Windows Server 2012, or a computer that is running Windows 8 with
Remote Server Administration Tools installed.
To use the table, match the manageability status for a managed server with an underlying source WinRM or provider message displayed in the
Task Details dialog box, opened from the Notifications area in Server Manager. Find the row in the table where the combination of manageability status message and underlying error message match what is displayed in your Server
Manager console. Read the Possible Causes and Suggested Resolutions column in the matching row to find resolution steps that might help, or causes that are easy to eliminate (such as typographical errors in account credentials).
Manageability Status Message | Issue Category | Underlying Source Message from WinRM or Providers (shown in Task Details pane) |
Possible Causes and Suggested Resolutions | Severity Level |
---|---|---|---|---|
Kerberos security error |
Client-side authentication error: KerbUnknownSecurityError |
Error <computer name> : Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: WinRM cannot process the request. The following error with errorcode |
Client and target server are in the same domain; the target server is added to Server Manager, but later, the target server’s domain is changed to a trusted but different domain. Try removing the target server from the Server |
Error |
Kerberos target resolution error |
Client-side authentication error: KerbResolutionError |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: WinRM cannot process the request. The following error occurred while |
Client is in a domain, and the target server is in a workgroup (using the NetBIOS name of the server): A Kerberos error occurs if explicit credentials are not specified for managing the target server, because the Kerberos ticket |
Error |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: WinRM cannot process the request. The following error occurred while Error <computer name>: Refresh failed with the following error: Call was canceled by the message filter. |
Client is in Domain1 and the target server is in an untrusted Domain2. A Kerberos error occurs because the Kerberos TGS cannot find the target server. Explicit credentials must be used to manage the target server. Right-click |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: WinRM cannot process the request. The following error occurred while Error <computer name>: Refresh failed with the following error: Call was canceled by the message filter. |
Client is in a domain and the target server is in the same domain, but the domain name provided for the target server is incorrect or misspelled. |
Error |
||
Kerberos authentication error |
Client-side authentication error: Kerb0x80090311Error |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: WinRM cannot process the request. The following error with errorcode |
Client is in a domain, but the domain controller for the client computer is not accessible. Try adding the target server to the client computer’s trusted host list. For information about how to add a managed server to the trusted |
Error |
Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: WinRM cannot process the request. The following error with errorcode 0x80090311 occurred |
Client is in a domain, and the target server is in the same domain (using the NetBIOS name or FQDN, and explicit but local-only administrator credentials for the target, or other non-domain credentials): A Kerberos error occurs |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: WinRM cannot process the request. The following error with errorcode |
Client is in a domain and the target server is in a workgroup (using the NetBIOS name of the server): User has specified explicit credentials. An error occurs if the user has not added the server to the trusted host list of the |
Error |
||
Client-side authentication error: Kerb0x8009030eError |
Error : Refresh failed with the following error (WSMAN): The metadata failed to be retrieved from the server, due to the following error: WinRM cannot process the request. The following error with errorcode 0x8009030e occurred |
Client is in a domain: Attempting to connect to a remote server by using implicit credentials that are the local administrator’s credentials on the client. Instead, use domain credentials that are recognized by the domain of |
Error |
|
WinRM Default authentication error |
Client-side authentication error: DefaultAuthReqsError |
Error <computer IP address>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WinRM client cannot process the request. Default authentication |
Client and target server are both in the same domain. The target server was added to Server Manager by using the IP address of the server, such as by using the |
Error |
Client is in a domain and the target server is in a workgroup. The target server was added to Server Manager by using its IP address. An authentication error occurs because if a client is in a domain, and attempting to connect |
Error |
|||
WinRM Negotiate authentication error |
Client-side authentication error: NegoAuthReqsError |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WinRM client cannot process the request. If the authentication |
Client is in a workgroup, and the target server is in a workgroup (using the NetBIOS name of the server): The network can resolve the name of the server. An authentication error occurs because the target server has not been added |
Error |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WinRM client cannot process the request. If the authentication |
Client computer is in a workgroup, and the target server is also in a workgroup (using the IP address of the server): An authentication error occurs because the target server has not been added to the trusted host list of the |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WinRM client cannot process the request. If the authentication |
Client computer is in a workgroup, and the target server is in a domain (using the NetBIOS name of the server): User’s network can resolve the name of the server. An authentication error occurs because the target server has not |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WinRM client cannot process the request. If the authentication |
Client is in a workgroup and the target server is in a domain (using the IP address of the server): An authentication error occurs because the target server has not been added to the trusted host list of the client computer to |
Error |
||
Target name resolution error |
Name resolution error |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WinRM client cannot process the request because the server name Error <computer name>: Refresh failed with the following error: The RPC server is unavailable. |
Client is in a workgroup, and the target server is in a workgroup (using the NetBIOS name of the server): A name resolution error occurs if the DNS server that is used by the client cannot resolve the target server name. This |
Error |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WinRM client cannot process the request because the server name Error <computer name>: Refresh failed with the following error: The RPC server is unavailable. |
Client is in a workgroup and the target server is in a domain (using the NetBIOS name of the server): A name resolution error occurs if the DNS server that is used by the client cannot resolve the target server name. Add the |
Error |
||
Name resolution error: SpecialCasedError |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: WS-Management could not connect to the specified destination: (<computer |
The target server name includes an unsupported character or string, such as |
Error |
|
Error — Cannot manage the operating system of the target computer |
Non-Windows target computer error |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The client cannot connect to the destination specified in the request. Error <computer name>: Refresh failed with the following error: The RPC server is unavailable. |
The target computer is not running a Windows-based operating system. You cannot use Server Manager to manage this computer. |
Error |
Target computer not accessible |
Network connection-related errors |
Configuration Refresh failed with the following error: Windows Remote Management (WinRM) cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that |
The network connecting the client and server is offline, or there is a problem with the target server’s connection to the network. Try verifying that Windows Firewall exceptions have been enabled on the target server for Windows The |
Error |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Windows Remote Management (WinRM) cannot complete the operation. Verify Error <computer name>: Refresh failed with the following error: Call was canceled by the message filter. |
The target computer is offline; either it is turned off, or not responding because of other hardware or software failures. |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Windows Remote Management (WinRM) cannot complete the operation. Verify Error <computer name>: Refresh failed with the following error: The RPC server is unavailable. |
Client computer is in a domain and the target server is in a workgroup (using the NetBIOS name of the server): User has specified explicit credentials for the target server, and added the target server to the trusted host list |
Error |
||
Error <computer IP address>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Windows Remote Management (WinRM) cannot complete the operation. Error <computer IP address>: Refresh failed with the following error: The RPC server is unavailable. |
Client is in a domain, and the target server is in a workgroup (using the IP address of the server): User has specified explicit credentials for the target server, and added the target server to the trusted host list of the client. |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Windows Remote Management (WinRM) cannot complete the operation. Verify Error <computer name>: Refresh failed with the following error: The RPC server is unavailable. |
The client is in a workgroup, and the target server is in a workgroup (using the NetBIOS name of the server): The user’s network can resolve the name of the server, and the user has added the target server to the trusted host |
Error |
||
Error <computer IP address>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Windows Remote Management (WinRM) cannot complete the operation. Error <computer IP address>: Refresh failed with the following error: The RPC server is unavailable. |
The client is in a workgroup, and the target server is in a workgroup (using the IP address of the target server): The user has added the server to the trusted host list of the client. However, a subnet timeout error occurs if |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Windows Remote Management (WinRM) cannot complete the operation. Verify Error <computer name>: Refresh failed with the following error: Call was canceled by the message filter. |
WinRM 3.0, WinRM 2.0, and DCOM are unavailable or not enabled on the target. On a server that is running Windows Server 2012, the user might have disabled both WinRM 3.0 or DCOM. On a server that is running an older Windows Server |
Error |
||
The metadata failed to be retrieved from the server, due to the following error: WS-Management cannot process the request. The operation failed because of an HTTP error. The HTTP error (50) is: The request is not supported. |
User is attempting to connect to the target server by using an IPv4 address, but on the client computer, only IPv6, not IPv4, is enabled. Either connect to the target server by using its IPv6 address, or change settings on the |
Error |
||
Online — Verify WinRM 3.0 service is installed, running, and required firewall ports are open |
Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Windows Remote Management (WinRM) cannot complete the operation. Verify that the specified |
WinRM 2.0 and 3.0 are either not available or not enabled, but DCOM is enabled on the target server. Note: This error can occur on a server that is running an older Windows Server operating system (Windows Server 2008 R2 or Windows Server 2008) where the |
Error |
|
Network connection related errors: WinRM 2.0 and DCOM |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WS-Management service cannot process the request. The resource |
WinRM 3.0 is not available or enabled, but WinRM 2.0 and DCOM are both enabled on the target server. This can occur on servers that are running older Windows Server operating systems (Windows Server 2008 R2 or Windows Server |
Error |
|
Network connection related errors: WinRM 2.0 |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WS-Management service cannot process the request. The resource Error <computer name>: Refresh failed with the following error: Call was canceled by the message filter. |
WinRM 3.0 and DCOM are either not available or not enabled, but WinRM 2.0 is enabled on the target server. Note: A user might have enabled WinRM 2.0, but not DCOM, on a target server that is running an older Windows Server operating system, and not yet installed the |
Error |
|
Online — Access denied |
Access denied error |
Error <computer IP address>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
Client is in a domain and the target server is in a workgroup (using the IP address of the server): The user has provided explicit credentials and added the server to the trusted host list of the client. However, an “access denied” |
Error |
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
Client is in a workgroup and the target server is in a workgroup (using the NetBIOS name of the server): The user’s network can resolve the name of the server, the user has added the target server to the trusted hosts list on |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
Client is in a workgroup and the target server is in a workgroup (using the IP address of the server): The user has added the server to the trusted hosts list of the client, and removed subnet restrictions on the server. However, |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
Client is in a workgroup and the target server is in a domain (using the NetBIOS name of the server): The user’s network can resolve the name of the server, and the user has added the server to the trusted hosts list of the client. |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
The client is in a workgroup, and the target server is in a domain (using the IP address of the server): The user has added the server to the trusted hosts list on the client. However, an “access denied” error can occur if the |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
The user is attempting to manage the remote server with a credential that has only standard user (not a member of the Administrators group) access rights on the target server, and the user has not enabled standard user remote |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
An incorrect or misspelled user name was provided to log on to the target server. |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
The correct user name for the account used to manage the target server was provided, but the password was incorrect. |
Error |
||
MessageID: 1326. Message: The metadata failed to be retrieved from the server, due to the following error: The user name or password is incorrect. |
The correct user name for the account used to manage the target server was provided, but the password was incorrect. |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
Client is in a domain, and the server is in a workgroup (using the NetBIOS name of the server): The user has specified explicit credentials, added the target server to the trusted hosts list of the client, and removed the subnet |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
Both the client and the target server are in workgroups (using the NetBIOS name of the server): The user’s network can resolve the name of the server, the user has added the server to the trusted hosts list of the client, the |
Error |
||
Error <computer name>: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: Access is denied. |
Both the client and target server are in workgroups (using the IP address of the server): User has added the server to the trusted host list of the client, and removed the subnet restrictions on the server. The user attempts |
Error |
||
Online – Cannot manage a client-based operating system |
Server Manager WMI providers are not available on the target computer |
Message: The metadata failed to be retrieved from the server, due to the following error: The WS-Management service cannot process the request. The CIM namespace root/microsoft/windows/servermanager is not valid. |
This is typical of Windows 8, on which Server Manager providers are not available and DCOM is not enabled by default. You cannot manage this computer by using Server Manager. |
Error |
Inventory discovery-based errors |
None |
Server Manager inventory collection finds that the target computer is running a Windows client-based operating system. You cannot manage this computer by using Server Manager, so you must contact them. h |
Error |
|
Online — Server Manager WMI providers not loading on the target server |
Server Manager WMI provider cannot load error |
Error <computer name>: Configuration refresh failed with the following error: HRESULT = 0x80041013 |
The Server Manager provider is available, but cannot load. This error can occur when WMI namespace access rights do not grant access to the user, and is most commonly seen when standard users (those who are not members of the |
Error |
Online – Cannot manage operating systems older than Windows Server 2003 |
Inventory discovery-based errors |
None |
Server Manager inventory collection finds that the target computer is running a release of Windows Server that is older than Windows Server 2003. You cannot manage this computer by using Server Manager. |
Error |
Online – Limited data – Windows Server 2003 |
Inventory discovery-based errors |
None |
Server Manager inventory collection finds that the target computer is running Windows Server 2003. |
Informational |
Online – Restart pending |
Inventory discovery-based errors |
None |
Server Manager inventory collection finds that the target server requires a restart. Restart the target server. |
Informational |
Online – Windows PowerShell not installed |
Inventory discovery-based errors |
None |
Server Manager inventory collection finds that Windows PowerShell is not installed on the target server. On a target server that is running Windows Server 2012, run the following cmdlet on the computer that is running Server |
Informational |
Online – Performance counters not started |
Inventory discovery-based errors |
None |
Server Manager inventory collection finds that performance counter data collection is turned off on the target server. |
Informational |
Online — Cannot get event data |
Data retrieval errors |
Any errors from the Server Manager provider that are related to event data retrieval. This error can also occur if specific roles and features have been installed, but not yet configured. The following underlying error messages are examples of known cases where a role, role service, or feature requires post-installation
The following underlying error message can occur for Active Directory Federation Services when the only role services that are installed are web agents. Configuring the installed role services does not resolve the error.
|
Server Manager cannot get event data from the target server. The user might not have access rights to the target server event log, or event log files might not contain valid data. For some roles and features (Hyper-V, Print and Document Services, AD LDS), this error can occur after installation, but before required post-installation configuration has been completed. The error is resolved after post-installation |
Error |
Online — Cannot get service data |
Any errors from the Server Manager provider that are related to service data retrieval |
Server Manager cannot get services data from the target server. The user might not have access rights to service data on the target server, or service data files might not contain valid data. To grant service data access rights |
Error |
|
Online — Cannot get BPA results |
Any errors from the Server Manager provider related to BPA result retrieval (excluding Windows PowerShell not enabled errors which are covered by other manageability status messages) |
Server Manager cannot get Best Practices Analyzer result data from the target server. The user might not have access rights to BPA data on the target server, or BPA result data might not be readable. Standard users cannot get |
Error |
|
Online — Cannot get performance counter data |
Any errors from the Server Manager provider related to performance data retrieval (excluding performance counters off errors, which are covered by other manageability status messages) |
Server Manager cannot get performance counter data from the target server. The user might not have access rights to performance data on the target server, or the data might not be readable. To grant performance data access rights |
Error |
|
Online — Cannot get role and feature data |
Any errors from the Server Manager provider related to role and feature data retrieval |
Server Manager cannot get role and feature inventory data from the target server. The user might not have access rights to role and feature data on the target server, or the data might not be readable. To grant role and feature |
Error |
|
Online — Data retrieval failures occurred |
(If two or more types of data cannot be retrieved)
This error can also occur if specific roles and features have been installed, but not yet configured. The following underlying error messages are examples of known cases where a role, role service, or feature requires post-installation
The following underlying error message can occur for Active Directory Federation Services when the only role services that are installed are web agents. Configuring the installed role services does not resolve the error.
|
Server Manager cannot get a combination of data types: events, BPA results, performance counters, or services. This can be caused by insufficient user access rights, data that is not valid, or WinRM time-outs. To grant event, performance, role and feature inventory, and service data access rights to standard (non-Administrator) users, administrators should run the For some roles and features (Hyper-V™, Print and Document Services, AD LDS), this error can occur after installation, but before required post-installation configuration has been completed. The error is resolved after post-installation |
Error |
|
An unknown error occurred |
Unknown errors |
None |
If the error persists, |
Error |
Additional resources
- Server Manager Troubleshooting Guide, Part I: Overview
- Add Servers to Server Manager
- Managing Downlevel Windows-based Servers from Server Manager in Windows Server 2012
- Enable-ServerManagerStandardUserRemoting
- WMI
- ROOTMicrosoftWindowsServerManager
- CIM_Error
Class
| Childs (2)
| Methods | Properties (15)
| Qualifiers (6)
| Instances | Namespaces (142)
Samples: VB Script
| C#
| VB.Net
| Search on:Microsoft
Description
CIM_Error is a specialized class that contains information about the severity, cause, recommended actions and other data related to the failure of a CIM Operation. Instances of this type MAY be included as part of the response to a CIM Operation.
CIM_Error — child subclasses in ROOTMicrosoftWindowsServerManager
Number of classes:2
CIM_Error properties
CIM_Error has 15 properties (15 Local)
Name | Origin | CIMType |
---|---|---|
CIMStatusCode | CIM_Error | 19 [uint32] |
CIMStatusCodeDescription | CIM_Error | 8 [string] |
ErrorSource | CIM_Error | 8 [string] |
ErrorSourceFormat | CIM_Error | 18 [uint16] |
ErrorType | CIM_Error | 18 [uint16] |
Message | CIM_Error | 8 [string] |
MessageArguments | CIM_Error | 8 [string] |
MessageID | CIM_Error | 8 [string] |
OtherErrorSourceFormat | CIM_Error | 8 [string] |
OtherErrorType | CIM_Error | 8 [string] |
OwningEntity | CIM_Error | 8 [string] |
PerceivedSeverity | CIM_Error | 18 [uint16] |
ProbableCause | CIM_Error | 18 [uint16] |
ProbableCauseDescription | CIM_Error | 8 [string] |
RecommendedActions | CIM_Error | 8 [string] |
Detailed description of CIM_Error properties
Local properties (15) of CIM_Error class
▲ CIMStatusCode property | |
---|---|
CIMTYPE | ‘uint32’ |
Description | ‘The CIM status code that characterizes this instance. This property defines the status codes that MAY be return by a conforming CIM Server or Listener. Note that not all status codes are valid for each operation. The specification for each operation SHOULD define the status codes that may be returned by that operation. The following values for CIM status code are defined: 1 — CIM_ERR_FAILED. A general error occurred that is not covered by a more specific error code. 2 — CIM_ERR_ACCESS_DENIED. Access to a CIM resource was not available to the client. 3 — CIM_ERR_INVALID_NAMESPACE. The target namespace does not exist. 4 — CIM_ERR_INVALID_PARAMETER. One or more parameter values passed to the method were invalid. 5 — CIM_ERR_INVALID_CLASS. The specified Class does not exist. 6 — CIM_ERR_NOT_FOUND. The requested object could not be found. 7 — CIM_ERR_NOT_SUPPORTED. The requested operation is not supported. 8 — CIM_ERR_CLASS_HAS_CHILDREN. Operation cannot be carried out on this class since it has instances. 9 — CIM_ERR_CLASS_HAS_INSTANCES. Operation cannot be carried out on this class since it has instances. 10 — CIM_ERR_INVALID_SUPERCLASS. Operation cannot be carried out since the specified superclass does not exist. 11 — CIM_ERR_ALREADY_EXISTS. Operation cannot be carried out because an object already exists. 12 — CIM_ERR_NO_SUCH_PROPERTY. The specified Property does not exist. 13 — CIM_ERR_TYPE_MISMATCH. The value supplied is incompatible with the type. 14 — CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED. The query language is not recognized or supported. 15 — CIM_ERR_INVALID_QUERY. The query is not valid for the specified query language. 16 — CIM_ERR_METHOD_NOT_AVAILABLE. The extrinsic Method could not be executed. 17 — CIM_ERR_METHOD_NOT_FOUND. The specified extrinsic Method does not exist. 18 — CIM_ERR_UNEXPECTED_RESPONSE. The returned response to the asynchronous operation was not expected. 19 — CIM_ERR_INVALID_RESPONSE_DESTINATION. The specified destination for the asynchronous response is not valid. 20 — CIM_ERR_NAMESPACE_NOT_EMPTY. The specified Namespace is not empty. 21 — CIM_ERR_INVALID_ENUMERATION_CONTEXT. The enumeration context supplied is not valid. 22 — CIM_ERR_INVALID_OPERATION_TIMEOUT. The specified Namespace is not empty. 23 — CIM_ERR_PULL_HAS_BEEN_ABANDONED. The specified Namespace is not empty. 24 — CIM_ERR_PULL_CANNOT_BE_ABANDONED. The attempt to abandon a pull operation has failed. 25 — CIM_ERR_FILTERED_ENUMERATION_NOT_SUPPORTED. Filtered Enumeratrions are not supported. 26 — CIM_ERR_CONTINUATION_ON_ERROR_NOT_SUPPORTED. Continue on error is not supported. 27 — CIM_ERR_SERVER_LIMITS_EXCEEDED. The WBEM Server limits have been exceeded (e.g. memory, connections, …). 28 — CIM_ERR_SERVER_IS_SHUTTING_DOWN. The WBEM Server is shutting down. 29 — CIM_ERR_QUERY_FEATURE_NOT_SUPPORTED. The specified Query Feature is not supported.’ |
ModelCorrespondence | [‘CIM_Error.CIMStatusCodeDescription’] |
ValueMap | [‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ’10’, ’11’, ’12’, ’13’, ’14’, ’15’, ’16’, ’17’, ’18’, ’19’, ’20’, ’21’, ’22’, ’23’, ’24’, ’25’, ’26’, ’27’, ’28’, ’29’, ‘..’] |
Values | [‘CIM_ERR_FAILED’, ‘CIM_ERR_ACCESS_DENIED’, ‘CIM_ERR_INVALID_NAMESPACE’, ‘CIM_ERR_INVALID_PARAMETER’, ‘CIM_ERR_INVALID_CLASS’, ‘CIM_ERR_NOT_FOUND’, ‘CIM_ERR_NOT_SUPPORTED’, ‘CIM_ERR_CLASS_HAS_CHILDREN’, ‘CIM_ERR_CLASS_HAS_INSTANCES’, ‘CIM_ERR_INVALID_SUPERCLASS’, ‘CIM_ERR_ALREADY_EXISTS’, ‘CIM_ERR_NO_SUCH_PROPERTY’, ‘CIM_ERR_TYPE_MISMATCH’, ‘CIM_ERR_QUERY_LANGUAGE_NOT_SUPPORTED’, ‘CIM_ERR_INVALID_QUERY’, ‘CIM_ERR_METHOD_NOT_AVAILABLE’, ‘CIM_ERR_METHOD_NOT_FOUND’, ‘CIM_ERR_UNEXPECTED_RESPONSE’, ‘CIM_ERR_INVALID_RESPONSE_DESTINATION’, ‘CIM_ERR_NAMESPACE_NOT_EMPTY’, ‘CIM_ERR_INVALID_ENUMERATION_CONTEXT’, ‘CIM_ERR_INVALID_OPERATION_TIMEOUT’, ‘CIM_ERR_PULL_HAS_BEEN_ABANDONED’, ‘CIM_ERR_PULL_CANNOT_BE_ABANDONED’, ‘CIM_ERR_FILTERED_ENUMERATION_NOT_SUPPORTED’, ‘CIM_ERR_CONTINUATION_ON_ERROR_NOT_SUPPORTED’, ‘CIM_ERR_SERVER_LIMITS_EXCEEDED’, ‘CIM_ERR_SERVER_IS_SHUTTING_DOWN’, ‘CIM_ERR_QUERY_FEATURE_NOT_SUPPORTED’, ‘DMTF Reserved’] |
CIMStatusCode property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ CIMStatusCodeDescription property | |
---|---|
CIMTYPE | ‘string’ |
Description | ‘A free-form string containing a human-readable description of CIMStatusCode. This description MAY extend, but MUST be consistent with, the definition of CIMStatusCode.’ |
ModelCorrespondence | [‘CIM_Error.CIMStatusCode’] |
CIMStatusCodeDescription property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ ErrorSource property | |
---|---|
CIMTYPE | ‘string’ |
Description | ‘The identifying information of the entity (i.e., the instance) generating the error. If this entity is modeled in the CIM Schema, this property contains the path of the instance encoded as a string parameter. If not modeled, the property contains some identifying string that names the entity that generated the error. The path or identifying string is formatted per the ErrorSourceFormat property.’ |
ModelCorrespondence | [‘CIM_Error.ErrorSourceFormat’] |
ErrorSource property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ ErrorSourceFormat property | |
---|---|
CIMTYPE | ‘uint16’ |
Description | ‘The format of the ErrorSource property is interpretable based on the value of this property. Values are defined as: 0 — Unknown. The format is unknown or not meaningfully interpretable by a CIM client application. 1 — Other. The format is defined by the value of the OtherErrorSourceFormat property.2 — CIMObjectPath. A CIM Object Path as defined in the CIM Infrastructure specification. Note: CIM 2.5 and earlier used the term object names.’ |
ModelCorrespondence | [‘CIM_Error.ErrorSource’, ‘CIM_Error.OtherErrorSourceFormat’] |
ValueMap | [‘0’, ‘1’, ‘2’, ‘..’] |
Values | [‘Unknown’, ‘Other’, ‘CIMObjectPath’, ‘DMTF Reserved’] |
ErrorSourceFormat property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ ErrorType property | |
---|---|
CIMTYPE | ‘uint16’ |
Description | ‘Primary classification of the error. The following values are defined: 2 — Communications Error. Errors of this type are principally associated with the procedures and/or processes required to convey information from one point to another. 3 — Quality of Service Error. Errors of this type are principally associated with failures that result in reduced functionality or performance. 4 — Software Error. Error of this type are principally associated with a software or processing fault. 5 — Hardware Error. Errors of this type are principally associated with an equipment or hardware failure. 6 — Environmental Error. Errors of this type are principally associated with a failure condition relating the to facility, or other environmental considerations. 7 — Security Error. Errors of this type are associated with security violations, detection of viruses, and similar issues. 8 — Oversubscription Error. Errors of this type are principally associated with the failure to allocate sufficient resources to complete the operation. 9 — Unavailable Resource Error. Errors of this type are principally associated with the failure to access a required resource. 10 -Unsupported Operation Error. Errors of this type are principally associated with requests that are not supported.’ |
ModelCorrespondence | [‘CIM_Error.OtherErrorType’] |
ValueMap | [‘0’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ’10’, ‘..’] |
Values | [‘Unknown’, ‘Other’, ‘Communications Error’, ‘Quality of Service Error’, ‘Software Error’, ‘Hardware Error’, ‘Environmental Error’, ‘Security Error’, ‘Oversubscription Error’, ‘Unavailable Resource Error’, ‘Unsupported Operation Error’, ‘DMTF Reserved’] |
ErrorType property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ Message property | |
---|---|
CIMTYPE | ‘string’ |
Description | ‘The formatted message. This message is constructed by combining some or all of the dynamic elements specified in the MessageArguments property with the static elements uniquely identified by the MessageID in a message registry or other catalog associated with the OwningEntity.’ |
ModelCorrespondence | [‘CIM_Error.MessageID’, ‘CIM_Error.MessageArguments’] |
Message property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ OtherErrorSourceFormat property | |
---|---|
CIMTYPE | ‘string’ |
Description | ‘A string defining «Other» values for ErrorSourceFormat. This value MUST be set to a non NULL value when ErrorSourceFormat is set to a value of 1 («Other»). For all other values of ErrorSourceFormat, the value of this string must be set to NULL.’ |
ModelCorrespondence | [‘CIM_Error.ErrorSourceFormat’] |
OtherErrorSourceFormat property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ OwningEntity property | |
---|---|
CIMTYPE | ‘string’ |
Description | ‘A string that uniquely identifies the entity that owns the definition of the format of the Message described in this instance. OwningEntity MUST include a copyrighted, trademarked or otherwise unique name that is owned by the business entity or standards body defining the format.’ |
OwningEntity property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ PerceivedSeverity property | |
---|---|
CIMTYPE | ‘uint16’ |
Description | ‘An enumerated value that describes the severity of the Indication from the notifier’s point of view: 0 — the Perceived Severity of the indication is unknown or indeterminate. 1 — Other, by CIM convention, is used to indicate that the Severity’s value can be found in the OtherSeverity property. 2 — Information should be used when providing an informative response. 3 — Degraded/Warning should be used when its appropriate to let the user decide if action is needed. 4 — Minor should be used to indicate action is needed, but the situation is not serious at this time. 5 — Major should be used to indicate action is needed NOW. 6 — Critical should be used to indicate action is needed NOW and the scope is broad (perhaps an imminent outage to a critical resource will result). 7 — Fatal/NonRecoverable should be used to indicate an error occurred, but it’s too late to take remedial action. 2 and 0 — Information and Unknown (respectively) follow common usage. Literally, the Error is purely informational or its severity is simply unknown.’ |
ValueMap | [‘0’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘..’] |
Values | [‘Unknown’, ‘Other’, ‘Information’, ‘Degraded/Warning’, ‘Minor’, ‘Major’, ‘Critical’, ‘Fatal/NonRecoverable’, ‘DMTF Reserved’] |
PerceivedSeverity property is in 13 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
▲ ProbableCause property | |
---|---|
CIMTYPE | ‘uint16’ |
Description | ‘An enumerated value that describes the probable cause of the error.’ |
ModelCorrespondence | [‘CIM_Error.ProbableCauseDescription’] |
ValueMap | [‘0’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ’10’, ’11’, ’12’, ’13’, ’14’, ’15’, ’16’, ’17’, ’18’, ’19’, ’20’, ’21’, ’22’, ’23’, ’24’, ’25’, ’26’, ’27’, ’28’, ’29’, ’30’, ’31’, ’32’, ’33’, ’34’, ’35’, ’36’, ’37’, ’38’, ’39’, ’40’, ’41’, ’42’, ’43’, ’44’, ’45’, ’46’, ’47’, ’48’, ’49’, ’50’, ’51’, ’52’, ’53’, ’54’, ’55’, ’56’, ’57’, ’58’, ’59’, ’60’, ’61’, ’62’, ’63’, ’64’, ’65’, ’66’, ’67’, ’68’, ’69’, ’70’, ’71’, ’72’, ’73’, ’74’, ’75’, ’76’, ’77’, ’78’, ’79’, ’80’, ’81’, ’82’, ’83’, ’84’, ’85’, ’86’, ’87’, ’88’, ’89’, ’90’, ’91’, ’92’, ’93’, ’94’, ’95’, ’96’, ’97’, ’98’, ’99’, ‘100’, ‘101’, ‘102’, ‘103’, ‘104’, ‘105’, ‘106’, ‘107’, ‘108’, ‘109’, ‘110’, ‘111’, ‘112’, ‘113’, ‘114’, ‘115’, ‘116’, ‘117’, ‘118’, ‘119’, ‘120’, ‘121’, ‘122’, ‘123’, ‘124’, ‘125’, ‘126’, ‘127’, ‘128’, ‘129’, ‘130’, ‘..’] |
Values | [‘Unknown’, ‘Other’, ‘Adapter/Card Error’, ‘Application Subsystem Failure’, ‘Bandwidth Reduced’, ‘Connection Establishment Error’, ‘Communications Protocol Error’, ‘Communications Subsystem Failure’, ‘Configuration/Customization Error’, ‘Congestion’, ‘Corrupt Data’, ‘CPU Cycles Limit Exceeded’, ‘Dataset/Modem Error’, ‘Degraded Signal’, ‘DTE-DCE Interface Error’, ‘Enclosure Door Open’, ‘Equipment Malfunction’, ‘Excessive Vibration’, ‘File Format Error’, ‘Fire Detected’, ‘Flood Detected’, ‘Framing Error’, ‘HVAC Problem’, ‘Humidity Unacceptable’, ‘I/O Device Error’, ‘Input Device Error’, ‘LAN Error’, ‘Non-Toxic Leak Detected’, ‘Local Node Transmission Error’, ‘Loss of Frame’, ‘Loss of Signal’, ‘Material Supply Exhausted’, ‘Multiplexer Problem’, ‘Out of Memory’, ‘Output Device Error’, ‘Performance Degraded’, ‘Power Problem’, ‘Pressure Unacceptable’, ‘Processor Problem (Internal Machine Error)’, ‘Pump Failure’, ‘Queue Size Exceeded’, ‘Receive Failure’, ‘Receiver Failure’, ‘Remote Node Transmission Error’, ‘Resource at or Nearing Capacity’, ‘Response Time Excessive’, ‘Retransmission Rate Excessive’, ‘Software Error’, ‘Software Program Abnormally Terminated’, ‘Software Program Error (Incorrect Results)’, ‘Storage Capacity Problem’, ‘Temperature Unacceptable’, ‘Threshold Crossed’, ‘Timing Problem’, ‘Toxic Leak Detected’, ‘Transmit Failure’, ‘Transmitter Failure’, ‘Underlying Resource Unavailable’, ‘Version Mismatch’, ‘Previous Alert Cleared’, ‘Login Attempts Failed’, ‘Software Virus Detected’, ‘Hardware Security Breached’, ‘Denial of Service Detected’, ‘Security Credential Mismatch’, ‘Unauthorized Access’, ‘Alarm Received’, ‘Loss of Pointer’, ‘Payload Mismatch’, ‘Transmission Error’, ‘Excessive Error Rate’, ‘Trace Problem’, ‘Element Unavailable’, ‘Element Missing’, ‘Loss of Multi Frame’, ‘Broadcast Channel Failure’, ‘Invalid Message Received’, ‘Routing Failure’, ‘Backplane Failure’, ‘Identifier Duplication’, ‘Protection Path Failure’, ‘Sync Loss or Mismatch’, ‘Terminal Problem’, ‘Real Time Clock Failure’, ‘Antenna Failure’, ‘Battery Charging Failure’, ‘Disk Failure’, ‘Frequency Hopping Failure’, ‘Loss of Redundancy’, ‘Power Supply Failure’, ‘Signal Quality Problem’, ‘Battery Discharging’, ‘Battery Failure’, ‘Commercial Power Problem’, ‘Fan Failure’, ‘Engine Failure’, ‘Sensor Failure’, ‘Fuse Failure’, ‘Generator Failure’, ‘Low Battery’, ‘Low Fuel’, ‘Low Water’, ‘Explosive Gas’, ‘High Winds’, ‘Ice Buildup’, ‘Smoke’, ‘Memory Mismatch’, ‘Out of CPU Cycles’, ‘Software Environment Problem’, ‘Software Download Failure’, ‘Element Reinitialized’, ‘Timeout’, ‘Logging Problems’, ‘Leak Detected’, ‘Protection Mechanism Failure’, ‘Protecting Resource Failure’, ‘Database Inconsistency’, ‘Authentication Failure’, ‘Breach of Confidentiality’, ‘Cable Tamper’, ‘Delayed Information’, ‘Duplicate Information’, ‘Information Missing’, ‘Information Modification’, ‘Information Out of Sequence’, ‘Key Expired’, ‘Non-Repudiation Failure’, ‘Out of Hours Activity’, ‘Out of Service’, ‘Procedural Error’, ‘Unexpected Information’, ‘DMTF Reserved’] |
ProbableCause property is in 4 classes of ROOTMicrosoftWindowsServerManager and in 142 namespaces |
CIM_Error Qualifiers
Name | Value | ToInstance | ToSubclass | Overridable | Amended | Local |
---|---|---|---|---|---|---|
Description | ‘CIM_Error is a specialized class that contains information about the severity, cause, recommended actions and other data related to the failure of a CIM Operation. Instances of this type MAY be included as part of the response to a CIM Operation.’ | ✗ | ✓ | ✓ | ✓ | ✓ |
Exception | True | ✗ | ✓ | ✗ | ✗ | ✓ |
Indication | True | ✗ | ✓ | ✗ | ✗ | ✓ |
locale | ‘MS_409’ | ✗ | ✗ | ✓ | ✓ | ✓ |
UMLPackagePath | ‘CIM::Interop’ | ✗ | ✓ | ✓ | ✗ | ✓ |
Version | ‘2.22.1’ | ✗ | ✗ | ✓ | ✓ | ✓ |
CIM_Error System properties
Name | Value | Origin | CIMType | Local | Array |
---|---|---|---|---|---|
__PATH | ‘\.ROOTMicrosoftWindowsServerManager:CIM_Error’ | ___SYSTEM | 8 | ✗ | ✗ |
__NAMESPACE | ‘ROOTMicrosoftWindowsServerManager’ | ___SYSTEM | 8 | ✗ | ✗ |
__SERVER | ‘.’ | ___SYSTEM | 8 | ✗ | ✗ |
__DERIVATION | [] | ___SYSTEM | 8 | ✗ | ✓ |
__PROPERTY_COUNT | 15 | ___SYSTEM | 3 | ✗ | ✗ |
__RELPATH | ‘CIM_Error’ | ___SYSTEM | 8 | ✗ | ✗ |
__DYNASTY | ‘CIM_Error’ | ___SYSTEM | 8 | ✗ | ✗ |
__SUPERCLASS | null | ___SYSTEM | 8 | ✗ | ✗ |
__CLASS | ‘CIM_Error’ | ___SYSTEM | 8 | ✗ | ✗ |
__GENUS | 1 | ___SYSTEM | 3 | ✗ | ✗ |
Similar Classes to CIM_Error
Number of classes:4
comments powered by
- Remove From My Forums
-
Question
-
Hey,
I try to create a scheduledtask using powershell on Windows 7 SP1 machine.
Command look like:
$A = New-ScheduledTaskAction –Execute $Command $S = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -DontStopOnIdleEnd -Hidden -Priority 9 $Task = Register-ScheduledTask -TaskName $TaskName -Action $A -User $RunAsUser -CimSession $CompName -RunLevel Highest -Settings $S -Forc
But on last command I receive the following error:
Register-ScheduledTask : The WS-Management service cannot process the request. The CIM namespace Root/Microsoft/Windows/TaskScheduler is invalid.
Running the same command on Windows 8.1 everything is okay.
Having a look at both devices I can see that the WMI namespace on Win 8.1 is available but not on windows 7 SP1.
How is the procedure to get this namespace?Windows Management Framework 4.0 is already installed on the Windows 7 SP1 machine.
Answers
-
-
Proposed as answer by
Tuesday, September 2, 2014 3:08 PM
-
Marked as answer by
MK-Maddin
Wednesday, September 3, 2014 7:08 AM
-
Proposed as answer by
- Remove From My Forums
-
Question
-
Hey,
I try to create a scheduledtask using powershell on Windows 7 SP1 machine.
Command look like:
$A = New-ScheduledTaskAction –Execute $Command $S = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -DontStopOnIdleEnd -Hidden -Priority 9 $Task = Register-ScheduledTask -TaskName $TaskName -Action $A -User $RunAsUser -CimSession $CompName -RunLevel Highest -Settings $S -Forc
But on last command I receive the following error:
Register-ScheduledTask : The WS-Management service cannot process the request. The CIM namespace Root/Microsoft/Windows/TaskScheduler is invalid.
Running the same command on Windows 8.1 everything is okay.
Having a look at both devices I can see that the WMI namespace on Win 8.1 is available but not on windows 7 SP1.
How is the procedure to get this namespace?Windows Management Framework 4.0 is already installed on the Windows 7 SP1 machine.
Answers
-
-
Proposed as answer by
Tuesday, September 2, 2014 3:08 PM
-
Marked as answer by
MK-Maddin
Wednesday, September 3, 2014 7:08 AM
-
Proposed as answer by
Иногда нужно добавить IIS, сайт и пул приложений в failover кластер Майкрософт — например, если на одном кластере у нас и сервер БД в AlwaysOn, и службы сервера приложений (в отдельной группе/роли), и веб-сайт. Это не самая лучшая практика (и вообще это всё дела давно минувших дней), но вполне допустимая, и есть готовый скрипт Clusweb7.vbs для кластеризации: https://docs.microsoft.com/ru-ru/troubleshoot/iis/configure-w3svc-wsfc Этот скрипт будет проверять и поддерживать запущенным IIS и указанные в теле сайт и пул приложений, а также останавливать сайт при остановке узла и смене активного узла кластера. Однако иногда нужно останавливать не только сайт, но и пул приложений, особенно если исходно приложение и пул были написаны без учёта возможности кластеризации. Немного подправил скрипт clusweb7.vbs, чтобы он останавливал пул приложений, там несложно было. Изменения относительно исходного выделены. Для поиска: clusweb7.vbs stop iis application pool.
‘<begin script sample>
‘This script provides high availability for IIS websites
‘By default, it monitors the «Default Web Site» and «DefaultAppPool»
‘To monitor another website, change the SITE_NAME below
‘To monitor another application pool, change the APP_POOL_NAME below
‘More thorough and application-specific health monitoring logic can be added to the script if needed
Option Explicit
DIM SITE_NAME
DIM APP_POOL_NAME
Dim START_WEB_SITE
Dim START_APP_POOL
Dim SITES_SECTION_NAME
Dim APPLICATION_POOLS_SECTION_NAME
Dim CONFIG_APPHOST_ROOT
Dim STOP_WEB_SITE
Dim STOP_APP_POOL
‘Note:
‘Replace this with the site and application pool you want to configure high availability for
‘Make sure that the same website and application pool in the script exist on all cluster nodes. Note that the names are case-sensitive.
SITE_NAME = «Default Web Site»
APP_POOL_NAME = «DefaultAppPool»
START_WEB_SITE = 0
START_APP_POOL = 0
STOP_WEB_SITE = 1
STOP_APP_POOL = 1
SITES_SECTION_NAME = «system.applicationHost/sites»
APPLICATION_POOLS_SECTION_NAME = «system.applicationHost/applicationPools»
CONFIG_APPHOST_ROOT = «MACHINE/WEBROOT/APPHOST»
‘Helper script functions
‘Find the index of the website on this node
Function FindSiteIndex(collection, siteName)
Dim i
FindSiteIndex = -1
For i = 0 To (CInt(collection.Count) — 1)
If collection.Item(i).GetPropertyByName(«name»).Value = siteName Then
FindSiteIndex = i
Exit For
End If
Next
End Function
‘Find the index of the application pool on this node
Function FindAppPoolIndex(collection, appPoolName)
Dim i
FindAppPoolIndex = -1
For i = 0 To (CInt(collection.Count) — 1)
If collection.Item(i).GetPropertyByName(«name»).Value = appPoolName Then
FindAppPoolIndex = i
Exit For
End If
Next
End Function
‘Get the state of the website
Function GetWebSiteState(adminManager, siteName)
Dim sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethod
Set sitesSection = adminManager.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)
Set sitesSectionCollection = sitesSection.Collection
index = FindSiteIndex(sitesSectionCollection, siteName)
If index = -1 Then
GetWebSiteState = -1
End If
Set siteSection = sitesSectionCollection(index)
GetWebSiteState = siteSection.GetPropertyByName(«state»).Value
End Function
‘Get the state of the ApplicationPool
Function GetAppPoolState(adminManager, appPool)
Dim configSection, index, appPoolState
set configSection = adminManager.GetAdminSection(APPLICATION_POOLS_SECTION_NAME, CONFIG_APPHOST_ROOT)
index = FindAppPoolIndex(configSection.Collection, appPool)
If index = -1 Then
GetAppPoolState = -1
End If
GetAppPoolState = configSection.Collection.Item(index).GetPropertyByName(«state»).Value
End Function
‘Start the w3svc service on this node
Function StartW3SVC()
Dim objWmiProvider
Dim objService
Dim strServiceState
Dim response
‘Check to see if the service is running
set objWmiProvider = GetObject(«winmgmts:/root/cimv2»)
set objService = objWmiProvider.get(«win32_service=’w3svc'»)
strServiceState = objService.state
If ucase(strServiceState) = «RUNNING» Then
StartW3SVC = True
Else
‘If the service is not running, try to start it
response = objService.StartService()
‘response = 0 or 10 indicates that the request to start was accepted
If ( response <> 0 ) and ( response <> 10 ) Then
StartW3SVC = False
Else
StartW3SVC = True
End If
End If
End Function
‘Start the application pool for the website
Function StartAppPool()
Dim ahwriter, appPoolsSection, appPoolsCollection, index, appPool, appPoolMethods, startMethod, callStartMethod
Set ahwriter = CreateObject(«Microsoft.ApplicationHost.WritableAdminManager»)
Set appPoolsSection = ahwriter.GetAdminSection(APPLICATION_POOLS_SECTION_NAME, CONFIG_APPHOST_ROOT)
Set appPoolsCollection = appPoolsSection.Collection
index = FindAppPoolIndex(appPoolsCollection, APP_POOL_NAME)
Set appPool = appPoolsCollection.Item(index)
‘See if it is already started
If appPool.GetPropertyByName(«state»).Value = 1 Then
StartAppPool = True
Exit Function
End If
‘Try to start the application pool
Set appPoolMethods = appPool.Methods
Set startMethod = appPoolMethods.Item(START_APP_POOL)
Set callStartMethod = startMethod.CreateInstance()
callStartMethod.Execute()
‘If started return true, otherwise return false
If appPool.GetPropertyByName(«state»).Value = 1 Then
StartAppPool = True
Else
StartAppPool = False
End If
End Function
‘Start the website
Function StartWebSite()
Dim ahwriter, sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethod
Set ahwriter = CreateObject(«Microsoft.ApplicationHost.WritableAdminManager»)
Set sitesSection = ahwriter.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)
Set sitesSectionCollection = sitesSection.Collection
index = FindSiteIndex(sitesSectionCollection, SITE_NAME)
Set siteSection = sitesSectionCollection(index)
if siteSection.GetPropertyByName(«state»).Value = 1 Then
‘Site is already started
StartWebSite = True
Exit Function
End If
‘Try to start site
Set siteMethods = siteSection.Methods
Set startMethod = siteMethods.Item(START_WEB_SITE)
Set executeMethod = startMethod.CreateInstance()
executeMethod.Execute()
‘Check to see if the site started, if not return false
If siteSection.GetPropertyByName(«state»).Value = 1 Then
StartWebSite = True
Else
StartWebSite = False
End If
End Function
‘Stop the application pool for the website
Function StopAppPool()
Dim ahwriter, appPoolsSection, appPoolsCollection, index, appPool, appPoolMethods, startMethod, callStartMethod
Set ahwriter = CreateObject(«Microsoft.ApplicationHost.WritableAdminManager»)
Set appPoolsSection = ahwriter.GetAdminSection(APPLICATION_POOLS_SECTION_NAME, CONFIG_APPHOST_ROOT)
Set appPoolsCollection = appPoolsSection.Collection
index = FindAppPoolIndex(appPoolsCollection, APP_POOL_NAME)
Set appPool = appPoolsCollection.Item(index)
‘Stop the application pool
Set appPoolMethods = appPool.Methods
Set startMethod = appPoolMethods.Item(STOP_APP_POOL)
Set callStartMethod = startMethod.CreateInstance()
callStartMethod.Execute()
End Function
‘Stop the website
Function StopWebSite()
Dim ahwriter, sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethod, autoStartProperty
Set ahwriter = CreateObject(«Microsoft.ApplicationHost.WritableAdminManager»)
Set sitesSection = ahwriter.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)
Set sitesSectionCollection = sitesSection.Collection
index = FindSiteIndex(sitesSectionCollection, SITE_NAME)
Set siteSection = sitesSectionCollection(index)
‘Stop the site
Set siteMethods = siteSection.Methods
Set startMethod = siteMethods.Item(STOP_WEB_SITE)
Set executeMethod = startMethod.CreateInstance()
executeMethod.Execute()
End Function
‘Cluster resource entry points. More details here:
‘Cluster resource Online entry point
‘Make sure the website and the application pool are started
Function Online( )
Dim bOnline
‘Make sure w3svc is started
bOnline = StartW3SVC()
If bOnline <> True Then
Resource.LogInformation «The resource failed to come online because w3svc could not be started.»
Online = False
Exit Function
End If
‘Make sure the application pool is started
bOnline = StartAppPool()
If bOnline <> True Then
Resource.LogInformation «The resource failed to come online because the application pool could not be started.»
Online = False
Exit Function
End If
‘Make sure the website is started
bOnline = StartWebSite()
If bOnline <> True Then
Resource.LogInformation «The resource failed to come online because the web site could not be started.»
Online = False
Exit Function
End If
Online = true
End Function
‘Cluster resource offline entry point
‘Stop the website
Function Offline( )
StopWebSite()
StopAppPool()
Offline = true
End Function
‘Cluster resource LooksAlive entry point
‘Check for the health of the website and the application pool
Function LooksAlive( )
Dim adminManager, appPoolState, configSection, i, appPoolName, appPool, index
i = 0
Set adminManager = CreateObject(«Microsoft.ApplicationHost.AdminManager»)
appPoolState = -1
‘Get the state of the website
if GetWebSiteState(adminManager, SITE_NAME) <> 1 Then
Resource.LogInformation «The resource failed because the » & SITE_NAME & » web site is not started.»
LooksAlive = false
Exit Function
End If
‘Get the state of the Application Pool
if GetAppPoolState(adminManager, APP_POOL_NAME) <> 1 Then
Resource.LogInformation «The resource failed because Application Pool » & APP_POOL_NAME & » is not started.»
LooksAlive = false
Exit Function
end if
‘ Web site and Application Pool state are valid return true
LooksAlive = true
End Function
‘Cluster resource IsAlive entry point
‘Do the same health checks as LooksAlive
‘If a more thorough than what we do in LooksAlive is required, this should be performed here
Function IsAlive()
IsAlive = LooksAlive
End Function
‘Cluster resource Open entry point
Function Open()
Open = true
End Function
‘Cluster resource Close entry point
Function Close()
Close = true
End Function
‘Cluster resource Terminate entry point
Function Terminate()
Terminate = true
End Function
‘<end script sample>
- Remove From My Forums
-
Question
-
Hi,
I’m following this guide to try to manage my on-premises Windows Server 2012r2 from Azure.
https://blogs.technet.microsoft.com/nanoserver/2016/02/09/introducing-server-management-tools/
I successfully manage to create the Server Management tools connection in Azure and install the Server management tools gateway on my Windows Server 2012r2 which registeres fine against my Azure subscription. I’ve installed all the prerequisities like
WMF 5.0 and trying to connect using the local Administrator account as credentials in Azure, but when connection I recieve this error:«Unable to connect to the server ‘12.11.0.147’: The WS-Management service cannot
process the request. The CIM namespace root/microsoft/windows/managementtools is invalid.»Just to make sure that the connection between Azure and Gateway on the Server is Ok I try with wrong account/password and the I get Access Denied/Invalid password — so everything is okay but something with this CIM namespace that’s wrong..
Any idea?
-
Moved by
Wednesday, June 8, 2016 12:28 PM
Related to VM
-
Moved by
- Remove From My Forums
-
Question
-
Hi,
I’m following this guide to try to manage my on-premises Windows Server 2012r2 from Azure.
https://blogs.technet.microsoft.com/nanoserver/2016/02/09/introducing-server-management-tools/
I successfully manage to create the Server Management tools connection in Azure and install the Server management tools gateway on my Windows Server 2012r2 which registeres fine against my Azure subscription. I’ve installed all the prerequisities like
WMF 5.0 and trying to connect using the local Administrator account as credentials in Azure, but when connection I recieve this error:«Unable to connect to the server ‘12.11.0.147’: The WS-Management service cannot
process the request. The CIM namespace root/microsoft/windows/managementtools is invalid.»Just to make sure that the connection between Azure and Gateway on the Server is Ok I try with wrong account/password and the I get Access Denied/Invalid password — so everything is okay but something with this CIM namespace that’s wrong..
Any idea?
-
Moved by
Wednesday, June 8, 2016 12:28 PM
Related to VM
-
Moved by
Попробуйте команду PS:
Set-FsrmFileGroup -Name "Anti-Ransomware File Groups" -IncludePattern @((Invoke-WebRequest -Uri "https://fsrm.experiant.ca/api/v1/combined" -UseBasicParsing).Content | ConvertFrom-Json | % {$_.filters})
Получение ошибки:
New-FsrmFileGroup : Invalid namespace
At line:1 char:1
+ New-FsrmFileGroup -Name "Anti-Ransomware File Groups" -IncludePattern @((Invoke- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (MSFT_FSRMFileGroup:Root/Microsoft/...T_FSRMFileGroup) [New-FsrmFileGroup], CimException
+ FullyQualifiedErrorId : HRESULT 0x8004100e,New-FsrmFileGroup
Я также заметил некоторые ошибки в FSRM:
Брандмауэр выключен, и я являюсь администратором домена, который запускает это как admin. SFC и ремонт WMI вернулись так же хорошо. Я собираюсь основать руководство (https://fsrm.experiant.ca/). Это работало на тонне других серверов, поэтому я не считаю, что команды были неправильно отформатированы.
Вывод Get-WmiObject -Namespace 'Root/Microsoft/Windows/Fsrm' -List
:
Get-WmiObject : Could not get objects from namespace Root/Microsoft/Windows/Fsrm.
Invalid namespace
At line:1 char:1
+ Get-WmiObject -Namespace 'Root/Microsoft/Windows/Fsrm' -List
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : INVALID_NAMESPACE_IDENTIFIER,Microsoft.PowerShell.Commands.GetWmiObjectCommand