Avatar of tjie
tjieFlag for United States of America

asked on 

Add a security group to a Local Admin group of a virtual machine

Hi,
 
  I have Dell Server PowerEdge R510 with the Windows server 2019 Operating System.
 This server hosted several Virtual Machines. The name of this server is “Server6”
There is a virtual machine called “VM-MFA”
In the Active Directory (User and computer), there is a security group called “MFA”
I have got both access permission to “Server6” and “VM-MFA”
 
The Goal: I must ADD this security group “MFA” to the Local Admin group of this virtual machine “VM-MFA”.
 
Somebody would show me how to do it please.


Thanks,

Tjie

SecurityVirtualizationDellActive Directory

Avatar of undefined
Last Comment
Michael B. Smith
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Is Server6 a member of the domain?

I would do it with PowerShell.

On the VM-MFA vm, open PowerShell elevated then enter:
Add-LocalGroupMember -Group Administrators -Member $env:userdomain\MFA

Open in new window

Active Directory
Active Directory

Active Directory (AD) is a Microsoft brand for identity-related capabilities. In the on-premises world, Windows Server AD provides a set of identity capabilities and services, and is hugely popular (88% of Fortune 1000 and 95% of enterprises use AD). This topic includes all things Active Directory including DNS, Group Policy, DFS, troubleshooting, ADFS, and all other topics under the Microsoft AD and identity umbrella.

86K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo