PowerShell 7 Tutorials for Intermediates #3 : Making your own module

preview_player
Показать описание
In this video I will go over how to create your own modules in PowerShell 7, how to create the module file, the manifest file, how to add help to your cmdlets, etc.

Tags:
PowerShell, jackedprogrammer, powershell 7, how to install powershell 7, powershell 7 on vs code, visual studio code
Рекомендации по теме
Комментарии
Автор

Hi Jack! My name is Paul. I find your videos very useful. Great thanks for your job! Now I’m working on GUI interface. I’m a beginner in it. Could you please make a video or example how to create yes or no conformation button to prevent situations like run some windows services without confirmation.

pavelchupakhin
Автор

15:25 discovered that in VCS just typing double hashtag inside the function curly brackets { ## } creates this by default:
<#
.SYNOPSIS
Short description

.DESCRIPTION
Long description

.EXAMPLE
An example

.NOTES
General notes
#>

piotrovitz
Автор

Mine is behaving differently. At 18:01, if I run the two (import and get-help) individually, I get the custom help. However, if I run the entire module (>F5< or Play), I get the Configuration function list and a list of various info (description: (@{.Text=Description of Get-Configuration}}, syntax: ..., inputTypes: ..., etc. These are in Green, as is the function list column titles. Once that list is finished, the module ends. I don't get any of the custom help information. Looking outside the video (Google), I can't find a reason why the behavior is different between running the function individually and as part of process flow. ???

Oops-IMeantToDoThat
Автор

Do cmdlet, method and function mean the same? Given you use them in an interchangeable way?

Kratosgamer