Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (21 loc) · 801 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 801 Bytes

This is a sample PackageManagement provider. It discovers photos in your remote file repository and installs them to your local folder. The purpose of this provider is trying to provide some help for people to get started with writing a PackageManagement provider in PowerShell.

Let's try it out

####1. Search and Install the MyAlbum provider####

PS C:\>find-packageprovider -name MyAlbum
PS C:\>install-packageprovider -name MyAlbum -force

####2. Create a local repository####

PS C:\>mkdir c:\test
PS C:\>New-Item seattle.png
PS C:\>New-Item "new york.png"

####3. Register a repository

Register-PackageSource -Name album -ProviderName myalbum -Location  C:\test

####4. Find packages

Find-Package -ProviderName myalbum