To create a list of all subnets belonging to an AD site requires a lot of manual work, especially as the environment gets larger. However, there is of course another way to retrieve Active Directory subnets with PowerShell.
Find out how to create clearly laid out CSV files with the help of PowerShell scripts: use PowerShell Custom Objects combined with Export-csv commandlet.
A customer approached us and asked for a “Logon script” based on PowerShell. Unfortunately the script was not executed during login. The reason for this error was a new Group Policy.
The PowerShell function “IsMember” checks if the user who runs the PowerShell script is a member of a certain group. This has advantages compared to using Active Directory Service Interfaces (ADSI).
When talking about including Windows Server 2012, the following question occurred more often recently: Is my Active Directory Domain ready to add a W2012R2 domain controller? This article will help you with that.
If you want to change Linux attributes gidNumber, uid and uidnumber via PowerShell you will recognize that it is not possible by adding a parameter. At least it is not possible with the cmdlet New-ADUser or Set-ADUser. But you can workaround this problem with the parameters -add, -replace, -clear and -remove that enables to set these attributes.
Group Management in Active Directory can be eased by using PowerShell. This time I want to explain the basic ADGroup cmdlets. ADGroup Cmdlets are used for: – creating new groups – showing groups and their attributes – changing groups’ attributes
Use the PowerShell Cmdlet Set-ADUser to change user attributes in Active Directory. With Set-ADUser you can: – Change attributes of a single user – Change attributes of several prefiltered users – Bulk Change attributes with a CSV file
Use the PowerShell Cmdlet Get-ADUser to display user accounts in Active Directory. With Get-ADUser you can: – Set filters – Show specific attributes – Export results in a CSV-file
In this small series, I want to introduce the most common Active Directory PowerShell cmdlets to you like New-ADUser. With the cmdlet New-ADUser you can: – Create new users, – Add passwords or – Bulk create users with a csv-file
- Retrieve Active Directory subnets with PowerShell
- Editing users of other domains – with PowerShell
- Azure Basics: Connecting with Azure (PowerShell)
- PowerShell Custom Objects
- Logon Script does not start on Windows Server 2012 R2 domain
- IsMember – Check group membership in Active Directory
- Dynamic OU Groups – Assign Permissions to OUs
- Mobile Video Streaming Server with Windows 10
- AD Administration in the new Azure Portal
- Novell Migration: Migrate Critical Legacy Applications with OpenLDAP Proxy