How can I create and later update AD users in Active Directory from a CSV file when they have the same name?
I want to import many users from a CSV into my Active Directory. Each user in the CSV has a first name, last name, username (e.g. silas.küng) primary class, and secondary class.
Requesting Assistance with a PowerShell Script to read an attribute
I have a PowerShell Script that reads our Active Directory and writes the “extensionAttribute2, EmailAddress, sAMAccountName, UserPrincipalName and proxyaddresses” attributes to a CSV file. Here is the primary portion of the code:
Get-ADGroup member count domain issue
I’m rather new to Powershell. I need to gather a list of certain Groups and the member count of these and the nested groups. I first used Get-ADGroupMember
.
Create a Group Policy Object with Startup Script through Command LIne in Active Directory
I need to create a GPO with a startup script to install an MSI.
Which DC do the PowerShell ActiveDirectory cmdlets use if none is specified?
I have a PowerShell script which runs under a scheduled task. It runs various cmdlets from the ActiveDirectory module under PowerShell 5.1 on a Server 2016 box. It has run okay for months. This morning, it failed with:
Which DC do the PowerShell ActiveDirectory cmdlets use if none is specified?
I have a PowerShell script which runs under a scheduled task. It runs various cmdlets from the ActiveDirectory module under PowerShell 5.1 on a Server 2016 box. It has run okay for months. This morning, it failed with:
Trying to retrieve data from AD using power shell
Trying to get the following data and the error I’m getting below is referring to the manager column.
On-premise Active Directory security tab – how to get Inherited from column using PowerShell?
I’m trying to create Active Directory permission report and wanted to get the information available in the ‘dsa.msc’ gui snap-in using PowerShell.
Onprem Active directory security tab – how to get Inherited from column using Poweshell
Trying to create active directory permission report and wanted to get the information available in ‘dsa.msc’ gui snap-in using power-shell.
extract specific string from the field returned
Class CustomAdInfo { $UserName $Group $Email $Manager } [char] ‘y’..[char] ‘z’ | ForEach-Object { $getADUserSplat = @{ Filter = “Name -like ‘$_*'” Properties = ‘SamAccountName’, ‘memberOf’, ‘EmailAddress’, ‘Manager’ ResultPageSize = 256 SearchBase = ‘CN=Users,DC=ab,DC=cd’ } foreach ($user in Get-ADUser @getADUserSplat) { foreach ($group in $user.MemberOf | Get-ADGroup) { [CustomAdInfo]@{ UserName = $user.SamAccountName Group = $group.Name […]