You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a path to the PSModulePath environment variable.
4
-
5
-
.DESCRIPTION
6
-
Only adds the path if hasn't been added yet. The path will also be added to the $PSModulePath variable so the modules will be available in the current console too.
# The path to a folder that should be added to the list of paths containing PS modules. If not specified, the current path of this script will be added.
Write-Information"The path `"$Path`" was successfully added to the PSModulePath environment variable."
26
-
}
27
-
else
28
-
{
29
-
Write-Warning"The PSModulePath environment variable already contains the path `"$Path`"."
1
+
<#
2
+
.Synopsis
3
+
Adds a path to the PSModulePath environment variable.
4
+
5
+
.DESCRIPTION
6
+
Only adds the path if hasn't been added yet. The path will also be added to the $PSModulePath variable so the modules will be available in the current console too.
# The path to a folder that should be added to the list of paths containing PS modules. If not specified, the current path of this script will be added.
0 commit comments