filmov
tv
How to create a PowerShell repository? ( Step-by-step Tutorial)

Показать описание
This video will show you how to deploy a PowerShell repository in your environment. Code is provided! We will deploying an SMB share based PowerShell code repository.
0:00 - How to deploy a PowerShell repository.
0:42 - Description of the test environment.
1:07 - Link to Microsoft's documentation on deploying a PowerShell repository.
1:15 - Setting up the values for deploying a PowerShell repository.
1:30 - Creating the folder and SMB Share on a remote computer with PowerShell remoting.
2:19 - How to register and PowerShell repository on a client so the repository is trusted.
2:57 - How to create a module manifest using New-ModuleManifest.
3:53 - How to publish a PowerShell module into a PowerShell repository.
4:50 - How to discover the modules stored in a PowerShell repository.
4:59 - How to install a module from a PowerShell repository.
5:16 - How to see all of the cmdlets in a PowerShell module.
This episode is about deploying a PowerShell code repository. A PowerShell repository allows you to publish scripts and modules for the users of your network.
We will start off by defining our values for the remote file, the SMB Share, and the PowerShell code repository name. Next, utilizing PowerShell remoting, we will create a directory on the remote server that will act as the host for our PowerShell repository. Next, we will create an SMB share and set up the Domain Admins to have full access and the Domain users to have read access.
Next we will register the PowerShell repository on the Client. We will be registering this PowerShell repository as a trusted PowerShell repository. That way the client does not prompt with a warning message when the user installs a script or module from the PowerShell repository.
Before our code can be published, we need to use the PowerShell command New-ModuleManifest. For publishing a module, you will need to provide a module name, version, description, and author.
The required parameters that are needed to publish a module in a PowerShell repository are the module name, version, description, and author.
We will use the Publish-Module cmdlet to publish our module into the PowerShell code repository. Even though we are publishing to a SMB share PowerShell Repository, we need to provide a value for the NuGetApiKey. You can provide any value that you ant but you need to provide a value. If this is the first time that you are doing this you need to allow PowerShell to install the Nuget repository software.
Once we have a module in the PowerShell repository, we will use the Find-Module cmdlet to discover our published module in the PowerShell repository. We will then use Install-Module to install a module from our PowerShell repository. We will then use Get-Command to discover all of the cmdlets in the module that we downloaded from the PowerShell repository. Finally, we will run the cmdlets that we discover to verify that we successfully installed a module from an SMB share based PowerShell repository.
If you have actually read the description this far, you are awesome. Comment "I can deploy a PowerShell Repository" so I know who you are!
This video is about How to Create A PowerShell Repository, and How to Manage PowerShell Repositories.
0:00 - How to deploy a PowerShell repository.
0:42 - Description of the test environment.
1:07 - Link to Microsoft's documentation on deploying a PowerShell repository.
1:15 - Setting up the values for deploying a PowerShell repository.
1:30 - Creating the folder and SMB Share on a remote computer with PowerShell remoting.
2:19 - How to register and PowerShell repository on a client so the repository is trusted.
2:57 - How to create a module manifest using New-ModuleManifest.
3:53 - How to publish a PowerShell module into a PowerShell repository.
4:50 - How to discover the modules stored in a PowerShell repository.
4:59 - How to install a module from a PowerShell repository.
5:16 - How to see all of the cmdlets in a PowerShell module.
This episode is about deploying a PowerShell code repository. A PowerShell repository allows you to publish scripts and modules for the users of your network.
We will start off by defining our values for the remote file, the SMB Share, and the PowerShell code repository name. Next, utilizing PowerShell remoting, we will create a directory on the remote server that will act as the host for our PowerShell repository. Next, we will create an SMB share and set up the Domain Admins to have full access and the Domain users to have read access.
Next we will register the PowerShell repository on the Client. We will be registering this PowerShell repository as a trusted PowerShell repository. That way the client does not prompt with a warning message when the user installs a script or module from the PowerShell repository.
Before our code can be published, we need to use the PowerShell command New-ModuleManifest. For publishing a module, you will need to provide a module name, version, description, and author.
The required parameters that are needed to publish a module in a PowerShell repository are the module name, version, description, and author.
We will use the Publish-Module cmdlet to publish our module into the PowerShell code repository. Even though we are publishing to a SMB share PowerShell Repository, we need to provide a value for the NuGetApiKey. You can provide any value that you ant but you need to provide a value. If this is the first time that you are doing this you need to allow PowerShell to install the Nuget repository software.
Once we have a module in the PowerShell repository, we will use the Find-Module cmdlet to discover our published module in the PowerShell repository. We will then use Install-Module to install a module from our PowerShell repository. We will then use Get-Command to discover all of the cmdlets in the module that we downloaded from the PowerShell repository. Finally, we will run the cmdlets that we discover to verify that we successfully installed a module from an SMB share based PowerShell repository.
If you have actually read the description this far, you are awesome. Comment "I can deploy a PowerShell Repository" so I know who you are!
This video is about How to Create A PowerShell Repository, and How to Manage PowerShell Repositories.