Anlage des Repos
This commit is contained in:
1324
archive/New-ADUser-from-File/New-ADUser-from-File.ps1
Normal file
1324
archive/New-ADUser-from-File/New-ADUser-from-File.ps1
Normal file
File diff suppressed because it is too large
Load Diff
45
archive/New-ADUser-from-File/New-ADUser-from-File_Caller.cmd
Normal file
45
archive/New-ADUser-from-File/New-ADUser-from-File_Caller.cmd
Normal file
@@ -0,0 +1,45 @@
|
||||
@ECHO OFF
|
||||
TITLE DIGITAL DATA - Run all files in directory with current permissions
|
||||
ECHO -
|
||||
ECHO Batch Script
|
||||
ECHO Run all files in directory with current permissions
|
||||
ECHO -
|
||||
ECHO Digital Data
|
||||
ECHO Ludwig-Rinn-Strasse 16
|
||||
ECHO 35452 Heuchelheim
|
||||
ECHO Tel.: 0641 / 202360
|
||||
ECHO E-Mail: info@didalog.de
|
||||
ECHO -
|
||||
ECHO Version 1.0.0.0
|
||||
ECHO Date: 13.08.2015
|
||||
ECHO -
|
||||
ECHO Program Startup %date% at %time:~0,8% oclock, on %computername%.
|
||||
|
||||
REM --------------------------------------------------------------
|
||||
REM ------------------------set variables-------------------------
|
||||
REM --------------------------------------------------------------
|
||||
|
||||
setlocal enableextensions
|
||||
|
||||
SET DIRECTORY="%cd%"
|
||||
SET FILEEXTENSION=*.ps1
|
||||
SET COUNT=0
|
||||
|
||||
REM --------------------------------------------------------------
|
||||
REM ---------------------Program 1 / Script 1---------------------
|
||||
REM --------------------------------------------------------------
|
||||
|
||||
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (ECHO %%f && set /a count+=1)
|
||||
ECHO -
|
||||
ECHO Found %count% File(s) with File Extension %FILEEXTENSION% in Directory:
|
||||
ECHO %DIRECTORY%.
|
||||
|
||||
ECHO -
|
||||
ECHO Running this/them now, with your permissions!
|
||||
FOR /F "tokens=*" %%f in ('dir /S /b %FILEEXTENSION%') do (PowerShell.exe -Command "& {Start-Process PowerShell.exe -WindowStyle hidden '-ExecutionPolicy Bypass -File "%%f"'}")
|
||||
|
||||
ECHO -
|
||||
ECHO This Window will close in:
|
||||
#timeout /T 10
|
||||
endlocal
|
||||
exit
|
||||
@@ -0,0 +1,22 @@
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 1.0.1.0 - 14.06.2018
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: - More elegant behavior if there is no Profile defined.
|
||||
REM: -
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Version 1.0.0.0 - 04.06.2018
|
||||
NEW: -
|
||||
FIX: -
|
||||
CHG: -
|
||||
REM: -
|
||||
|
||||
-------------------------------------legend------------------------------------
|
||||
NEW: = Added a new functionality
|
||||
FIX: = Fixed a Issue with existing functionality
|
||||
CHG: = Changed a existing functionality
|
||||
REM: = Removed a functionality
|
||||
-------------------------------------------------------------------------------
|
||||
118
archive/New-ADUser-from-File/New-ADUser-from-File_Settings.ini
Normal file
118
archive/New-ADUser-from-File/New-ADUser-from-File_Settings.ini
Normal file
@@ -0,0 +1,118 @@
|
||||
####################################################################################################
|
||||
# Digital Data Configuration File (Template Date: 30.07.2016) #
|
||||
# UTF-8 Coding required! #
|
||||
# incl. FailSafe functions that are active when information is missing. #
|
||||
####################################################################################################
|
||||
|
||||
#==================================================================================================#
|
||||
########################################## General Setup ###########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Path in which the log files will be stored. #
|
||||
# Example: E:\LogFiles\<ScriptName> #
|
||||
# FailSafe Setting is: <ScriptPath>\Logs #
|
||||
####################################################################################################
|
||||
LogPath =
|
||||
|
||||
####################################################################################################
|
||||
# Numerical value how long (in days) log files will be kept. ValidateRange is 0 - 1000 #
|
||||
# Setting the Value to 0 disables this Function. #
|
||||
# FailSafe Setting is: 60 #
|
||||
####################################################################################################
|
||||
LogFileKeepTime = 30
|
||||
|
||||
#==================================================================================================#
|
||||
##################################### User specified setting #######################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Switch setting: Should a new created User be enabled, or not? #
|
||||
# Example: True #
|
||||
# FailSafe Setting is: False #
|
||||
####################################################################################################
|
||||
Enabled = True
|
||||
|
||||
####################################################################################################
|
||||
# Switch setting: Can a new created User change his Password? #
|
||||
# Example: True #
|
||||
# FailSafe Setting is: False #
|
||||
####################################################################################################
|
||||
PasswordCannotChanged = False
|
||||
|
||||
####################################################################################################
|
||||
# Switch setting: A new created User must change his Password, after first logon? #
|
||||
# Example: True #
|
||||
# FailSafe Setting is: False #
|
||||
####################################################################################################
|
||||
PasswordChangeAtLogon = False
|
||||
|
||||
####################################################################################################
|
||||
# Switch setting: Can the Password of the new created User, expire? #
|
||||
# Example: True #
|
||||
# FailSafe Setting is: False #
|
||||
####################################################################################################
|
||||
PasswordNeverExpires = True
|
||||
|
||||
####################################################################################################
|
||||
# Switch setting: If the SourceFile includes no Password for the User, should Script generate one? #
|
||||
# Example: True #
|
||||
# FailSafe Setting is: True #
|
||||
####################################################################################################
|
||||
PasswordCreation = True
|
||||
|
||||
####################################################################################################
|
||||
# If PasswordCreation is set True, define the length of the new Password(s). #
|
||||
# Setting the Value to 0 disables this Function. #
|
||||
# Example: 8 #
|
||||
####################################################################################################
|
||||
PasswordCreationLenght = 8
|
||||
|
||||
#==================================================================================================#
|
||||
########################################## Profile Setup ###########################################
|
||||
#==================================================================================================#
|
||||
|
||||
####################################################################################################
|
||||
# Define Profiles in this config file for the executing Script. #
|
||||
# Syntax: #
|
||||
# Profile = <ImportMethode> ; <SourceFile> #
|
||||
# Example: #
|
||||
# Profile = BulkImport ; SourceFile.csv #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# First Parameter: <ImportMethode> #
|
||||
# Set the way, Script is reading the SourceFile. #
|
||||
# Currently only the BulkImport is available. #
|
||||
# Example: BulkImport #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Second Parameter: <SourceFile> #
|
||||
# Set the full path and name to the file which includes the list of users. #
|
||||
# Make sure, file is .csv and value separation is done by ";". #
|
||||
# The internal column allocation is: #
|
||||
# Column1 = UserName ; Column2 = PreName ; Column3 = SurName ; Column4 = UserPassword ; #
|
||||
# Column5 = E-Mail Adress ; Column6 = Description #
|
||||
# Only Column1 is mandatory, the other Columns are optional. #
|
||||
# Example: E:\UserList.csv #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Optional Parameter: %ImportPathAD=<OU=OUName>,<DC=DomainName>,<DC=DomainSuffix> #
|
||||
# Determ the TargetPath in your Active Directory (part of the distinguishedName). #
|
||||
# If you dont use this Parameter, TargetPath will be the "Users" Folder by default. #
|
||||
# Example: OU=Testuser,DC=domainname,DC=local #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Optional Parameter: %ReportFile=<Path>\<FileName>.csv #
|
||||
# By setting this Parameter, you get a overview file, which includes every created User, #
|
||||
# with all available data (UserName, PreName, Surname, Password ...) #
|
||||
# Example: %ReportFile=E:\ReportFile.csv #
|
||||
#--------------------------------------------------------------------------------------------------#
|
||||
# Argument call: #
|
||||
# If you need to run the Script with dynamic Values, you can do so, by calling it with arguments. #
|
||||
# Even the Special and Optional Parameters are available in this case. #
|
||||
# Example: #
|
||||
# This Function is currently not implement! #
|
||||
####################################################################################################
|
||||
|
||||
#Profile = BulkImport ; SourceFile.csv ; %ImportPathAD=OU=Testuser,DC=dd_vmx09_vm01,DC=local ; %ReportFile=ReportFile.csv
|
||||
#Profile = BulkImport ; C:\Users\Administrator\Desktop\New-ADUser-from-File\SourceFile.csv ; %ImportPathAD=OU=Testuser,DC=dd_vmx09_vm01,DC=local ; %ReportFile=e:\ReportFile.csv
|
||||
|
||||
|
||||
|
||||
|
||||
4
archive/New-ADUser-from-File/SourceFile-Example.csv
Normal file
4
archive/New-ADUser-from-File/SourceFile-Example.csv
Normal file
@@ -0,0 +1,4 @@
|
||||
Username;Prename;SurName;1.SecurePassw0rd!;E-Mail@Adress.com;Description
|
||||
Markus.Mustermann;Markus;Mustermann;#PasswOrd0815!;markus@Mustermann.de;This is a complete Example line
|
||||
Max.Mustermann;;Mustermann;;;This is a incomplete Example line, import will work anyway!
|
||||
Maria.Mustermann;;;;;This is a incomplete Example line, import will work anyway!
|
||||
|
Reference in New Issue
Block a user