python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How do I run commands in a Powershell script?
I am very new to Powershell, Started today actually, and I need some help with getting a command to display output. The command works when run from powershell but when I try to run from my script I pa...
Ian Oberdorf
Votes: 0
Answers: 2
Replace AD attribute value with csv file header values
I want to replace AD attribute "userPrincipalName" value according to CSV file header value
here is what csv file(group.csv) contains
sAMAccountName
--------------
test.user1
test.user2 ...
khamro
Votes: 0
Answers: 1
Script to get AD logon name from a list of DisplayName
I'm trying to get a list of AD user's logon names from a list of display names using this script.
Import-Csv 'C:\temp\displaynames.csv'
ForEach-Object {
$name = $_.displayname
Get-...
Matt
Votes: 0
Answers: 3
Get AD user properties from Active Directory
I am trying to filter the values of a property in Active Directory.
I tried:
Get-ADUser -filter * -Properties physicalDeliveryOfficeName | Where-Object (($_.physicalDeliveryOfficeName -like "NIC...
Steph_69
Votes: 0
Answers: 2