Active Directory
AAD Group Writeback Script
(github.com)
This repository contains a script that can take certain groups in an Azure Active Directory, defined
By: goodworkaround submitted:Jun 16 2022
This repository contains a script that can take certain groups in an Azure Active Directory, defined
by a scope, writing them back to onpremises Active Directory, including group memberships.
By: goodworkaround submitted:Jun 16 2022
Active Directory ACL Reporter
(powershellcenter.com)
PowerShell Module to create Active Directory ACL report, it also creates an HTML report, This Module
By: Faris Malaeb submitted:Jun 16 2022
PowerShell Module to create Active Directory ACL report, it also creates an HTML report, This Module
can show Who has what on which object.
By: Faris Malaeb submitted:Jun 16 2022
Active Directory ACL Reporter – PowerShell
(powershellcenter.com)
There is no need to talk about the critical role Active Directory plays within the organization.
By: Faris Malaeb submitted:Jul 28 2022
There is no need to talk about the critical role Active Directory plays within the organization.
Securing Active Directory is a massive part of the overall organization security, configuration, and permission and Access Control List (ACL).
By: Faris Malaeb submitted:Jul 28 2022
Active Directory Auditing: How to Track Down Password Changes
(adamtheautomator.com)
Tracking and auditing changes to passwords in an Active Directory (AD) domain are crucial to
By: Adam Listek submitted:Jun 16 2022
Tracking and auditing changes to passwords in an Active Directory (AD) domain are crucial to
maintaining a secure environment and heading off bad actors early. Thankfully, AD offers the information necessary to track these changes, despite being difficult to parse and understand at times. LAPS is a great example of this.
By: Adam Listek submitted:Jun 16 2022
Active Directory Database: PowerShell Monitoring Made Easy
(adamtheautomator.com)
Find the ntds.dit location and monitor your Active Directory database using PowerShell.
By: Adam Bertram submitted:Feb 2 2024
Find the ntds.dit location and monitor your Active Directory database using PowerShell.
By: Adam Bertram submitted:Feb 2 2024
Active Directory Delegation done the PowerShell way!
(ehmiiz.tech)
Your best bet is to use the Delegation wizard, but wheres the fun (PowerShell fun..) in that. And
By: Emil Larsson submitted:Mar 17 2023
Your best bet is to use the Delegation wizard, but wheres the fun (PowerShell fun..) in that. And
how well does it scale? Not very well.
By: Emil Larsson submitted:Mar 17 2023
Active Directory Health Check using Microsoft Entra Connect Health Service
(evotec.xyz)
Active Directory (AD) is crucial in managing identities and resources within an organization.
By: Przemyslaw Klys submitted:Oct 13 2023
Active Directory (AD) is crucial in managing identities and resources within an organization.
Ensuring its health is pivotal for the seamless operation of various services. Today, I decided to look at Microsoft Entra Connect Health (Azure AD Connect Health) service, which allows monitoring Azure AD Connect, ADFS, and Active Directory. This means that under a single umbrella, you can have an overview of three services health. But is it worth it?
By: Przemyslaw Klys submitted:Oct 13 2023
Active Directory Health Checklist
(mczerniawski.pl)
Mateusz created a repository with simple lists in different topics with RAW Active Directory checks.
By: submitted:Jun 15 2022
Mateusz created a repository with simple lists in different topics with RAW Active Directory checks.
By: submitted:Jun 15 2022
Active Directory Help Desk – Computer Report
(ironmansoftware.com)
In this blog post, we will look at how to create a scheduled script to collect some information
By: Adam Driscoll submitted:Jun 16 2022
In this blog post, we will look at how to create a scheduled script to collect some information
about computers in our Active Directory domain. Then, we will update our dashboard and take advantage of the charting capabilities of Universal Dashboard to show the information in an easy to digest manner.
By: Adam Driscoll submitted:Jun 16 2022
Active Directory Infra check using PowerShell
(powershellisfun.com)
Some of our customers have an Active Directory environment that needs upgrading, to get a good
By: Harm Veenstra submitted:Dec 2 2022
Some of our customers have an Active Directory environment that needs upgrading, to get a good
overview of their environment I always check a lot of things before writing a report and a recommendation about which steps we need to take. In this blog post, I will show you a script that gathers information about the Active Directory Domain which saves a lot of command-line checking and starting up Management Consoles 😉
By: Harm Veenstra submitted:Dec 2 2022
Active Directory Replication Summary to your Email or Microsoft Teams
(evotec.xyz)
Active Directory replication is a critical process that ensures the consistent and up-to-date state
By: Przemyslaw Klys submitted:Apr 19 2024
Active Directory replication is a critical process that ensures the consistent and up-to-date state
of directory information across all domain controllers in a domain. Monitoring this process is important as it helps identify any issues that may arise and resolve them quickly. One way to monitor Active Directory replication is by using the Repadmin command-line tool. Repadmin provides a wealth of information about the replication status and health of a domain. However, manually checking the Repadmin output can be time-consuming and tedious, and running it manually every 30 minutes just to check if everything is great doesn't seem like a great idea. While PowerShell has its own commands around replication I've not found something as fast and reliable as repadmin /replsummary.
By: Przemyslaw Klys submitted:Apr 19 2024
Active Directory Scripts Galore
(adamtheautomator.com)
A huge and useful list of Active Directory scripts put together by Adam.
By: submitted:Jun 15 2022
A huge and useful list of Active Directory scripts put together by Adam.
By: submitted:Jun 15 2022
Active Directory Scripts Galore: Come and Get It!
(adamtheautomator.com)
Active Directory is one of the most common uses for PowerShell. I have personally been building
By: Adam Bertram submitted:Jun 16 2022
Active Directory is one of the most common uses for PowerShell. I have personally been building
Active Directory scripts using VBScript and PowerShell for over a decade. Here's a big sample of Active Directory PowerShell scripts to do all kinds of stuff!
By: Adam Bertram submitted:Jun 16 2022
Active Directory: Find users based on Attributes and add them to a Group with PowerShell
(sid-500.com)
Active Directory objects are usually stored in organizational units. Sometimes these organizational
By: Patrick Gruenauer submitted:Jun 16 2022
Active Directory objects are usually stored in organizational units. Sometimes these organizational
units don't refer to the site where the users work.
By: Patrick Gruenauer submitted:Jun 16 2022
Active-Directory-CheckList
(github.com)
A repo for documents containing curated list of health and (in the future security) checks to be run
By: submitted:Jun 15 2022
A repo for documents containing curated list of health and (in the future security) checks to be run
against a Windows Active-Directory domain.
By: submitted:Jun 15 2022
An Active Directory Change Report from PowerShell
(jdhitsolutions.com)
A few days ago I posted some PowerShell code that you could use to be alerted when things changed in
By: Jeff Hicks submitted:Jun 16 2022
A few days ago I posted some PowerShell code that you could use to be alerted when things changed in
Active Directory. The code used PowerShell and CIM events to notify you, for example, when a new user account is created. This can be helpful when you need alerting. But perhaps you only need reporting. What has changed in Active Directory since a given date and time, such as in the last 24 hours? And wouldn't it be nice to have a pretty report? Let me help. Here's how I approached the prob lem using PowerShell and the ActiveDirectory module.
By: Jeff Hicks submitted:Jun 16 2022
Audit Group Policy changes in the event log using XML queries and PowerShell
(4sysops.com)
Custom views in the Event Viewer allow you to filter the metadata of log entries based on various
By: Wolfgang Sommergut submitted:Jul 12 2024
Custom views in the Event Viewer allow you to filter the metadata of log entries based on various
criteria. However, these filters do not assess the content of the log entry messages. To evaluate the log messages, you can extend filters using an XPath query. The examples below demonstrate how to audit Group Policy changes with XML queries, which you can further process with PowerShell.
By: Wolfgang Sommergut submitted:Jul 12 2024
Audit-UserShare
(github.com)
Need to find all old user accounts who have home directories? How about old directories that have no
By: Foyerr submitted:Jun 16 2022
Need to find all old user accounts who have home directories? How about old directories that have no
user?
By: Foyerr submitted:Jun 16 2022
Automating Active Directory Jobs with PowerShell Scripts
(mcpmag.com)
PowerShell seems to have the ability to automate just about anything. Active Directory (AD) is no
By: submitted:Jun 15 2022
PowerShell seems to have the ability to automate just about anything. Active Directory (AD) is no
different. By downloading a freely available PowerShell module, an IT admin can manage every facet of AD and build powerful scripts to save time on all kinds of tasks. The best part is that knowledge of LDAP, ADSI and other typically developer-focused terms is not necessary. The PowerShell cmdlets take care of that stuff for you.
By: submitted:Jun 15 2022
Better Active Directory Reporting with PowerShell
(jdhitsolutions.com)
During the course of conversations with my friend and AD admin, Gladys Kravitz, I realized I needed
By: Jeff Hicks submitted:Jun 16 2022
During the course of conversations with my friend and AD admin, Gladys Kravitz, I realized I needed
to build a solid reporting tool around Active Directory. I had a library of scripts and functions I have written over the years, including a few that I've written about here recently. Thus was born ADReportingTools.
By: Jeff Hicks submitted:Jun 16 2022
Building a better Group Policy backup with Powershell
(networkadm.in)
The PowerShell script I discuss in this post creates a Group Policy backup in a different way than
By: Mike Kanakos submitted:Jun 15 2022
The PowerShell script I discuss in this post creates a Group Policy backup in a different way than
with the Backup-GPO cmdlet of the Group Policy module. With my function, it will be much easier to identify the correct Group Policy Object (GPO) in case you have to restore Group Policy settings.
By: Mike Kanakos submitted:Jun 15 2022
Building an Active Directory Health Check Tool
(adamtheautomator.com)
If you use, Active Directory (AD), it is probably the most important system you've got. Without it,
By: Alex Asplund submitted:Jun 15 2022
If you use, Active Directory (AD), it is probably the most important system you've got. Without it,
users can't login, they probably can't browse the web, machines can't communicate and finance won't be able to generate their latest report. Be sure you keep AD in tip top shape with an Active Directory health check script!
By: Alex Asplund submitted:Jun 15 2022
Clean-ADInactiveDevice
(github.com)
Just released an AD inactive devices cleanup PowerShell script. It can disable and move computer
By: Ioan Popovici submitted:Jun 16 2022
Just released an AD inactive devices cleanup PowerShell script. It can disable and move computer
objects. Also it logs in EventLog and as a file on disk in csv format.
By: Ioan Popovici submitted:Jun 16 2022
Cleanup Active Directory groups with PowerShell
(blog.it-koehler.com)
Taking care for local Active Directory (if it is still present) is one of the most important tasks,
By: Alexander Koehler submitted:Sep 8 2023
Taking care for local Active Directory (if it is still present) is one of the most important tasks,
so you may need also cleanup disabled users from groups. Sometimes you don't want to delete users but only removing them from AD groups is required (often for licensing issues etc.)
By: Alexander Koehler submitted:Sep 8 2023
Configuring PowerShell 7 With Group Policy
(tfl09.blogspot.com)
Group policy is a feature of Windows Server Active Directory which automagically deploys groups of
By: Thomas Lee submitted:Jun 16 2022
Group policy is a feature of Windows Server Active Directory which automagically deploys groups of
policies to users and computers. A policy is some computer setting you wish to enforce, such as which screen saver to use, what desktop background to use, or what the default execution policy should be.
By: Thomas Lee submitted:Jun 16 2022
Confirm Domain Join during OSD
(garytown.com)
I've got a small group in my TS that double checks the domain join status, then exit with an error
By: Gary Blok submitted:Aug 16 2024
I've got a small group in my TS that double checks the domain join status, then exit with an error
code if the OSD process didn't join the domain properly. Basically, I'm using PowerShell to do a couple of lookups and writing the information to variables, which I then use to trigger an exit command.
By: Gary Blok submitted:Aug 16 2024
Copy multi-valued Active Directory attributes from one user to another with PowerShell
(devblogs.microsoft.com)
Using -Replace parameter with Set-ADUser to copy Active Directory multi-valued attributes
By: Dr Scripto (MSFT Scripting Guys) submitted:Jun 15 2022
Using -Replace parameter with Set-ADUser to copy Active Directory multi-valued attributes
By: Dr Scripto (MSFT Scripting Guys) submitted:Jun 15 2022
Creating a Company Standard Naming Computers with PowerShell
(clatent.com)
Tired of guessing or remembering which prefix to use when setting up a new computer? Or what about
By: Clayton Tyger submitted:Apr 28 2023
Tired of guessing or remembering which prefix to use when setting up a new computer? Or what about
when you by accident fat finger it, and you have to redo it? Or even, you have multiple people in ...
By: Clayton Tyger submitted:Apr 28 2023
Delete Device Records in AD / AAD / Intune / Autopilot / ConfigMgr with PowerShell smsagent
(smsagent.blog)
I've done a lot of testing with Windows Autopilot in recent times. Most of my tests are done in
By: Trevor Jones submitted:Jun 16 2022
I've done a lot of testing with Windows Autopilot in recent times. Most of my tests are done in
virtual machines, which are ideal as I can simply dispose of them after. But you also need to cleanup the device records that were created in Azure Active Directory, Intune, the Autopilot registration service, Microsoft Endpoint Manager (if you're using it) and Active Directory in the case of Hybrid-joined devices.
By: Trevor Jones submitted:Jun 16 2022
Deploy PowerShell ActiveDirectory Module without installing the remote server tools
(janikvonrotz.ch)
Make use of the PowerShell ActiveDirectory module always required to install the Remote Server
By: Janik Vonrotz submitted:Jun 16 2022
Make use of the PowerShell ActiveDirectory module always required to install the Remote Server
Administration Tools. That sucks! We want it as simple as executing a script.
By: Janik Vonrotz submitted:Jun 16 2022
Diagrammer.Microsoft.AD v 0.1.5
(powershellgallery.com)
A PowerShell module to generate an as built report on the configuration of Microsoft AD.
By: Jonathan Colon submitted:Jan 26 2024
A PowerShell module to generate an as built report on the configuration of Microsoft AD.
By: Jonathan Colon submitted:Jan 26 2024
Distinguished Parsing with PowerShell and Regex
(jdhitsolutions.com)
The other day I'm chatting with my friend Gladys Kravitz about Active Directory and she makes an
By: Jeff Hicks submitted:Jun 16 2022
The other day I'm chatting with my friend Gladys Kravitz about Active Directory and she makes an
off-hand remark about parsing out organizational unit names from a distinguished name. On one hand, this is a pretty simple task, assuming a proper distinguished name from the Active Directory cmdlets. All you really need to do is split the string.
By: Jeff Hicks submitted:Jun 16 2022
Documenting all GPOs with PowerShell
(sid-500.com)
Active Directory Group Policies (GPO) enables you to control user and computer settings. It is
By: Patrick Gruenauer submitted:May 5 2023
Active Directory Group Policies (GPO) enables you to control user and computer settings. It is
important to document them. In this blog post I am going to show you two PowerShell commands [...]
By: Patrick Gruenauer submitted:May 5 2023
Documenting with PowerShell: Active Directory domain and settings
(cyberdrain.com)
Clients that still have a server on-site are become rare these days - Most of our client base is
By: Kelvin Tegelaar submitted:Jun 15 2022
Clients that still have a server on-site are become rare these days - Most of our client base is
either completely public cloud using AAD or they have hosted servers in our private cloud. For these clients I've made the following script to document their Active Directory server settings. I always I want to be in complete control of my clients environment. That means having up to date documentation at the ready.
By: Kelvin Tegelaar submitted:Jun 15 2022
DomainManagement v 1.8.202
(powershellgallery.com)
Module to manage domain configuration
By: Friedrich Weinmann submitted:Jan 12 2024
Module to manage domain configuration
By: Friedrich Weinmann submitted:Jan 12 2024
DomainManagement v1.8.188
(powershellgallery.com)
Module to manage domain configuration
By: Friedrich Weinmann submitted:Feb 10 2023
Module to manage domain configuration
By: Friedrich Weinmann submitted:Feb 10 2023
DSInternals
(github.com)
Offline modification of Active Directory databases is now supported on Windows Server 2022,
By: Michael Grafnetter submitted:Jun 16 2022
Offline modification of Active Directory databases is now supported on Windows Server 2022,
including password resets, SID history injection, group membership changes, and enabling/disabling accounts.
By: Michael Grafnetter submitted:Jun 16 2022
Easily Enable End Users to Manage Active Directory Users with PowerShell GUI
(thelazyadministrator.com)
Recently I got a request to find a way to let managers or Human Resources the ability to modify
By: Brad Wyatt submitted:Jun 16 2022
Recently I got a request to find a way to let managers or Human Resources the ability to modify
basic user attributes in Active Directory. Like anyone else, I presented the idea of using RSAT to let them modify users in ADUC or ADAC. This was not an ideal solution because ADUC can become overwhelming to someone that isn't technical. They wanted something that was extremely basic, easy to follow and work in without any guidance or instructions, and did not show the user anything else that they could not modify or needed to see.
By: Brad Wyatt submitted:Jun 16 2022
Enable Azure AD Groups for GroupWriteback v2 using MS Graph Powershell
(youtube.com)
In this stream I had a casual coding walkthrough of the Azure AD group properties for managing per
By: Jef Kazimer submitted:Jul 22 2022
In this stream I had a casual coding walkthrough of the Azure AD group properties for managing per
group writeback v2 to on-premises using MS Graph PowerShell
By: Jef Kazimer submitted:Jul 22 2022
Export all GPOs to a folder
(pastebin.com)
Quick script to export all GPOs
By: Guy Leech submitted:Jun 16 2022
Quick script to export all GPOs
By: Guy Leech submitted:Jun 16 2022
Extract LAPS Passwords and BitLocker Keys from Active Directory
(tommymaynard.com)
The below PowerShell can be used to extract LAPS Passwords and BitLocker Keys from Active Directory.
By: Tommy Maynard submitted:Jul 26 2024
The below PowerShell can be used to extract LAPS Passwords and BitLocker Keys from Active Directory.
This was written on Friday, July 19, 2024, due to the CrowdStrike Outage. If you choose to test this PowerShell, ensure that you update the argument for the SearchBase parameter to reflect your Active Directory domain.
By: Tommy Maynard submitted:Jul 26 2024
Find Empty Groups in Active Directory using PowerShell
(thesysadminchannel.com)
Whether it's time for spring cleaning or you're just doing some general cleanup, it's important to
By: Paul Contreras submitted:Oct 6 2023
Whether it's time for spring cleaning or you're just doing some general cleanup, it's important to
maintain a proper lifecycle around Active Directory groups. Many organizations love creating groups however, some (most?), don't really like to do cleanup
By: Paul Contreras submitted:Oct 6 2023
Find enabled local Group Policy settings with rsop.msc and PowerShell
(4sysops.com)
When it comes to GPO troubleshooting, you might want to find settings that are configured by local
By: Wolfgang Sommergut submitted:Aug 11 2023
When it comes to GPO troubleshooting, you might want to find settings that are configured by local
Group Policy. With rsop.msc, a graphical tool is available for this purpose. However, it is generally more efficient to generate a report using gpresult.exe and evaluate it with PowerShell.
By: Wolfgang Sommergut submitted:Aug 11 2023
Find orphaned (unused) User Accounts with PowerShell
(sid-500.com)
This short blog post will show you how you can find orphaned user accounts in Active Directory that
By: Patrick Gruenauer submitted:Jun 16 2022
This short blog post will show you how you can find orphaned user accounts in Active Directory that
may no longer be in use. Let's go.
By: Patrick Gruenauer submitted:Jun 16 2022
Find the source of AD account lockouts
(4sysops.com)
In a previous post, we discussed how to quickly unlock AD accounts with PowerShell. However, the
By: Surender Kumar submitted:Jan 13 2023
In a previous post, we discussed how to quickly unlock AD accounts with PowerShell. However, the
main problem admins tend to face is identifying the source computer or service that is causing the account to lock out in the first place.
By: Surender Kumar submitted:Jan 13 2023
Finding duplicate SPN with PowerShell
(evotec.xyz)
Duplicate SPNs aren't very common but can happen in any Active Directory as there's no built-in way
By: Przemyslaw Klys submitted:Jun 16 2022
Duplicate SPNs aren't very common but can happen in any Active Directory as there's no built-in way
that tracks and prevent duplicate SPN's
By: Przemyslaw Klys submitted:Jun 16 2022
Finding nested Active Directory groups faster with PowerShell
(4sysops.com)
Finding nested groups in large Active Directory groups can be a challenging task. Active Directory
By: Mike Kanakos submitted:Jun 16 2022
Finding nested groups in large Active Directory groups can be a challenging task. Active Directory
includes the cmdlet Get-ADGroupMember for finding group members, but it cannot be used to query groups with over 5000 members. The cmdlet also suffers from performance bottlenecks. I'd like to share with you a tool I built that solves both those problems.
By: Mike Kanakos submitted:Jun 16 2022
ForestManagement v1.5.54
(powershellgallery.com)
Infrastructure module to build and maintain forest configuration
By: Friedrich Weinmann submitted:Feb 10 2023
Infrastructure module to build and maintain forest configuration
By: Friedrich Weinmann submitted:Feb 10 2023
Four commands to help you track down insecure LDAP Bindings before March 2020
(evotec.xyz)
In March 2020, Microsoft will release its monthly updates. With those updates, Microsoft will
By: Przemyslaw Klys submitted:Jun 15 2022
In March 2020, Microsoft will release its monthly updates. With those updates, Microsoft will
disable insecure LDAP Bindings, which is going to break a lot of your systems (hopefully not). But this was already communicated, and you know all about it, right? If not, you should read those two articles that can help you with understanding what is happening and when.
By: Przemyslaw Klys submitted:Jun 15 2022
Gathering AD Data with the Active Directory PowerShell Module – Active Directory Security
(adsecurity.org)
A great primer on getting started with the Active Directory PowerShell module.
By: Sean Metcalf submitted:Jun 15 2022
A great primer on getting started with the Active Directory PowerShell module.
By: Sean Metcalf submitted:Jun 15 2022
Get Active Directory ports with PowerShell
(4sysops.com)
Active Directory services communicate over specific ports needed for authentication, replication,
By: Markus Elsberger submitted:Oct 25 2024
Active Directory services communicate over specific ports needed for authentication, replication,
and other directory services. Knowing these ports is crucial for configuring firewalls, ensuring secure communication, and troubleshooting network issues related to Active Directory services. This post will teach you how to get the Active Directory ports with PowerShell.
By: Markus Elsberger submitted:Oct 25 2024
Get Direct Reports in Active Directory Using Powershell (Recursive)
(thesysadminchannel.com)
It might come in handy from time to time to drill down on a manager's direct reports in Active
By: theSysadminChannel submitted:Jun 16 2022
It might come in handy from time to time to drill down on a manager's direct reports in Active
Directory. A good use case is if a director or VP wants to send an email to all of their direct reports, and the direct reports of those direct reports. Another use case would be if you were doing an audit comparing your HR system to what is in Active Directory. What ever the reason might be, you can use this script to get direct reports in active directory using Powershell. Pretty neat!!
By: theSysadminChannel submitted:Jun 16 2022
Get Installed Language from Domain Computers/Servers
(nielskok.tech)
This is a quick short blog about how to get the installed language from domain
By: Niels Kok submitted:Jul 14 2023
This is a quick short blog about how to get the installed language from domain
By: Niels Kok submitted:Jul 14 2023
Get-ADObject: Querying Active Directory Objects
(adamtheautomator.com)
Are you looking for a quick way to create an Active Directory (AD) report using PowerShell? You've
By: Kevin Sapp submitted:Jun 15 2022
Are you looking for a quick way to create an Active Directory (AD) report using PowerShell? You've
come to the right place! In this article, you will learn how to create custom reports of user accounts in your AD environment using the Get-ADObject cmdlet.
By: Kevin Sapp submitted:Jun 15 2022
Get-GpoReport
(adamtheautomator.com)
How to Build Fancy GPO Reports with PowerShell
By: Emanuel Halapciuc submitted:Jun 16 2022
How to Build Fancy GPO Reports with PowerShell
By: Emanuel Halapciuc submitted:Jun 16 2022
Get-LastLogon
(reddit.com)
Get accurate last logon time for user
By: u/krzydoug submitted:Jun 16 2022
Get accurate last logon time for user
By: u/krzydoug submitted:Jun 16 2022
GetVulnerableGPO
(github.com)
PowerShell script to find 'vulnerable' security-related GPOs that should be hardened
By: Darren Mar-Elia submitted:Jun 15 2022
PowerShell script to find 'vulnerable' security-related GPOs that should be hardened
By: Darren Mar-Elia submitted:Jun 15 2022
GPOTools – Group Policy Migration tool just released
(github.com)
The GPOTools module is designed to handle all things GPO. As a special focus, it tries to manage
By: submitted:Jun 15 2022
The GPOTools module is designed to handle all things GPO. As a special focus, it tries to manage
migrations, backup & restore.
By: submitted:Jun 15 2022
How do I Un-Join, Reboot then Join my Domain via Powershell?
(reddit.com)
My question is, how can I convert these steps to Powershell? Once I enter the correct code and press
By: u/mudderfudden submitted:Sep 9 2022
My question is, how can I convert these steps to Powershell? Once I enter the correct code and press
Enter, will I be prompted for MyAdmin password? I saw a few examples but they don't seem to be quite what I'm looking for. I would be performing this on an individual station, therefore I don't think I would need to specify a computer name.
By: u/mudderfudden submitted:Sep 9 2022
How to Check Who Reset the Password of a User in Active Directory
(woshub.com)
Every wondered who reset that service account password, or any other user password in Active
By: submitted:Jun 15 2022
Every wondered who reset that service account password, or any other user password in Active
Directory. Well wonder no longer with this tutorial from Windows OS Hub showing you every step of the process, from enabling logging, to how to search the logs with PowerShell.
By: submitted:Jun 15 2022
How to Find Active Directory Schema Update History by Using PowerShell
(devblogs.microsoft.com)
Use Windows PowerShell to discover what schema updates have been applied to your Active Directory
By: Dr Scripto submitted:Jun 16 2022
Use Windows PowerShell to discover what schema updates have been applied to your Active Directory
environment.
By: Dr Scripto submitted:Jun 16 2022
How to perform Azure AD bulk operations with PowerShell
(networkadm.in)
While the Azure portal is fine for simple user and group management in Azure Active Directory,
By: Mike Kanakos submitted:Jun 16 2022
While the Azure portal is fine for simple user and group management in Azure Active Directory,
PowerShell is the optimal choice when you need to make large-scale changes. But there are caveats to consider before you can reap the automation benefits.
By: Mike Kanakos submitted:Jun 16 2022
How to Revoke Azure AD Tokens from Expired AD Users
(adamtheautomator.com)
Do you have an on-prem Active Directory (AD) environment and syncing to Azure Active Directory (AD)?
By: Adam Bertram submitted:Jun 15 2022
Do you have an on-prem Active Directory (AD) environment and syncing to Azure Active Directory (AD)?
If so, you may have run across a frustrating problem - an on-prem AD user has expired but that user can still access resources protected with Azure AD.
By: Adam Bertram submitted:Jun 15 2022
Join Linux to Active Directory with PowerShell Core
(winsysblog.com)
PowerShell Core is now generally available, which means you can now start running it on your
By: Dan Franciscus submitted:Jun 15 2022
PowerShell Core is now generally available, which means you can now start running it on your
production servers and not feel guilty! There are many possibilities for using PowerShell on non-Windows platforms now and today my mind was pondering how to use it to join Linux servers to Active Directory. So, I created a small little function that automates some of this called Join-LinuxToAD. Keep in mind I tested this only on CentOS 7.
By: Dan Franciscus submitted:Jun 15 2022
Learn to adjust the AdminCount attribute in protected accounts
(techtarget.com)
It's critical to know how to change the settings for protected accounts and groups in Active
By: Mike Kanakos submitted:Jun 16 2022
It's critical to know how to change the settings for protected accounts and groups in Active
Directory to avoid serious problems. PowerShell can make quick edits to keep order.
By: Mike Kanakos submitted:Jun 16 2022
Learning Powershell: Weaning Yourself Away From the GUI for Active Directory
(networkadm.in)
I recently was a guest on the Hybrid Identity Podcast to discuss getting started with automation and
By: Mike Kanakos submitted:Jun 16 2022
I recently was a guest on the Hybrid Identity Podcast to discuss getting started with automation and
how it fits in with Identity Management. This is a new podcast presented by Semperis and hosted by 15 time MVP Sean Deuby. The podcast is off to a fantastic start with wide range of experts in the field of Identity Management. It's a great listen because of the topics but also because the episodes are only 15-20 minutes in length.
By: Mike Kanakos submitted:Jun 16 2022
Mastering Active Directory Hygiene: Automating Stale Computer Cleanup with CleanupMonster
(evotec.xyz)
Have you ever looked at your Active Directory and wondered, "Why do I still have computers listed
By: Przemyslaw Klys submitted:Aug 30 2024
Have you ever looked at your Active Directory and wondered, "Why do I still have computers listed
that haven't been turned on since World Cup 2016?" Yeah, we've all been there. Keeping AD clean and up-to-date is like trying to organize your garage-it's easy to put off until it becomes a total mess.
By: Przemyslaw Klys submitted:Aug 30 2024
Modern Active Directory – An update to PSHTML-AD-Report
(thelazyadministrator.com)
This document presents the Modern Active Directory project, which aims to bring a more modern view
By: Mehdi Dakhama submitted:Mar 24 2023
This document presents the Modern Active Directory project, which aims to bring a more modern view
on your Active Directory, whether to view key indicators or to perform advanced searches in a simple way.
By: Mehdi Dakhama submitted:Mar 24 2023
Monitoring Active Directory with the PowerShell module PSADHealth
(4sysops.com)
The toolkit is a collection of scripts and tools that check the internal pieces of Active Directory
By: Mike Kanakos submitted:Jun 15 2022
The toolkit is a collection of scripts and tools that check the internal pieces of Active Directory
so you don't have to. It is not a replacement for tools already in place such as DCDiag. Instead, this toolkit comprises tools that my co-writers and I have found nowhere else. The goal of this module is to enable you to know when the core pieces of Active Directory aren't working as expected so you can take action.
By: Mike Kanakos submitted:Jun 15 2022
Monitoring Logon Attempts in Active Directory with PowerShell
(sid-500.com)
Domain-Controllers monitor successful logon attempts by default. All events of all login attempts
By: Patrick Gruenauer submitted:Jun 16 2022
Domain-Controllers monitor successful logon attempts by default. All events of all login attempts
are logged in the Event Viewer. In this article I will cover how to monitor all logon events with PowerShell. Let's dive in.
By: Patrick Gruenauer submitted:Jun 16 2022
Monitoring with PowerShell: Monitoring Domain Admins logon
(cyberdrain.com)
So this is one I've been researching for a new tool I'm creating. AzPAM, AzPAM will be a Privledged
By: Kelvin Tegelaar submitted:Jun 16 2022
So this is one I've been researching for a new tool I'm creating. AzPAM, AzPAM will be a Privledged
Access Management tool that will be living in your Azure environment, mostly designed for MSPs. If you want to see how AzPam looks or contribute, check out the Github page about it here. I should be pretty close to releasing an alpha version soon!
By: Kelvin Tegelaar submitted:Jun 16 2022
Monitoring with PowerShell: Monitoring legacy authentication logons
(cyberdrain.com)
So Microsoft has announced a while back that legacy authentication is no longer going to be
By: Kelvin Tegelaar submitted:Jun 16 2022
So Microsoft has announced a while back that legacy authentication is no longer going to be
supported, due to COVID we had some extra time to prepare our clients for this change as its been postponed to July of 2021. We've helped all of our clients move to modern authentication last year but I understood there is still a bit of a struggle for other MSPs to achieve this.
By: Kelvin Tegelaar submitted:Jun 16 2022
Perform Active Directory security assessment using PowerShell
(4sysops.com)
My Active Directory security assessment script pulls important security facts from Active Directory
By: Krishnamoorthi Gopal submitted:Jun 16 2022
My Active Directory security assessment script pulls important security facts from Active Directory
and generates nicely viewable reports in HTML format by highlighting the spots that require attention. The script manipulates user data using facts collected with benchmark values.
By: Krishnamoorthi Gopal submitted:Jun 16 2022
PowerShell 1 liner
(twitter.com)
to run on domain controllers to show AD account lock out events & the device they occurred on
By: Guy Leech submitted:Jun 16 2022
to run on domain controllers to show AD account lock out events & the device they occurred on
By: Guy Leech submitted:Jun 16 2022
PowerShell Community Textbook Update: To be released this weekend!
(reddit.com)
Gday Everyone,
By: u/PowerShellMichael submitted:Sep 23 2022
Gday Everyone,
By: u/PowerShellMichael submitted:Sep 23 2022
PowerShell Module Review: DSACL
(ehmiiz.tech)
The following module review is very important for a Active Directory operations or engineering type
By: Emil Larsson submitted:Mar 10 2023
The following module review is very important for a Active Directory operations or engineering type
person. Most who have tried granting permissions outside of adding users to groups in Active Directory would probably agree that, access delegation can be a daunting task.
By: Emil Larsson submitted:Mar 10 2023
PowerShell Playbook: Automating Active Directory
(pluralsight.com)
If you manage Active Directory, you need to know PowerShell. This course covers everything you need
By: Anthony Howell submitted:Jun 15 2022
If you manage Active Directory, you need to know PowerShell. This course covers everything you need
to get started building your own PowerShell toolkit.
By: Anthony Howell submitted:Jun 15 2022
PowerShell SnippetRace 19-20/2023
(powershell.co.at)
Passwords, AD-Passwords, Password change, Special Characters
By: Roman Stadlmair submitted:Jun 2 2023
Passwords, AD-Passwords, Password change, Special Characters
By: Roman Stadlmair submitted:Jun 2 2023
PowerShell Solution: AGPM unable to take control of a GPO
(blog.ehmiiz.tech)
If you enjoy the principle of least privileges, version control and doing big infrastructural
By: Emil Larsson submitted:Sep 9 2022
If you enjoy the principle of least privileges, version control and doing big infrastructural
changes in a safe manner, Advanced Group Policy Management or AGPM, is an amazing tool.
By: Emil Larsson submitted:Sep 9 2022
PSA: ActiveDirectory module works natively with PowerShell Core (6.2/7.0)
(reddit.com)
I saw that a few people couldn't use PowerShell 7.0 because the ActiveDirectory module isn't
By: u/Emiroda submitted:Jun 15 2022
I saw that a few people couldn't use PowerShell 7.0 because the ActiveDirectory module isn't
supported. You can totally run the ActiveDirectory module, natively, without using the WindowsCompatibility module! This is one of the most under-reported facts of PowerShell 7, even going as far back as 6.1
By: u/Emiroda submitted:Jun 15 2022
PSGPPreferences 0.1
(powershellgallery.com)
A way to manage Group Policy Preferences through PowerShell
By: Kirill Nikolaev submitted:Jun 16 2022
A way to manage Group Policy Preferences through PowerShell
By: Kirill Nikolaev submitted:Jun 16 2022
PSOpenAD
(github.com)
A cross-platform Active Directory management module.
By: Jordan Borean submitted:Jun 16 2022
A cross-platform Active Directory management module.
By: Jordan Borean submitted:Jun 16 2022
PSOpenAD Release v0.5.0
(github.com)
The Open AD module is a cross platform module for managing Active Directory.
By: Jordan Borean submitted:Mar 22 2024
The Open AD module is a cross platform module for managing Active Directory.
By: Jordan Borean submitted:Mar 22 2024
PSSecTools/ADSec: Tools for Active Directory security management
(github.com)
The ADSec powershell module is a toolkit designed to help with several core Active Directory
By: Friedrich Weinmann submitted:Jun 15 2022
The ADSec powershell module is a toolkit designed to help with several core Active Directory
security concerns. Delegation & Revocation of privileges. Configuring monitoring of active directory object changes. Analysis of security relevant AD configuration settings/state.
By: Friedrich Weinmann submitted:Jun 15 2022
PSSystemAdministrator
(github.com)
This module contains functions useful for administrating a Windows Active Directory domain. Many of
By: Ben Peterson submitted:Jun 16 2022
This module contains functions useful for administrating a Windows Active Directory domain. Many of
the functions are designed to work with eachother. Functions that gather information on users or computers can be piped into functions that take an action. For instance, you can pipe a function that returns computers that have not logged onto the network for 30 days into a function that disables computer accounts. In a single line of code, you can disable all the inactive computers in active directory. There are a wide variety of functions that perform other tasks like sending magic packets for wake on lan, measuring directory and sub-directory sizes, gathering large files, and other tasks. Every function is fully documented and works with the Get-Help function.
By: Ben Peterson submitted:Jun 16 2022
Report on Active Directory Container permissions using PowerShell
(powershellisfun.com)
In a previous blog post (Link), I showed a way to create a report on OU (Organizational Unit)
By: Harm Veenstra submitted:Aug 26 2022
In a previous blog post (Link), I showed a way to create a report on OU (Organizational Unit)
permissions. One of the replies I got about that was: How about the Container permissions, those are important too 🙂 And that's correct, they are! In this blog post, I will show you how to create a report on those (Script is based on the OU report)
By: Harm Veenstra submitted:Aug 26 2022
Report on Active Directory OU permissions using PowerShell
(powershellisfun.com)
For one of our customers we are working on restricting permissions of admin accounts by implementing
By: Harm Veenstra submitted:Jul 22 2022
For one of our customers we are working on restricting permissions of admin accounts by implementing
Role Based Access and delegating permissions on Organizational Units (OU's). But one of the first questions was. What are the current permissions and what should we remove and where? In this blogpost I will show you a way to report on the current permissions so that you can remove them where they shouldn't be granted
By: Harm Veenstra submitted:Jul 22 2022
Restore Group Policy with PowerShell
(4sysops.com)
Check out Mike’s scripts he created for a restoring Group Policy from backups. It is a
By: submitted:Jun 15 2022
Check out Mike’s scripts he created for a restoring Group Policy from backups. It is a
companion tool to the Group Policy backup tool he shared earlier this year.
By: submitted:Jun 15 2022
Script to Create an Overview and Full Report of all Group Objects in a Domain
(jhouseconsulting.com)
Another classic from the archives. Jeremy’s awesome script for creating a report on all group
By: submitted:Jun 15 2022
Another classic from the archives. Jeremy’s awesome script for creating a report on all group
objects in AD.
By: submitted:Jun 15 2022
Send email notifications about expiring Active Directory passwords with a PowerShell script
(4sysops.com)
Enforcing a policy for regular password changes is no longer recommended, as it can result in more
By: Wolfgang Sommergut submitted:Aug 23 2024
Enforcing a policy for regular password changes is no longer recommended, as it can result in more
helpdesk requests due to expired passwords, especially for VPN users, and may actually undermine security. However, timely notifications can help mitigate issues when password changes are necessary. Learn how to notify users with Group Policy or a PowerShell script.
By: Wolfgang Sommergut submitted:Aug 23 2024
Strengthening Password Security in Active Directory: A PowerShell-Powered Approach
(evotec.xyz)
PasswordSolution uses the DSInternals PowerShell module to gather Active Directory hashes and then
By: Przemyslaw Klys submitted:Jun 2 2023
PasswordSolution uses the DSInternals PowerShell module to gather Active Directory hashes and then
combines that data into a prettified report. If you have ever used DSInternals, you know that while very powerful, it comes with raw data that is hard to process and requires some skills to get it into a state that can be shown to management or security.
By: Przemyslaw Klys submitted:Jun 2 2023
Testing DFS Replication with PowerShell
(bcthomas.com)
DFS Replication (DFS-R) is a fantastic tool in any sysadmins belt when it comes to creating highly
By: Ben Thomas submitted:Jun 15 2022
DFS Replication (DFS-R) is a fantastic tool in any sysadmins belt when it comes to creating highly
redundant and scalable file shares. And yet anyone who has used it, knows that monitoring it can be difficult at the best of times.
By: Ben Thomas submitted:Jun 15 2022
The only PowerShell Command you will ever need to find out who did what in Active Directory
(reddit.com)
The title pretty much sums it up.
By: MadBoyEvo submitted:Jun 15 2022
The title pretty much sums it up.
By: MadBoyEvo submitted:Jun 15 2022
The only PowerShell Command you will ever need to find out who did what in Active Directory
(evotec.pl)
While the title of this blog may be a bit exaggeration, the command I'm trying to show here does
By: Evotec submitted:May 3 2024
While the title of this blog may be a bit exaggeration, the command I'm trying to show here does
it's best to deliver on the promise. What you're about to witness here is something I've worked on for a while now, and it meets my basic needs. If you don't have SIEM product or products that monitor who does what in Active Directory this command makes it very easy, even for people who don't have much experience in reading Event Logs. If you'd like to learn about working with Windows Event Logs here's a great article I wrote recently - PowerShell - Everything you wanted to know about Event Logs and then some.
By: Evotec submitted:May 3 2024
Tracking down bad password attempts with PowerShell
(theposhwolf.com)
Want to know where bad password attempts are coming from before they lock out an account in Active
By: submitted:Jun 15 2022
Want to know where bad password attempts are coming from before they lock out an account in Active
Directory? Check out Anthony Howell’s walkthrough of a PowerShell function to easily do just that.
By: submitted:Jun 15 2022
Tracking Down User Logons with PowerShell and XPath
(adamtheautomator.com)
When working with Windows event logs, especially the Security log, there might be instances where
By: Adam Bertram submitted:Jun 14 2024
When working with Windows event logs, especially the Security log, there might be instances where
you need to extract specific information from events.
By: Adam Bertram submitted:Jun 14 2024
Troubleshooting Active Directory Replication Using PowerShell
(woshub.com)
Most AD administrators use the repadmin (appeared in Windows Server 2003) and replmon (must be
By: Windows OS Hub submitted:Jun 16 2022
Most AD administrators use the repadmin (appeared in Windows Server 2003) and replmon (must be
copied from Support Tool for WS2003) console tools to monitor and control Active Directory replication. In Windows Server 2012, Microsoft added a number of PowerShell cmdlets to manage and check replication status in the Active Directory forest. In this article we'll look at the main useful PoSh cmdlets that an AD administrator can use to control replication between domain controllers.
By: Windows OS Hub submitted:Jun 16 2022
Understanding PasswordLastSet and PwdLastSet Using PowerShell
(powershellcenter.com)
In Active Directory (AD), the PasswordLastSet and pwdLastSet attributes refer to the same property
By: Faris Malaeb submitted:Feb 3 2023
In Active Directory (AD), the PasswordLastSet and pwdLastSet attributes refer to the same property
of an AD object - the time and date when the password for that object was last changed. This attribute is used to enforce password policies and track when a password was last changed. This quick post helps you understand these...
By: Faris Malaeb submitted:Feb 3 2023
Update-ADPassword.ps1
(gist.github.com)
Want to change your Active Directory account password without switching to the lock screen?
By: Mathias Jessen submitted:Jun 15 2022
Want to change your Active Directory account password without switching to the lock screen?
By: Mathias Jessen submitted:Jun 15 2022
UserAccountControl attribute: Checking and configuring security settings for Active Directory accounts
(4sysops.com)
The UserAccountControl attribute can be used to configure several account settings in Active
By: Wolfgang Sommergut submitted:Oct 21 2022
The UserAccountControl attribute can be used to configure several account settings in Active
Directory. This applies, for example, to the expiration date of passwords or to Kerberos delegation. An AD audit should check this attribute regularly. This can be done using PowerShell, and there is a cmdlet for changing flags.
By: Wolfgang Sommergut submitted:Oct 21 2022
Using PowerShell to generate and deploy Group Policies for non-domain environments
(cyberdrain.com)
By: Kelvin Tegelaar submitted:Jun 15 2022
By: Kelvin Tegelaar submitted:Jun 15 2022
Using Win32_UserAccount WMI filter in PowerShell/Group Policies and what to avoid
(evotec.xyz)
Some months ago, I created PowerShell Script to create local administrative users on workstations -
By: Przemyslaw Klys submitted:Jun 16 2022
Some months ago, I created PowerShell Script to create local administrative users on workstations -
Create a local user or administrator account in Windows using PowerShell. It's a bit overcomplicated, but the goal was it should work for Windows 7 and up, and that means supporting PowerShell 2.0. As part of that exercise, I've been using Win32_UserAccount WMI based query to find local users and manage them to an extent. While Get-LocalUser exists, it's not suitable for the PowerShell 2.0 scenario. I also use the same query in GPO for WMI filtering. You can say it's been a good friend of mine - until today! Let's take a look at this basic WMI query:
By: Przemyslaw Klys submitted:Jun 16 2022
Visually display Active Directory Nested Group Membership using PowerShell
(evotec.xyz)
In the Active Directory PowerShell module, you have two commands to your disposal that help display
By: Przemyslaw Klys submitted:Jun 16 2022
In the Active Directory PowerShell module, you have two commands to your disposal that help display
group membership. Those are Get-ADGroup and Get-ADGroupMember. The first command contains property Members, which gives you DistinguishedName of all members, and Get-ADGroupMember can provide you either direct members or with Recursive switch all members recursively (skipping groups). Till a few weeks ago, I was a happy user of those commands until I noticed two things. Member property for Get-ADGroup sometimes misses elements for whatever reason.
By: Przemyslaw Klys submitted:Jun 16 2022
What GPO changed in the last few days?
(twitter.com)
If you want to see if any GPOs have changed in the last few days (e.g. diagnosing new logon issues)
By: submitted:Jun 15 2022
If you want to see if any GPOs have changed in the last few days (e.g. diagnosing new logon issues)
check out the following command.
By: submitted:Jun 15 2022
Windows Local Administrator Password Solution (LAPS) Password Retrieval – PowerShell and REST API
(youtube.com)
Retrieving current and historical LAPS passwords stored in Azure AD using PowerShell and REST API.
By: John Savill submitted:May 12 2023
Retrieving current and historical LAPS passwords stored in Azure AD using PowerShell and REST API.
By: John Savill submitted:May 12 2023
Windows Server DomainController find LDAP binds
(blog.it-koehler.com)
Some time ago Microsoft announced the changing of default domain controller behavior for ldap and
By: Alexander Koehler submitted:Jun 15 2022
Some time ago Microsoft announced the changing of default domain controller behavior for ldap and
ldap signing. See LINK. This affects every supported version of Windows Server (from 2008R2 till 2019). There is another LINK ADV190023 with detailed explanation.
By: Alexander Koehler submitted:Jun 15 2022
Windows Version Report from Active Directory
(itlumberjack.com)
Brad created this awesome script that will search your AD and give you a break down of every version
By: submitted:Jun 15 2022
Brad created this awesome script that will search your AD and give you a break down of every version
of Windows in your domain. It will also break down the versions of Windows 10.
By: submitted:Jun 15 2022
WPF – Create AD/Azure User
(reddit.com)
Last week I created a minimalistic Create AD / Azure user script. Since then I have been asked to
By: Alan Newingham submitted:Jun 16 2022
Last week I created a minimalistic Create AD / Azure user script. Since then I have been asked to
make it easier to modify (Or more succinctly a Settings Page). This was a bit of work to think through. I am hoping someone might know of a more robust way to do what I am doing. This way I felt I could do with a bit of work. So I came up with two ways of implementing the same settings script.
By: Alan Newingham submitted:Jun 16 2022