Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

How do you verify SCVMM Run As account credentials with PowerShell?

When our Run As account experiences issues, SCVMM doesn't show an error message. How do I check account credentials to ensure they're correct?

The System Center Virtual Machine Manager server uses Run As accounts to communicate with its agents that are installed...

on Hyper-V hosts. It also authenticates virtualization hosts in the System Center Virtual Machine Manager console. These Run As accounts deploy VMs, configure existing Hyper-V hosts and deploy Hyper-V clusters and bare-metal environments.

Microsoft provides a PowerShell cmdlet to check if System Center Virtual Machine Manager (SCVMM) Run As account credentials are correct. SCVMM won't show a warning or error message if a Run As account has expired or experiences issues. Instead, admins will receive an authentication error message in the SCVMM job window.

In most cases, Active Directory (AD) Run As accounts manage existing Hyper-V hosts. The PowerShell cmdlet that tests SCVMM Service account credentials is Test-SCDomainCredential. As its name implies, this cmdlet only tests the credentials of a Run As account created in AD.

To check the credentials of single Run As account, run the following PowerShell commands in the PowerShell window of the SCVMM server:

$ThisRunAsAccount = Get-Credential

Test-SCDomainCredential –Credential $ThisRunAsAccount

If the credentials stored in the $ThisRunAsAccount variable are correct, the cmdlet output will show as TRUE. If there are issues with the credentials, the output will show as FALSE.

If you've created several Run As Accounts in SCVMM for different purposes, and need to get a list of Run As Accounts, execute the following PowerShell command on a SCVMM server:

Get-SCRunAsAccount | Get-SCRunAsAccountConsumer | Select-Obect RunAsAccount | Export-CSV “C:\Temp\AllRunAsAccounts.CSV” –NoTypeInformation.

Once you have a list of Run As accounts, you can verify account credentials any time you encounter authentication issues on the SCVMM server.

Next Steps

Customize SCVMM permissions to reduce management stress

What is SCVMM's role in managing a Hyper-V infrastructure?

Authenticate PowerShell scripts to execute complex command sequences

This was last published in April 2017

Dig Deeper on Microsoft Hyper-V management

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchVMware

SearchWindowsServer

SearchCloudComputing

SearchVirtualDesktop

SearchDataCenter

Close