Skip to content
Tech Master Tech Master

OneStopTechnical Forum

  • Books
  • AI
  • Networking
  • Windows
  • Linux
  • Cloud
  • Mac
  • Active Directory
  • Azure
  • Cloud
  • Exchange
  • M365
  • Server 2025
  • Storage
  • Vsphere
  • Website
  • Database
  • Security
  • Knowledge Base
  • VPN
Tech Master
Tech Master

OneStopTechnical Forum

Recovering deleted groups and users on folder permissions in Active Directory

blog.payperitem.com, April 3, 2025

Step 1: Check for Recent Backups

  • If you have Active Directory backups (using Windows Server Backup or a third-party tool like Veeam), restoring from backup may be the fastest way.
  • If using VM snapshots, you can revert AD to a previous state.

Step 2: Restore Deleted Users/Groups from AD Recycle Bin

If the Active Directory Recycle Bin is enabled, you can restore deleted users and groups.

Using Active Directory Administrative Center (GUI)

  1. Open Active Directory Administrative Center (dsac.exe).
  2. Navigate to Deleted Objects.
  3. Find the deleted user/group.
  4. Right-click and select Restore or Restore to.

Using PowerShell

powershell

Get-ADObject -Filter 'isDeleted -eq $True' -IncludeDeletedObjects | Format-Table Name, DistinguishedName

To restore a specific object:

powershell

Restore-ADObject -Identity "CN=DeletedUser,CN=Deleted Objects,DC=domain,DC=com"

If the Recycle Bin was not enabled, you’ll need to use authoritative restore (NTDSUTIL) or a backup.


Step 3: Check Folder Permissions (NTFS & Share)

Once the user or group is restored, check if their permissions were retained.

  1. Check the ACL on the folder:
    • Right-click the folder → Properties → Security tab → Advanced.
    • Look for Unknown Account (S-1-5-21-xxxxx), which means the original user/group was deleted.
    • If the user/group was restored, reapply permissions manually.
  2. Use PowerShell to list folder permissions:
powershell

Get-Acl "C:\YourFolder" | Format-List
  1. Reapply permissions if missing:
powershell$Acl = Get-Acl "C:\YourFolder"
$User = "DOMAIN\User"
$AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($User, "FullControl", "Allow")
$Acl.SetAccessRule($AccessRule)
Set-Acl "C:\YourFolder" $Acl

Step 4: Restore from Backup (If Needed)

If the NTFS permissions were lost and not recoverable:

  • Restore folder permissions using a backup (e.g., Veeam, Windows Server Backup, or Shadow Copies).
  • If using Group Policy, ensure any group-based access control settings are reapplied.

Step 5: Check Event Logs

  • Open Event Viewer → Security logs.
  • Look for Event ID 4726 (User Deletion) or Event ID 4729 (Group Deletion) to confirm what happened.
  • This can help you track down when and who deleted the object.

Step 6: Prevent Future Issues

  • Enable AD Recycle Bin if it’s not enabled (Enable-ADOptionalFeature).
  • Regularly back up Active Directory using System State backups.
  • Use Group Policy to enforce permissions instead of direct ACLs.
  • Implement audit logging to track changes in AD.

Active Directory Server 2025 Windows

Post navigation

Previous post
Next post

Related Posts

Top Picks for Web Apps + AD + 2FA

April 7, 2025

🛡️ 1. Keycloak — Best All-Around Option 🔧 Example: You can run Keycloak as an identity provider (IdP), connect it to AD via LDAP, and use it as the login portal for all your web apps (e.g., Grafana, Jenkins, GitLab, custom apps using OIDC or SAML). 🔐 2. Authelia —…

Read More

Resetting an Active Directory (AD) Administrator password Method-2

April 4, 2025April 4, 2025

Method 1: Reset via Another Domain Admin If you have access to another domain admin account, you can reset the password easily: Method 2: Reset via Command Line (If Another Admin Account Exists) Method 3: Reset via NTDSUTIL (If No Other Admin Account is Available) If you are locked out…

Read More

Design and deploy AWS Managed Microsoft AD and AD Connector to meet enterprise authentication and authorization requirements

April 16, 2025April 18, 2025

Designing and deploying AWS Managed Microsoft AD and AD Connector involves understanding their roles in extending or integrating with your on-premises Active Directory, and selecting the right solution based on use case, security, performance, and manageability. 🔧 SCENARIO OVERVIEW You need to provide enterprise-grade authentication and authorization across AWS resources…

Read More

Recent Posts

  • List of AD Schema Versions
  • OldNewExplorer Free Download For Windows 11, 10, 8 and 7 [Latest Version]
  • How to Get the Classic (old) Context Menu on Windows 11
  • BitLocker Recovery Keys
  • Active Directory and Server hardening

Recent Comments

No comments to show.
June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    
Log in
©2025 Tech Master | WordPress Theme by SuperbThemes
  • Login
  • Sign Up
Forgot Password?
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
body::-webkit-scrollbar { width: 7px; } body::-webkit-scrollbar-track { border-radius: 10px; background: #f0f0f0; } body::-webkit-scrollbar-thumb { border-radius: 50px; background: #dfdbdb }