Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADAM API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WBA
ADAM API
Commits
98e66458
Commit
98e66458
authored
Oct 12, 2023
by
Jannis Hahn
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
736fbf46
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Beispielprojekt/ADAM_Run.ps1
+44
-0
44 additions, 0 deletions
Beispielprojekt/ADAM_Run.ps1
with
44 additions
and
0 deletions
Beispielprojekt/ADAM_Run.ps1
0 → 100644
+
44
−
0
View file @
98e66458
function
Run
{
# Setzen der Parameter für die Funktionen
[
CmdletBinding
()]
param
(
# Pfad zur Excel-Datei (Inputdatei)
$xlsxpath
=
"C:\Verwaltungspfad\Files\BeispielExceldatei.xlsx"
,
$Logpath
=
"C:\Verwaltungspfad\Files\Logs\
$(
Get-Date
-format
"yyyy_MM_dd__HH_mm"
)
_Log.log"
,
$prefix
=
""
)
#Starten des Loggings
Start-Transcript
-Path
$LogPath
# Importieren der anderen Dateien
.
.
\ADAM_Connect-Webservice.ps1
.
.
\ADAM_Initialize.ps1
.
.
\ADAM_Check-Invitations.ps1
# Diese funktion führt automatisch alle Schritte automatisch durch in folgender Reihenfolge:
# Laden aller Module (Excel)
write-host
"Die Funktion Load-Modules wird ausgeführt"
-Foreground
darkyellow
Initialize
write-host
"Die Funktion Load-Modules ist durchgelaufen
`n
"
-Foreground
darkyellow
# Verbinden mit dem Webservice der RWTH Aachen
write-host
"Die Funktion Connect-Webservice wird ausgeführt"
-Foreground
darkyellow
Connect-WebService
write-host
"Die Funktion Connect-Webservice ist durchgelaufen
`n
"
-Foreground
darkyellow
# Überprüfung, ob neue Accounts existieren und ggf. Einladung erstellen
write-host
"Die Funktion Check-Invitations wird ausgeführt"
-Foreground
darkyellow
Check-Invitations
-xlsxpath
$xlsxpath
-prefix
$prefix
write-host
"Die Funktion Check-Invitations ist durchgelaufen
`n
"
-Foreground
darkyellow
# Stoppen des Loggings
Stop-Transcript
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment