Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Just out of Curiosity also I couldn't find the answers to this anywhere, I am learning Managed Service Account in Active Directory ,where i need to access it using WMI wbemtest tool.

Is there any special permission to be given to the MSA account ?.

To access what should I put in username and password in wbemtest tool.
Any help/explanation is deeply appreciated!

What I have tried:

Tried In Powershell :
But still I didnt accessed it.

$Admin="Domain\MSA"
$Password = ConvertTo-SecureString "pwd" -AsPlainText -Force
$Credentials = New-Object -Typename System.Management.Automation.PSCredential -ArgumentList $Admin,$Password

Get-WmiObject -ComputerName WinPC3 -Class Win32_OperatingSystem -Namespace "root\cimv2" -Credential $Credentials
Posted
Comments
Dave Kreskowiak 15-Mar-23 9:27am    
OK, so when you get the account, then what? What are you going to do with the account object?

Is the account you are looking for really called "MSA"? MSA is a service that manages accounts for you. That's all. There isn't a "MSA" account by default.

The username and password you use to access AD is YOUR username and password for your AD account.
Abishek Samuel 15-Mar-23 9:40am    
I created the manage service account in active directory. Next I want to connect my host machine to the AD vm machine using WMI.

Where I need to use the user name as the name of manage Service account.

If I use it as username. Then what should I use as password since MSA doesn't contain a password
Dave Kreskowiak 15-Mar-23 9:51am    
There is no password. If you're going to use the managed account, the account name would be "yourDomain\yourManagedAccountName$". Yes, the $ on the end must be there. YOu do not specify a password.

Managed accounts are for primarily for services. They are not normally used by users to login to machines.
Abishek Samuel 15-Mar-23 9:57am    
Yes, it is not normally used for login. But it is also like a user account.

Do i need to give special permission for this account to connect remotely using WMI?
Dave Kreskowiak 15-Mar-23 10:00am    
No special permissions are needed, but, again, that all depends on what you want to do with the WMI object you're querying for.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900