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.
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.
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.)
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:
$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?