< Back

add-ADUsers

Fri Jan 10, 2020 7:21 pm

NAME add-ADUsers



SYNOPSIS

Anlegen von AD Benutzern





SYNTAX

add-ADUsers [-csv] <Object> [-computer <Object>] [<CommonParameters>]





DESCRIPTION

Dieses Script legt Benutzer in einer AD an, als Datenquelle dient eine CSV Datei mit folgenden Eintraegen



Homedrive,Homedirectory,Path,Firstname,Lastname,Password

"F:","\\\\MMBBS-DATA1\\Home\\IT-15","OU=FISI15Z,OU=IT-15,OU=IT,OU=Sch????ler,DC=mmbbs,DC=local","J????rg","Tuttas4","Tuttas1!

!!"





PARAMETERS

-csv <Object>

Name (Pfad) der CSV-Datei



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-computer <Object>

Name oder IP des AD Computers, um via Remote Powershell die Benutzer anzulegen



Required? false

Position? named

Default value 127.0.0.1

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-ADUsers -tablename users.csv













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Add-ADUsers -tablename users.csv -computername 192.168.12.132















RELATED LINKS