Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MailADM 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
Container registry
Model registry
Operate
Environments
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WBA
MailADM API
Commits
9beab5e3
Commit
9beab5e3
authored
4 years ago
by
Christian Maintz
Browse files
Options
Downloads
Patches
Plain Diff
Add new file: Load-Modules.ps1
parent
787f65ba
Branches
Branches containing commit
No related tags found
1 merge request
!5
Reorganisation und Erweiterung um eine Beispielanwendung
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Beispielprojekt/Load-Modules.ps1
+23
-0
23 additions, 0 deletions
Beispielprojekt/Load-Modules.ps1
with
23 additions
and
0 deletions
Beispielprojekt/Load-Modules.ps1
0 → 100644
+
23
−
0
View file @
9beab5e3
function
Load-Modules
{
[
CmdletBinding
()]
param
()
#Excel-Modul
write-verbose
"Es werden die benötigten Module geladen und ggf. Installiert.."
$GetModule
=
Get-Module
ImportExcel
-ListAvailable
-ErrorAction
SilentlyContinue
if
(
$GetModule
-eq
$null
)
{
write-verbose
"Modul existiert noch nicht und wird nun installiert"
Install-Module
ImportExcel
-Confirm
:
$false
write-verbose
"Modul wurde installiert und wird nun importiert"
Import-Module
ImportExcel
}
else
{
write-verbose
"Modul existiert schon und wird nun importiert"
Import-Module
ImportExcel
}
write-verbose
"Module geladen!"
}
\ 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