From dee1fc6e1a73c65529b482758c45091130da8c9f Mon Sep 17 00:00:00 2001 From: AchimASR Date: Tue, 3 Jul 2018 08:25:59 +0200 Subject: [PATCH 01/39] Add script New-ADUser.ps1 #1 @frankkresse --- ActiveDirectory/User/New-ADUser.ps1 | 238 ++++++++++++++++++++++++++++ 1 file changed, 238 insertions(+) create mode 100644 ActiveDirectory/User/New-ADUser.ps1 diff --git a/ActiveDirectory/User/New-ADUser.ps1 b/ActiveDirectory/User/New-ADUser.ps1 new file mode 100644 index 0000000..f364d45 --- /dev/null +++ b/ActiveDirectory/User/New-ADUser.ps1 @@ -0,0 +1,238 @@ +#Requires -Version 4.0 +#Requires -Modules ActiveDirectory + +<# + .SYNOPSIS + Creates a user in the OU path + + .DESCRIPTION + + .NOTES + This PowerShell script was developed and optimized for ScriptRunner. The use of the scripts requires ScriptRunner. + The customer or user is authorized to copy the script from the repository and use them in ScriptRunner. + The terms of use for ScriptRunner do not apply to this script. In particular, AppSphere AG assumes no liability for the function, + the use and the consequences of the use of this freely available script. + PowerShell is a product of Microsoft Corporation. ScriptRunner is a product of AppSphere AG. + © AppSphere AG + + .COMPONENT + Requires Module ActiveDirectory + + .LINK + https://github.com/scriptrunner/ActionPacks/tree/master/ActiveDirectory/Users + + .Parameter OUPath + Specifies the AD path + + .Parameter GivenName + Specifies the user's given name + + .Parameter Surname + Specifies the user's last name or surname + + .Parameter Password + Specifies a new password value for an account + + .Parameter DomainAccount + Active Directory Credential for remote execution without CredSSP + + .Parameter SAMAccountName + Specifies the Security Account Manager (SAM) account name of the user + + .Parameter UserPrincipalname + Specifies the user principal name (UPN) in the format @ + + .Parameter UserName + Specifies the name of the new user + + .Parameter DisplayName + Specifies the display name of the user + + .Parameter Description + Specifies a description of the user + + .Parameter EmailAddress + Specifies the user's e-mail address + + .Parameter ChangePasswordAtLogon + Specifies whether a password must be changed during the next logon attempt + + .Parameter CannotChangePassword + Specifies whether the account password can be changed + + .Parameter PasswordNeverExpires + Specifies whether the password of an account can expire + + .Parameter Department + Specifies the user's department + + .Parameter Company + Specifies the user's company + + .Parameter PostalCode + Specifies the user's postal code or zip code + + .Parameter City + Specifies the user's town or city + + .Parameter Street + Specifies the user's street address + + .Parameter DomainName + Name of Active Directory Domain + + .Parameter AuthType + Specifies the authentication method to use +#> + +param( + [Parameter(Mandatory = $true,ParameterSetName = "Local or Remote DC")] + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [string]$OUPath, + [Parameter(Mandatory = $true,ParameterSetName = "Local or Remote DC")] + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [string]$GivenName, + [Parameter(Mandatory = $true,ParameterSetName = "Local or Remote DC")] + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [string]$Surname, + [Parameter(Mandatory = $true,ParameterSetName = "Local or Remote DC")] + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [string]$Password, + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [PSCredential]$DomainAccount, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$SAMAccountName, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$UserPrincipalname, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$Username, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$DisplayName, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$Description, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$EmailAddress, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [switch]$ChangePasswordAtLogon, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [switch]$CannotChangePassword, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [switch]$PasswordNeverExpires, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$Department, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$Company, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$PostalCode, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$City, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$Street, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$DomainName, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [ValidateSet('Basic', 'Negotiate')] + [string]$AuthType="Negotiate" +) + +Import-Module ActiveDirectory + +try{ + $Script:Pwd = ConvertTo-SecureString $Password -AsPlainText -Force + $Script:User + $Script:Domain + $Script:Properties =@('GivenName','Surname','SAMAccountName','UserPrincipalname','Name','DisplayName','Description','EmailAddress', 'CannotChangePassword','PasswordNeverExpires' ` + ,'Department','Company','PostalCode','City','StreetAddress','DistinguishedName') + + if([System.String]::IsNullOrWhiteSpace($SAMAccountName)){ + $SAMAccountName= $GivenName + '.' + $Surname + } + if([System.String]::IsNullOrWhiteSpace($Username)){ + $Username= $GivenName + '_' + $Surname + } + if([System.String]::IsNullOrWhiteSpace($DisplayName)){ + $DisplayName= $GivenName + ', ' + $Surname + } + if($UserPrincipalname.StartsWith('@')){ + $UserPrincipalname = $GivenName + '.' + $Surname + $UserPrincipalname + } + if($EmailAddress.StartsWith('@')){ + $EmailAddress = $GivenName + '.' + $Surname + $EmailAddress + } + if($PSCmdlet.ParameterSetName -eq "Remote Jumphost"){ + if([System.String]::IsNullOrWhiteSpace($DomainName)){ + $Script:Domain = Get-ADDomain -Current LocalComputer -AuthType $AuthType -Credential $DomainAccount -ErrorAction Stop + } + else{ + $Script:Domain = Get-ADDomain -Identity $DomainName -AuthType $AuthType -Credential $DomainAccount -ErrorAction Stop + } + } + else{ + if([System.String]::IsNullOrWhiteSpace($DomainName)){ + $Script:Domain = Get-ADDomain -Current LocalComputer -AuthType $AuthType -ErrorAction Stop + } + else{ + $Script:Domain = Get-ADDomain -Identity $DomainName -AuthType $AuthType -ErrorAction Stop + } + } + if($PSCmdlet.ParameterSetName -eq "Remote Jumphost"){ + $Script:User = New-ADUser -Credential $DomainAccount -Server $Script:Domain.PDCEmulator -Name $UserName -Path $OUPath -Confirm:$false -AuthType $AuthType ` + -Description $Description -DisplayName $DisplayName -SamAccountName $SAMAccountName -GivenName $GivenName -Surname $Surname ` + -AccountPassword $Pwd -EmailAddress $EmailAddress -Department $Department -Company $Company -City $City -PostalCode $PostalCode ` + -ChangePasswordAtLogon $ChangePasswordAtLogon.ToBool() -PasswordNeverExpires $PasswordNeverExpires.ToBool() -CannotChangePassword $CannotChangePassword.ToBool() ` + -UserPrincipalName $UserPrincipalname -StreetAddress $Street -Enable $true -PassThru -ErrorAction Stop + } + else { + $Script:User = New-ADUser -Server $Script:Domain.PDCEmulator -Name $UserName -Path $OUPath -Confirm:$false -AuthType $AuthType ` + -Description $Description -DisplayName $DisplayName -SamAccountName $SAMAccountName -GivenName $GivenName -Surname $Surname ` + -AccountPassword $Pwd -EmailAddress $EmailAddress -Department $Department -Company $Company -City $City -PostalCode $PostalCode ` + -ChangePasswordAtLogon $ChangePasswordAtLogon.ToBool() -PasswordNeverExpires $PasswordNeverExpires.ToBool() -CannotChangePassword $CannotChangePassword.ToBool() ` + -UserPrincipalName $UserPrincipalname -StreetAddress $Street -Enable $true -PassThru -ErrorAction Stop + } + if($Script:User){ + Start-Sleep -Seconds 5 # wait + if($PSCmdlet.ParameterSetName -eq "Remote Jumphost"){ + $Script:User = Get-ADUser -Identity $SAMAccountName -Properties $Script:Properties -Credential $DomainAccount -AuthType $AuthType -Server $Script:Domain.PDCEmulator + } + else{ + $Script:User = Get-ADUser -Identity $SAMAccountName -Properties $Script:Properties -AuthType $AuthType -Server $Script:Domain.PDCEmulator + } $res=New-Object 'System.Collections.Generic.Dictionary[string,string]' + $tmp=($Script:User.DistinguishedName -split ",",2)[1] + $res.Add('Path:', $tmp) + foreach($item in $Script:Properties){ + if(-not [System.String]::IsNullOrWhiteSpace($Script:User[$item])){ + $res.Add($item + ':', $Script:User[$item]) + } + } + $Out =@() + $Out +="User $($GivenName) $($Surname) with follow properties created:" + $Out +=$res | Format-Table -HideTableHeaders + if($SRXEnv) { + $SRXEnv.ResultMessage = $Out + } + else { + Write-Output $Out + } + } +} +catch{ + throw +} +finally{ +} \ No newline at end of file From 2aab5e9729bb0d3d0544e524b190bf64ab476c43 Mon Sep 17 00:00:00 2001 From: AchimASR Date: Tue, 3 Jul 2018 09:02:02 +0200 Subject: [PATCH 02/39] Add script computer with status. #4 @frankkresse --- .../Get-ADComputersWithDefinedStatus.ps1 | 148 ++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 diff --git a/ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 b/ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 new file mode 100644 index 0000000..fa95d72 --- /dev/null +++ b/ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 @@ -0,0 +1,148 @@ +#Requires -Version 4.0 +#Requires -Modules ActiveDirectory + +<# + .SYNOPSIS + Lists computers where disabled or inactive + + .DESCRIPTION + + .NOTES + This PowerShell script was developed and optimized for ScriptRunner. The use of the scripts requires ScriptRunner. + The customer or user is authorized to copy the script from the repository and use them in ScriptRunner. + The terms of use for ScriptRunner do not apply to this script. In particular, AppSphere AG assumes no liability for the function, + the use and the consequences of the use of this freely available script. + PowerShell is a product of Microsoft Corporation. ScriptRunner is a product of AppSphere AG. + © AppSphere AG + + .COMPONENT + Requires Module ActiveDirectory + + .LINK + https://github.com/scriptrunner/ActionPacks/tree/master/ActiveDirectory/Computers + + .Parameter OUPath + Specifies the AD path + + .Parameter DomainAccount + Active Directory Credential for remote execution on jumphost without CredSSP + + .Parameter Disabled + Shows the disabled computers + + .Parameter InActive + Shows the inactive computers + + .Parameter DomainName + Name of Active Directory Domain + + .Parameter SearchScope + Specifies the scope of an Active Directory search + + .Parameter AuthType + Specifies the authentication method to use +#> + +param( + [Parameter(Mandatory = $true,ParameterSetName = "Local or Remote DC")] + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [string]$OUPath, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [switch]$Disabled, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [switch]$InActive, + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [PSCredential]$DomainAccount, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$DomainName, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [ValidateSet('Base','OneLevel','SubTree')] + [string]$SearchScope='SubTree', + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [ValidateSet('Basic', 'Negotiate')] + [string]$AuthType="Negotiate" +) + +Import-Module ActiveDirectory + +#Clear +#$ErrorActionPreference='Stop' +try{ + $resultMessage = @() + if($PSCmdlet.ParameterSetName -eq "Remote Jumphost"){ + if([System.String]::IsNullOrWhiteSpace($DomainName)){ + $Domain = Get-ADDomain -Current LocalComputer -AuthType $AuthType -Credential $DomainAccount -ErrorAction Stop + } + else{ + $Domain = Get-ADDomain -Identity $DomainName -AuthType $AuthType -Credential $DomainAccount -ErrorAction Stop + } + if([System.String]::IsNullOrWhiteSpace($OUPath)){ + $OUPath = $Domain.DistinguishedName + } + if($Disabled -eq $true){ + $computers = Search-ADAccount -Credential $DomainAccount -Server $Domain.PDCEmulator -AuthType $AuthType -AccountDisabled -ComputersOnly ` + -SearchBase $OUPath -SearchScope $SearchScope | Select-Object DistinguishedName, SAMAccountName | Sort-Object -Property SAMAccountName + if($computers){ + foreach($itm in $computers){ + $resultMessage = $resultMessage + ("Disabled: " + $itm.DistinguishedName + ';' +$itm.SamAccountName) + } + $resultMessage = $resultMessage + '' + } + } + if($InActive -eq $true){ + $computers = Search-ADAccount -Credential $DomainAccount -Server $Domain.PDCEmulator -AuthType $AuthType -AccountInactive -ComputersOnly ` + -SearchBase $OUPath -SearchScope $SearchScope | Select-Object DistinguishedName, SAMAccountName | Sort-Object -Property SAMAccountName + if($computers){ + foreach($itm in $computers){ + $resultMessage = $resultMessage + ("Inactive: " + $itm.DistinguishedName + ';' +$itm.SamAccountName) + } + } + } + } + else{ + if([System.String]::IsNullOrWhiteSpace($DomainName)){ + $Domain = Get-ADDomain -Current LocalComputer -AuthType $AuthType -ErrorAction Stop + } + else{ + $Domain = Get-ADDomain -Identity $DomainName -AuthType $AuthType -ErrorAction Stop + } + if([System.String]::IsNullOrWhiteSpace($OUPath)){ + $OUPath = $Domain.DistinguishedName + } + if($Disabled -eq $true){ + $computers = Search-ADAccount -Server $Domain.PDCEmulator -AuthType $AuthType -AccountDisabled -ComputersOnly ` + -SearchBase $OUPath -SearchScope $SearchScope | Select-Object DistinguishedName, SAMAccountName | Sort-Object -Property SAMAccountName + if($computers){ + foreach($itm in $computers){ + $resultMessage = $resultMessage + ("Disabled: " + $itm.DistinguishedName + ';' +$itm.SamAccountName) + } + $resultMessage = $resultMessage + '' + } + } + if($InActive -eq $true){ + $computers = Search-ADAccount -Server $Domain.PDCEmulator -AuthType $AuthType -AccountInactive -ComputersOnly ` + -SearchBase $OUPath -SearchScope $SearchScope | Select-Object DistinguishedName, SAMAccountName | Sort-Object -Property SAMAccountName + if($computers){ + foreach($itm in $computers){ + $resultMessage = $resultMessage + ("Inactive: " + $itm.DistinguishedName + ';' +$itm.SamAccountName) + } + } + } + } + if($SRXEnv) { + $SRXEnv.ResultMessage = $resultMessage + } + else{ + Write-Output $resultMessage + } +} +catch{ + throw +} +finally{ +} \ No newline at end of file From 566922774f0c744d8254633e24473f78e84bf95f Mon Sep 17 00:00:00 2001 From: Achim Wieser Date: Tue, 3 Jul 2018 11:17:50 +0200 Subject: [PATCH 03/39] Update issue templates Use Case Request @frankkresse --- .github/ISSUE_TEMPLATE/bug_report.md | 35 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 17 +++++++++++ .github/ISSUE_TEMPLATE/use-case-request.md | 32 ++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/use-case-request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..b735373 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,35 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..066b2d9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,17 @@ +--- +name: Feature request +about: Suggest an idea for this project + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/use-case-request.md b/.github/ISSUE_TEMPLATE/use-case-request.md new file mode 100644 index 0000000..eb8b43d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/use-case-request.md @@ -0,0 +1,32 @@ +--- +name: Use Case Request +about: Eine neue Aktion/Anwendungsfall zur Umsetzung mit ScriptRunner beauftragen. + +--- + +**Primäre Anwendergruppe** +An welche Anwendergruppe soll die Aktion delegiert werden? +- [ ] Help Desk / Service Hotline / First-Level-Support +- [ ] Second-Level-Support +- [ ] Fachbereich +- [ ] Endbenutzer +- [ ] Administratoren + +**Kurzbeschreibung** +Eine kurze Erläuterung des gewünschten Anwendungsfalls. + +**Skriptparameter** +Eine Auflistung, der erforderlichen Skriptparameter inkl. Beschreibung und Typ. +- SurName: Nachname des Benutzers; String +- GivenName: Vorname des Benutzers; String + +**Zielsysteme und Credentials** +Auf welchen Zielsystemen und mit welchen Credentials soll der Anwendungsfall ausgeführt werden? + +**Voraussetzungen** +Voraussetzungen auf dem Zielsystem / Credentials / Infrastruktur / etc. + +**Screenshots** +Screenshots, die helfen den Anwendungsfall genauer zu Beschreiben. + +**Weitere Anmerkungen** From d511f320c2927a5be07b8b3900e2f9e41383d3ea Mon Sep 17 00:00:00 2001 From: AchimASR Date: Tue, 3 Jul 2018 11:30:39 +0200 Subject: [PATCH 04/39] Fix typo in readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1604ddd..479955e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Team Develpoment +# Team Development An introductory example of developing scripts for ScriptRunner in the team on GitHub. From 9d00894ebca6ee4a98102323e2eb4621f198bdc6 Mon Sep 17 00:00:00 2001 From: ScriptRunner Date: Wed, 4 Jul 2018 08:52:14 +0200 Subject: [PATCH 05/39] Update use-case-request.md --- .github/ISSUE_TEMPLATE/use-case-request.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/use-case-request.md b/.github/ISSUE_TEMPLATE/use-case-request.md index eb8b43d..98c8ea0 100644 --- a/.github/ISSUE_TEMPLATE/use-case-request.md +++ b/.github/ISSUE_TEMPLATE/use-case-request.md @@ -17,14 +17,15 @@ Eine kurze Erläuterung des gewünschten Anwendungsfalls. **Skriptparameter** Eine Auflistung, der erforderlichen Skriptparameter inkl. Beschreibung und Typ. -- SurName: Nachname des Benutzers; String -- GivenName: Vorname des Benutzers; String +- **Zielsysteme und Credentials** Auf welchen Zielsystemen und mit welchen Credentials soll der Anwendungsfall ausgeführt werden? +- **Voraussetzungen** Voraussetzungen auf dem Zielsystem / Credentials / Infrastruktur / etc. +- **Screenshots** Screenshots, die helfen den Anwendungsfall genauer zu Beschreiben. From d6e3b700b1069f5be24baea76e47669ff3c2ef23 Mon Sep 17 00:00:00 2001 From: ScriptRunner Date: Wed, 4 Jul 2018 08:52:51 +0200 Subject: [PATCH 06/39] Update use-case-request.md --- .github/ISSUE_TEMPLATE/use-case-request.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/use-case-request.md b/.github/ISSUE_TEMPLATE/use-case-request.md index 98c8ea0..638f755 100644 --- a/.github/ISSUE_TEMPLATE/use-case-request.md +++ b/.github/ISSUE_TEMPLATE/use-case-request.md @@ -17,15 +17,12 @@ Eine kurze Erläuterung des gewünschten Anwendungsfalls. **Skriptparameter** Eine Auflistung, der erforderlichen Skriptparameter inkl. Beschreibung und Typ. -- **Zielsysteme und Credentials** Auf welchen Zielsystemen und mit welchen Credentials soll der Anwendungsfall ausgeführt werden? -- **Voraussetzungen** Voraussetzungen auf dem Zielsystem / Credentials / Infrastruktur / etc. -- **Screenshots** Screenshots, die helfen den Anwendungsfall genauer zu Beschreiben. From 7a68e3bf81317adeb333ce3f1cfecd9b42361c81 Mon Sep 17 00:00:00 2001 From: Achim Wieser Date: Wed, 4 Jul 2018 10:29:35 +0200 Subject: [PATCH 07/39] New script set ad user expires. #3 @frankkresse --- .../User/Set-ADUserExpirationDate.ps1 | 176 ++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 ActiveDirectory/User/Set-ADUserExpirationDate.ps1 diff --git a/ActiveDirectory/User/Set-ADUserExpirationDate.ps1 b/ActiveDirectory/User/Set-ADUserExpirationDate.ps1 new file mode 100644 index 0000000..151375c --- /dev/null +++ b/ActiveDirectory/User/Set-ADUserExpirationDate.ps1 @@ -0,0 +1,176 @@ +#Requires -Version 4.0 +#Requires -Modules ActiveDirectory + +<# + .SYNOPSIS + Sets the expiration date for an Active Directory account + + .DESCRIPTION + + .NOTES + This PowerShell script was developed and optimized for ScriptRunner. The use of the scripts requires ScriptRunner. + The customer or user is authorized to copy the script from the repository and use them in ScriptRunner. + The terms of use for ScriptRunner do not apply to this script. In particular, AppSphere AG assumes no liability for the function, + the use and the consequences of the use of this freely available script. + PowerShell is a product of Microsoft Corporation. ScriptRunner is a product of AppSphere AG. + © AppSphere AG + + .COMPONENT + Requires Module ActiveDirectory + + .LINK + https://github.com/scriptrunner/ActionPacks/tree/master/ActiveDirectory/Users + + .Parameter OUPath + Specifies the AD path + + .Parameter Username + Display name, SAMAccountName, DistinguishedName or user principal name of an Active Directory account + + .Parameter DomainAccount + Active Directory Credential for remote execution without CredSSP + + .Parameter Day + Specifies the day of the expiration date for an Active Directory account + + .Parameter Month + Specifies the month of the expiration date for an Active Directory account + + .Parameter Year + Specifies the year of the expiration date for an Active Directory account + + .Parameter NeverExpires + Specifies the Active Directory account never expires + + .Parameter DomainName + Name of Active Directory Domain + + .Parameter SearchScope + Specifies the scope of an Active Directory search + + .Parameter AuthType + Specifies the authentication method to use +#> + +param( + [Parameter(Mandatory = $true,ParameterSetName = "Local or Remote DC")] + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [string]$OUPath, + [Parameter(Mandatory = $true,ParameterSetName = "Local or Remote DC")] + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [string]$Username, + [Parameter(Mandatory = $true,ParameterSetName = "Remote Jumphost")] + [PSCredential]$DomainAccount, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [ValidateRange(1,31)] + [int]$Day=1, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [ValidateRange(1,12)] + [int]$Month=1, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [ValidateRange(2017,2030)] + [int]$Year, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [switch]$NeverExpires, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [string]$DomainName, + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [ValidateSet('Base','OneLevel','SubTree')] + [string]$SearchScope='SubTree', + [Parameter(ParameterSetName = "Local or Remote DC")] + [Parameter(ParameterSetName = "Remote Jumphost")] + [ValidateSet('Basic', 'Negotiate')] + [string]$AuthType="Negotiate" +) + +Import-Module ActiveDirectory + +#Clear +#$ErrorActionPreference='Stop' +try{ + $Script:Domain + $Script:User + + if($PSCmdlet.ParameterSetName -eq "Remote Jumphost"){ + if([System.String]::IsNullOrWhiteSpace($DomainName)){ + $Script:Domain = Get-ADDomain -Current LocalComputer -AuthType $AuthType -Credential $DomainAccount -ErrorAction Stop + } + else{ + $Script:Domain = Get-ADDomain -Identity $DomainName -AuthType $AuthType -Credential $DomainAccount -ErrorAction Stop + } + $Script:User= Get-ADUser -Server $Script:Domain.PDCEmulator -Credential $DomainAccount -AuthType $AuthType ` + -SearchBase $OUPath -SearchScope $SearchScope ` + -Filter {(SamAccountName -eq $Username) -or (DisplayName -eq $Username) -or (DistinguishedName -eq $Username) -or (UserPrincipalName -eq $Username)} -ErrorAction Stop + } + else{ + if([System.String]::IsNullOrWhiteSpace($DomainName)){ + $Script:Domain = Get-ADDomain -Current LocalComputer -AuthType $AuthType -ErrorAction Stop + } + else{ + $Script:Domain = Get-ADDomain -Identity $DomainName -AuthType $AuthType -ErrorAction Stop + } + $Script:User= Get-ADUser -Server $Script:Domain.PDCEmulator -AuthType $AuthType ` + -SearchBase $OUPath -SearchScope $SearchScope ` + -Filter {(SamAccountName -eq $Username) -or (DisplayName -eq $Username) -or (DistinguishedName -eq $Username) -or (UserPrincipalName -eq $Username)} -ErrorAction Stop + } + if($null -ne $Script:User){ + $Out='' + if($NeverExpires -eq $true){ + if($PSCmdlet.ParameterSetName -eq "Remote Jumphost"){ + Set-ADUser -Identity $Script:User.SamAccountName -Credential $DomainAccount -AuthType $AuthType -Server $Script:Domain.PDCEmulator -AccountExpirationDate $null -ErrorAction Stop + } + else { + Set-ADUser -Identity $Script:User.SamAccountName -AuthType $AuthType -Server $Script:Domain.PDCEmulator -AccountExpirationDate $null -ErrorAction Stop + } + } + else{ + [datetime]$start = New-Object DateTime $Year, $Month, $Day + if($start.ToFileTimeUtc() -lt [DateTime]::Now.ToFileTimeUtc()){ + Throw "Expiration date is in the past" + } + if($PSCmdlet.ParameterSetName -eq "Remote Jumphost"){ + Set-ADUser -Identity $Script:User.SamAccountName -Credential $DomainAccount -AuthType $AuthType -Server $Script:Domain.PDCEmulator -AccountExpirationDate $start -ErrorAction Stop + } + else { + Set-ADUser -Identity $Script:User.SamAccountName -AuthType $AuthType -Server $Script:Domain.PDCEmulator -AccountExpirationDate $start -ErrorAction Stop + } + } + Start-Sleep -Seconds 5 # wait + if($PSCmdlet.ParameterSetName -eq "Remote Jumphost"){ + $Script:User = Get-ADUser -Identity $Script:User.SAMAccountName -Properties * -Credential $DomainAccount -AuthType $AuthType -Server $Script:Domain.PDCEmulator + } + else{ + $Script:User = Get-ADUser -Identity $Script:User.SAMAccountName -Properties * -AuthType $AuthType -Server $Script:Domain.PDCEmulator + } + if([System.String]::IsNullOrWhiteSpace($Script:User.AccountExpirationDate)){ + $Out = "Account for user $($Username) never expires" + } + else{ + $Out=[System.TimeZone]::CurrentTimeZone.ToLocalTime([System.DateTime]::FromFileTimeUtc($Script:User.accountExpires)) + $Out = "Account for user $($Username) expires on the $($Out). Please inform the user in time." + } + if($SRXEnv) { + $SRXEnv.ResultMessage = $Out + } + else { + Write-Output $Out + } + } + else{ + if($SRXEnv) { + $SRXEnv.ResultMessage = "User $($Username) not found" + } + Throw "User $($Username) not found" + } +} +catch{ + throw +} +finally{ +} \ No newline at end of file From c7ffce4ae7668f41a00decc136ba0cc54d3d2981 Mon Sep 17 00:00:00 2001 From: Heiko Brenn <45851972+HeikoBrenn@users.noreply.github.com> Date: Wed, 12 Jun 2019 13:57:26 +0200 Subject: [PATCH 08/39] Changed Synopsis #15 --- ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 b/ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 index fa95d72..33ee422 100644 --- a/ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 +++ b/ActiveDirectory/Computer/Get-ADComputersWithDefinedStatus.ps1 @@ -3,7 +3,7 @@ <# .SYNOPSIS - Lists computers where disabled or inactive + Lists computers where disabled or inactive(2) .DESCRIPTION From a7c92f4b140c3dcede324542a48ffe7005997a50 Mon Sep 17 00:00:00 2001 From: HaraldPfirmann Date: Wed, 18 Mar 2020 11:13:53 +0100 Subject: [PATCH 09/39] Create Test01.ps1 My new script v1.0 --- Test01.ps1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 Test01.ps1 diff --git a/Test01.ps1 b/Test01.ps1 new file mode 100644 index 0000000..8f32ffc --- /dev/null +++ b/Test01.ps1 @@ -0,0 +1 @@ +#Requires Version 4.0 From 15f73d7b73790eee23ae4a6dd45cef797e1921b1 Mon Sep 17 00:00:00 2001 From: HaraldPfirmann Date: Wed, 18 Mar 2020 15:00:24 +0100 Subject: [PATCH 10/39] Create SRScript01.ps1 --- Demo/SRScript01.ps1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 Demo/SRScript01.ps1 diff --git a/Demo/SRScript01.ps1 b/Demo/SRScript01.ps1 new file mode 100644 index 0000000..15684a2 --- /dev/null +++ b/Demo/SRScript01.ps1 @@ -0,0 +1 @@ +Write-Output 'Test 01' From a68729dc6af31091cbeff9b125e912db3f0ff484 Mon Sep 17 00:00:00 2001 From: HaraldPfirmann Date: Thu, 19 Mar 2020 13:01:50 +0100 Subject: [PATCH 11/39] Create test02.ps1 --- Demo/test02.ps1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 Demo/test02.ps1 diff --git a/Demo/test02.ps1 b/Demo/test02.ps1 new file mode 100644 index 0000000..3f2eb0b --- /dev/null +++ b/Demo/test02.ps1 @@ -0,0 +1 @@ +write-output "eee" From 2ea95fb7053aa0c13b3cd3b12ddf2efc8bdaf832 Mon Sep 17 00:00:00 2001 From: HaraldPfirmann Date: Thu, 19 Mar 2020 13:06:31 +0100 Subject: [PATCH 12/39] Create test.txt --- Demo/test.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 Demo/test.txt diff --git a/Demo/test.txt b/Demo/test.txt new file mode 100644 index 0000000..d07d6ff --- /dev/null +++ b/Demo/test.txt @@ -0,0 +1 @@ +hahah From f8e202b9623d4795a297920bc204b059ae19a1ed Mon Sep 17 00:00:00 2001 From: Harald Date: Wed, 25 Mar 2020 14:51:27 +0100 Subject: [PATCH 13/39] Test --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index d07d6ff..7abd685 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah +hahah sagt der Clown From d29161e43eb87689a982e14de553bfdd7a456e48 Mon Sep 17 00:00:00 2001 From: Harald Date: Wed, 25 Mar 2020 14:55:06 +0100 Subject: [PATCH 14/39] none --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 7abd685..961d4fa 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown +hahah sagt der Clown hihi From 5bdc34a8dde18c4569df615bf010ee9b1294d22c Mon Sep 17 00:00:00 2001 From: Harald Date: Wed, 25 Mar 2020 14:57:05 +0100 Subject: [PATCH 15/39] message --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index d07d6ff..3f30843 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah +hahah meine ich From f2f661c2d88e148305e67bc788cdd3981ec9e6c4 Mon Sep 17 00:00:00 2001 From: Harald Date: Wed, 25 Mar 2020 14:58:03 +0100 Subject: [PATCH 16/39] none --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 3f30843..8b5d723 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah meine ich +hahah meine ich HP From 10ca29e4a26eadacd72314bfa72ce4d6f19b4f91 Mon Sep 17 00:00:00 2001 From: Harald Date: Wed, 25 Mar 2020 15:13:49 +0100 Subject: [PATCH 17/39] oo --- Demo/test.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Demo/test.txt b/Demo/test.txt index 5d47f29..294e8f0 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1,2 +1 @@ -hahah sagt der Clown hihi ->>>>>>> Development +hahah sagt der Clown \ No newline at end of file From 15bb5d74eb80c51815aec3213242ffba4d6d04bd Mon Sep 17 00:00:00 2001 From: Harald Date: Wed, 25 Mar 2020 15:15:30 +0100 Subject: [PATCH 18/39] test --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 8b5d723..54805d3 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah meine ich HP +hahah meine ich HP \ No newline at end of file From b3e8c18fdbf221470b9d818c1bb84ab2bf79fa8f Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 07:36:30 +0100 Subject: [PATCH 19/39] =?UTF-8?q?neue=20=C3=A4nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 54805d3..f26115a 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah meine ich HP \ No newline at end of file +hahah meine ich HP heute \ No newline at end of file From e480fcb87f43d7408caf3233e88b1b3c009a1978 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 08:34:24 +0100 Subject: [PATCH 20/39] =?UTF-8?q?Habe=20ich=20heute=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index f26115a..2651f4e 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah meine ich HP heute \ No newline at end of file +hahah meine ich HP heute ist Donnerstag \ No newline at end of file From 0ecac691306d73928104f0836933017a08132006 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 08:39:08 +0100 Subject: [PATCH 21/39] test --- Demo/test.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Demo/test.txt b/Demo/test.txt index 8893bf7..7abd685 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1,5 +1 @@ -<<<<<<< HEAD -hahah meine ich HP heute ist Donnerstag -======= hahah sagt der Clown ->>>>>>> f8e202b9623d4795a297920bc204b059ae19a1ed From 7e0e2604b858290586a858052752efdb353c7d5b Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 08:39:33 +0100 Subject: [PATCH 22/39] test --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 7abd685..92ea390 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown +hahah sagt der Clown gestern From 86c4157ed1164ed11d5862b7802cc5ee68365a44 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 08:41:29 +0100 Subject: [PATCH 23/39] test --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 92ea390..ae84c53 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown gestern +hahah sagt der Clown gestern nicht From f59bfd661443138941402067997584192e1455f8 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 08:42:40 +0100 Subject: [PATCH 24/39] new --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index ae84c53..01b9435 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown gestern nicht +hahah sagt der Clown gestern nichtddd From b4fdb8c464cc29fe1f4fee204d1e427714e9c450 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 08:45:58 +0100 Subject: [PATCH 25/39] eee --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 01b9435..9004569 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown gestern nichtddd +hahah sagt der Clown gestern nichtdddcc \ No newline at end of file From 93191d499dafdb8c480edb654f073a583f09bdc0 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 08:55:45 +0100 Subject: [PATCH 26/39] ttt --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 9004569..95f405a 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown gestern nichtdddcc \ No newline at end of file +hahah sagt der Clown gestern nichtdddcc bin bei 60%s \ No newline at end of file From 3cd439c12f7e738c605ecd8be28db3fb0822aaa1 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 09:00:49 +0100 Subject: [PATCH 27/39] test --- Demo/SRScript01.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/SRScript01.ps1 b/Demo/SRScript01.ps1 index 15684a2..0eeba96 100644 --- a/Demo/SRScript01.ps1 +++ b/Demo/SRScript01.ps1 @@ -1 +1 @@ -Write-Output 'Test 01' +Write-Output 'Test 014' From 4f2113fca823108f07d34963294f9f87d83cf066 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 10:14:20 +0100 Subject: [PATCH 28/39] st1 --- Demo/test.txt | 35 ++++++----------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/Demo/test.txt b/Demo/test.txt index 8428c7e..1c84acf 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1,29 +1,6 @@ -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD -hahah meine ich HP heute -======= -<<<<<<< HEAD -hahah meine ich HP heute ist Donnerstag -======= -hahah sagt der Clown ->>>>>>> f8e202b9623d4795a297920bc204b059ae19a1ed ->>>>>>> Development -======= -hahah sagt der Clown gestern ->>>>>>> Development -======= -hahah sagt der Clown gestern nicht ->>>>>>> Development -======= -hahah sagt der Clown gestern nichtddd ->>>>>>> Development -======= -hahah sagt der Clown gestern nichtdddcc ->>>>>>> Development -======= -hahah sagt der Clown gestern nichtdddcc bin bei 60%s ->>>>>>> Development + +tetst1 + +test2 + +test3 \ No newline at end of file From 7a35f6a2c843390452ed5f74f932ff5041247c70 Mon Sep 17 00:00:00 2001 From: Harald Date: Fri, 27 Mar 2020 11:20:26 +0100 Subject: [PATCH 29/39] ss --- Demo/SRScript01.ps1 | 4 +++- Demo/test.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Demo/SRScript01.ps1 b/Demo/SRScript01.ps1 index 15684a2..3e4c8f0 100644 --- a/Demo/SRScript01.ps1 +++ b/Demo/SRScript01.ps1 @@ -1 +1,3 @@ -Write-Output 'Test 01' +Write-Output 'Test 014' +test1 +test2 \ No newline at end of file diff --git a/Demo/test.txt b/Demo/test.txt index 9004569..95f405a 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown gestern nichtdddcc \ No newline at end of file +hahah sagt der Clown gestern nichtdddcc bin bei 60%s \ No newline at end of file From e7aab9b1ed6e91cf5d507a2da5066232c258dbb5 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 09:00:49 +0100 Subject: [PATCH 30/39] test the best --- Demo/SRScript01.ps1 | 2 +- Demo/test.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Demo/SRScript01.ps1 b/Demo/SRScript01.ps1 index 3e4c8f0..6ba391b 100644 --- a/Demo/SRScript01.ps1 +++ b/Demo/SRScript01.ps1 @@ -1,3 +1,3 @@ Write-Output 'Test 014' test1 -test2 \ No newline at end of file +test2 diff --git a/Demo/test.txt b/Demo/test.txt index 95f405a..97df7ad 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown gestern nichtdddcc bin bei 60%s \ No newline at end of file +hahah sagt der Clown gestern nichtdddcc bin bei 70%s \ No newline at end of file From 580c029e748281e996ec7f187312e0a5f2c43657 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 20 Aug 2020 10:19:09 +0200 Subject: [PATCH 31/39] test71 --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 97df7ad..e8d5e1c 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1 +1 @@ -hahah sagt der Clown gestern nichtdddcc bin bei 70%s \ No newline at end of file +hahah sagt der Clown gestern nichtdddcc bin bei 71% \ No newline at end of file From 1a132aa5aa37554f4e778ff00a62b183dda15da4 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 26 Mar 2020 09:00:49 +0100 Subject: [PATCH 32/39] test the best --- Demo/test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test.txt b/Demo/test.txt index 1c84acf..b8abd78 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -3,4 +3,4 @@ tetst1 test2 -test3 \ No newline at end of file +test3 From 18e5c520028113783819bc6a6125f27370c19911 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 20 Aug 2020 10:19:09 +0200 Subject: [PATCH 33/39] test71a --- Demo/test.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Demo/test.txt b/Demo/test.txt index b8abd78..9a0d855 100644 --- a/Demo/test.txt +++ b/Demo/test.txt @@ -1,6 +1 @@ - -tetst1 - -test2 - -test3 +hahah sagt der Clown gestern nichtdddcc bin bei 71% From 33f4c811e99c3014e0fee9b7242d5471fdf4588c Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 20 Aug 2020 10:28:52 +0200 Subject: [PATCH 34/39] test3 --- Demo/SRScript01.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Demo/SRScript01.ps1 b/Demo/SRScript01.ps1 index 6ba391b..615bc56 100644 --- a/Demo/SRScript01.ps1 +++ b/Demo/SRScript01.ps1 @@ -1,3 +1,4 @@ Write-Output 'Test 014' test1 test2 +test3 \ No newline at end of file From 69d6ab36fcedd3180ca24c135029c4a640766d40 Mon Sep 17 00:00:00 2001 From: Harald Date: Thu, 20 Aug 2020 10:28:52 +0200 Subject: [PATCH 35/39] test3 --- Demo/SRScript01.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Demo/SRScript01.ps1 b/Demo/SRScript01.ps1 index 6ba391b..615bc56 100644 --- a/Demo/SRScript01.ps1 +++ b/Demo/SRScript01.ps1 @@ -1,3 +1,4 @@ Write-Output 'Test 014' test1 test2 +test3 \ No newline at end of file From ca28b09534ea9df21dc165d50a134db9308a5338 Mon Sep 17 00:00:00 2001 From: haraldpfirmann Date: Thu, 8 Apr 2021 14:14:18 +0200 Subject: [PATCH 36/39] Test --- Demo/test02.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Demo/test02.ps1 b/Demo/test02.ps1 index 3f2eb0b..325ec9d 100644 --- a/Demo/test02.ps1 +++ b/Demo/test02.ps1 @@ -1 +1,2 @@ write-output "eee" +Write-Output "tele" \ No newline at end of file From d8595850d79902fde1c7c49e1114b7d2e13675c7 Mon Sep 17 00:00:00 2001 From: haraldpfirmann Date: Thu, 8 Apr 2021 14:15:44 +0200 Subject: [PATCH 37/39] Check --- Demo/test02.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/test02.ps1 b/Demo/test02.ps1 index 325ec9d..58c043a 100644 --- a/Demo/test02.ps1 +++ b/Demo/test02.ps1 @@ -1,2 +1,2 @@ write-output "eee" -Write-Output "tele" \ No newline at end of file +Write-Output "tele" \ No newline at end of file From f02e7f98683c266abb130d2241c6acb869a0103e Mon Sep 17 00:00:00 2001 From: haraldpfirmann Date: Wed, 14 Jul 2021 12:14:58 +0200 Subject: [PATCH 38/39] =?UTF-8?q?weitere=20Aus=C2=B4gabe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Demo/test02.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Demo/test02.ps1 b/Demo/test02.ps1 index 58c043a..b503544 100644 --- a/Demo/test02.ps1 +++ b/Demo/test02.ps1 @@ -1,2 +1,3 @@ write-output "eee" -Write-Output "tele" \ No newline at end of file +Write-Output "tele" +Write-Output "hallo" \ No newline at end of file From 32b94ee406b187ff1e7fd015fc6748a9f0ad0176 Mon Sep 17 00:00:00 2001 From: haraldpfirmann Date: Mon, 19 Jul 2021 10:13:38 +0200 Subject: [PATCH 39/39] erneuert --- test02.ps1 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test02.ps1 diff --git a/test02.ps1 b/test02.ps1 new file mode 100644 index 0000000..3957659 --- /dev/null +++ b/test02.ps1 @@ -0,0 +1,3 @@ +write-output "eee" +Write-Output "tele" +Write-Output "hallo welt" alles gut \ No newline at end of file