How to Make an Existing Premium AAD User a Standard User or Local Admin via CMD in Azure AD Hybrid Environment

Abstract: Add an existing Azure AD Premium user to local Users or Administrators groups via CMD in a hybrid environment.

Created: 2026-08-20 by
To manage an existing Azure AD Premium user's local permissions in a hybrid environment, you must use the Command Prompt with elevated privileges. Open CMD as Administrator and utilize the net localgroup command to add the user to the desired local group. For standard access, add them to the Users group; for administrative rights, add them to the Administrators group. This method works regardless of whether the user is a premium or standard Azure AD account, provided they are synchronized to the local device via Azure AD Join or Hybrid Join.

Prerequisites and Environment Setup

Before executing any commands, ensure that your Windows 10/11 device is properly joined to the Azure AD domain. In a hybrid environment, this typically means the device is either Azure AD Joined or Hybrid Azure AD Joined. The Azure AD Connect service must be running correctly on your on-premises Active Directory server to synchronize the user object to the cloud identity provider. If the user does not appear in the local security context when you type their UPN (User Principal Name), the synchronization may be delayed or failed. You can verify the sync status by checking the Azure AD portal or waiting for the next delta sync cycle. Additionally, ensure that the account running the CMD has Local Administrator privileges on the target machine, as modifying local groups requires elevated permissions.

Adding a User to the Standard Users Group

To grant a user standard, non-privileged access, you need to add their Azure AD identity to the local Users group. This group allows users to run applications and modify their own profiles but restricts system-wide changes. Open the Command Prompt by searching for cmd in the Start menu, right-clicking it, and selecting "Run as administrator." This step is critical; without elevation, the system will return an "Access Denied" error. Once the elevated prompt is open, you can execute the following command structure:
net localgroup Users "AzureAD\[email protected]" /add
Replace [email protected] with the actual User Principal Name (UPN) of the Azure AD user. The prefix AzureAD\ is often required to distinguish between local accounts and cloud identities, especially if a local account with the same name exists. If the user is already a member of the group, the system will confirm that the specified user was already a member of the group. It is good practice to verify the addition by running net localgroup Users to list all current members and confirm the new entry appears.

Granting Local Administrator Privileges

If the Premium AAD user requires full control over the device, you must add them to the local Administrators group. This grants them the ability to install software, change system settings, and manage other users. Use the same elevated CMD window and run the following command:
net localgroup Administrators "AzureAD\[email protected]" /add
Similar to the previous step, replace the placeholder with the correct UPN. Note that adding a user to the Administrators group gives them significant power, so this should only be done for trusted personnel. After execution, the user may need to log off and log back in for the new group membership to take full effect in certain contexts, although most modern Windows versions apply the changes immediately upon authentication. If you encounter errors related to the user not being found, ensure that the device has recently connected to the internet to refresh its cached Azure AD credentials.

Verifying Group Membership

After adding the user, verification is essential to ensure the operation succeeded. You can check the specific group membership by using the net user command followed by the username, or by listing the group members again. For a quick check, run:
net localgroup Administrators
Look for the UPN of the Azure AD user in the list. If the user is listed, the command was successful. If you are managing multiple devices, consider scripting this process. For example, you might find it useful to look into batch script techniques for launching programs with delays to sequence these commands safely in larger deployment scenarios. Automation can reduce human error, ensuring that every premium user gets the correct level of access consistently across your fleet.

Troubleshooting Common Issues

Several issues can prevent these commands from working. First, ensure that the Azure AD Connect sync is healthy. If the user was just created or modified on-premises, it may take up to 30 minutes to propagate to Azure AD. Second, check for typos in the UPN; Azure AD is case-insensitive for the domain part but sensitive to the overall format. Third, if the device is not joined to Azure AD, the AzureAD\ prefix will fail. In such cases, you cannot manage local groups via Azure AD identities until the join process is complete. Finally, ensure that no Group Policy Objects (GPOs) are restricting local group modifications. If GPOs are enforcing strict local group policies, the CMD commands may be overridden or blocked by the system policy engine.

Frequently Asked Questions

Can I remove a user from the local administrators group?

Yes, you can remove a user by replacing the /add switch with /delete in the net localgroup command. For example, use net localgroup Administrators "AzureAD\[email protected]" /delete. This instantly revokes their elevated privileges on that specific device.

Why does the command say the user was not found?

This usually indicates that the device has not yet synchronized the latest user data from Azure AD. Ensure the device is online and that Azure AD Connect is syncing correctly. You can also try refreshing the local credential cache by restarting the computer or logging out and back in.

Is there a difference between Azure AD Join and Hybrid Join for this command?

No, the net localgroup command works identically for both Azure AD Joined and Hybrid Azure AD Joined devices. Both methods register the device with Azure AD, allowing the cloud identity to be recognized locally by the Windows security subsystem.

Do I need to restart the computer after adding the user?

Generally, no. The new group membership takes effect the next time the user logs in. However, if the user is currently logged in, they will need to sign out and sign back in to acquire the new security token and access rights associated with the new group.

How do I handle users who have spaces in their username?

If the UPN contains spaces, which is rare but possible in legacy systems, enclose the entire string in quotes. For example: net localgroup Users "AzureAD\User [email protected]" /add. This ensures the command parser treats the space as part of the identifier rather than a separator.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More