---
sourceDocument: Australia Platform security
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/platform-security

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Test a Windows Management Instrumentation credential encrypted with Secrets Management

# Test a Windows Management Instrumentation credential encrypted with Secrets Management {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 Minuten Lesedauer

Verify that your Windows Management Instrumentation (WMI) credential is encrypted with Secrets Management and use an Integration Hub workflow to complete end-to-end testing.

## Vorbereitungen

Role required: admin, KMF_admin, sn_secrets.secret_manager, and sn_kmf.cryptographic_manager

* Integration Hub Enterprise must be active on your instance. For details, see [Request an Integration Hub plugin](https://www.servicenow.com/docs/access?context=request-integrationhub&version=australia&pubname=australia-integrate-applications&ft:locale=en-US).
* You must have a configured secrets group on your instance. See steps 1 through 3 listed in [Configuring client accessible secrets](https://servicenow-prod.fluidtopics.net/tzywqPErQGnkX_x6KVm81g "Learn how to configure your instance to use client accessible secrets.").
* You must have a configured credential encrypted with Secrets Management. See steps 1 through 9 listed in [Create credentials and test credential encryption](https://servicenow-prod.fluidtopics.net/fmqqZ0HHMbocSOzVweoOeQ "Create a credential to authenticate into a third-party system.").
{#client-access-example-8__ul_ydk_wm1_2bc}

## Prozedur

1. Confirm that the desired MID Server is associated with the Secret Group.  
   Open the Secret Group with Criteria \[sn_sm_criteria_secret_group\] record, and look for your MID Server in the Secret Group -- Identity Group Members list. If your MID Server isn't associated with a group see [Create a secret group with criteria](https://servicenow-prod.fluidtopics.net/tH~V1NI1jynMBkgxNZ7Q7g "Create a group for your secrets. Secret groups to organize your secrets into groups, and enable you to apply access policies to those secrets at a group level. Then associate your secrets group to an identity group, and add your MID Server to that identity group.").
2. Confirm that the credential is encrypted with Secrets Management.
   1. Navigate to AllIntegrationHubConnections \& CredentialsCredentials.
   2. Open your credential record.  
      Verify that you have a credential alias listed in the Credential alias field. If you have not created one already, see [Create a Connection \& Credential alias](https://servicenow-prod.fluidtopics.net/~Aalv0fAQwqapXknH2MgmA "Define an alias to label a credential or connection record.").
   3. Select and hold (or right-click) the header of your credentials record, and select Show XML from the list.
   4. In the XML view of the record, find the password and confirm that the value starts with `□□□A□□`.  
   {#client-access-example-8__substeps_zqh_151_2bc}
3. Create a testing workflow in Workflow Studio.
   1. Navigate to AllProcess AutomationWorkflow Studio.
   2. Select New, then select Action from the list.
   3. Enter a name in the Action name field.  
      Leave the Application field set to Global.
   4. Select the Build action button.
   {#client-access-example-8__substeps_hpw_rx1_2bc}
4. Configure a record lookup step in Workflow Studio.
   1. In the Action Outline, select the plus button to add a new step.  
      Find and select the Look Up Record step type.
   2. In the Table field, select MID Server \[ecc_agent\].
   3. For the condition, select Name is, followed by the name of your MID Server.

   Wichtig:  
   Make sure that the selected MID Server is the same as the one associated with the secret group.
5. Configure a record lookup step in Workflow Studio.
   1. In the Action Outline, select the plus button to add a new step below your Look Up Record step.  
      Find and select the PowerShell step type.
   2. In the PowerShell Step form, fill in the fields as needed.  
      {#client-access-example-8__table_qsc_q4g_2bc__entry__2}

      | Field | Value |
      |-|-|
      | Connection | Select Define Connection Inline |
      | Credential Alias | Select your credential alias |
      | Host | Enter the IP address of the target Windows server |
      | Port | Enter <kbd class="ph userinput">22</kbd> if it isn't already the default. |
      | MID Selection | Select Specific MID Server |
      | MID Server | Drag in the MID Server Record pill from the Data panel This data pill is visible in the Data panel on the right edge of the screen, under Look Up Record step. |
      | Remoting Type | Select Run on a MID Server or have your script establish a remote session |
      [Tabelle : 1. PowerShell step fields]

      {#client-access-example-8__table_qsc_q4g_2bc}

   {#client-access-example-8__substeps_ehp_r1b_2bc}  
6. Create a script for your test action.
   1. In the Script Type field, select Inline Script.
   2. Use the following script, replacing the example path with the path from your test host.  

          Get-Date | Out-File -FilePath C:\Users\<path>\sm_ig_text_file.txt

      Hinweis:  
      You may also run your own script that suits your remote host configuration. It's important to confirm that a connection was established using the SM-encrypted value.
   3. Select the Save button to save your action.

7. Select the Test button to test your action.
8. Review the output logs for any error messages.
9. Verify that a test file has been created on the host server in the file path you provided in the script.  

