Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


List the Manager of Users in AD - Using list- Get-ADuser


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
List the Manager of Users in AD - Using list- Get-ADuser

Is there any command that can used in Linux that export usernames and their manager's name from AD using bash shell script?

I know this can be done using powershell but I need to use Linux for this procedure.
# 2  
What code would you use if you were using powershell?

And, what operating system would you be using instead of Linux if you were using powershell? (I can make an educated guess here, but I'd rather know for sure than make wild guesses.)
# 3  
Can a powershell program be converted to shell script code in unix?

Here's the powershell code . It extracts users' manager names from the Active directory and then exports the data to a csv file.
Code:
Code:
$Users = Import-csv C:\Users.csv 
 ($user in $Users) 
{
    Set-ADUser $user.username -Manager $user.manager
}

Can the below powershell code be converted to shell script program in unix and get the same results?
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Get List of users+IPs
entropy1980
Hello! We have an AIX box (6.3), we are looking for a way to get list of logged in users and their IP. The issue we have is running who -ub shows hostname and we are wanting to get the ip. Any suggestions of ideas? Thanks in advance for any help!... AIX
4
AIX
Users list
iliya24
Hi i would like to know were the folder that contain file with list of all users ? And were i can learn about what kind of folder i have and wheat they have inside? question 2. when i write ls -a i see all directories and then i choose for example Documents and inside Documents i typed again...... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers
list of users
theodoraa
Hello!Does anybody know how to solve this script: ,,write a shell script which displays a list of names of users who have created files "*. c" in the last day."?... UNIX for Advanced & Expert Users
1
UNIX for Advanced & Expert Users
List users and groups
m3y
Hi I am new to unix so hopefully someone can help. I need to list all the users I have in my unix enviroment (AIX) and the groups (primary and secondary) they belong to. Can anyone help? Many thanks in advance... UNIX for Dummies Questions & Answers
2
UNIX for Dummies Questions & Answers
how to list locked users in hp-ux?
robbiezr
Actually.I have 2 questions to ask. 1. how to list locked account in hp-ux? 2.how to list locked account in linux(redhat)? I can use the command "passwd -S -username" to list a account who were locked . who knows how to list all locked accounts with one command. Thanks!!... HP-UX
5
HP-UX

Featured Tech Videos