Giter Site home page Giter Site logo

global-localhost / wsaprovider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from powershell/wsaprovider

0.0 0.0 0.0 48 KB

A PackageManagement provider to find and install packages for Appx based packaging format

License: MIT License

PowerShell 100.00%

wsaprovider's Introduction

Introduction

A PackageManagement provider to discover, install and inventory Windows Server App (WSA) packages. WSA is an APPX based installer for Windows Server. It is the only installer available on Nano Server. For more information on WSA, please read this blog.

Supported Platforms

Currently, the provider is supported on Nano Server Only

Cmdlets

Module introduces Find-AppxPackage cmdlet

Find-AppxPackage [[-Name] <string[]>] [-MinimumVersion <version>] [-MaximumVersion <version>] [-RequiredVersion <version>] [-Architecture <string>] [-ResourceId <string>] [-Source <string[]>] [<CommonParameters>]

It also supports following PackageManagement cmdlets

Find-Package
Get-Package
Install-Package
Save-Package
Uninstall-Package
Register-PackageSource
UnRegister-PackageSource
Get-PackageSource
Set-PackageSource

How to Install

Install-PackageProvider -Name WSAProvider 
Import-PackageProvider WSAProvider

List all installed Providers

Get-PackageProvider

How to use

Register a package source for WSA packages. It can either be a local folder or a network share

Register-PackageSource -ProviderName WSAProvider -Name WSAPackageSource -Location <WSAPackageLocation>

Discover available WSA Packages. Wildcard is supported for the WSA package name.

Find-Package -Provider WSAProvider 

or

Find-AppxPackage

Install WSA package. Pipeline from find-package is supported.

Install-Package -ProviderName WSAProvider -Name <WSAPackageName>

Get list of installed packages

Get-Package -ProviderName WSAProvider

UnInstall WSA Package

 UnInstall-Package -Name <WSAPackage> -ProviderName WSAProvider

More examples

Register local package source

 Register-PackageSource -Name Local -ProviderName WSAProvider -Location C:\temp\

Register network share as package source

 New-PSDrive -Name Z -PSProvider FileSystem -Root \\Mydevbox2\WSAPackages -Credential mytestuser
 Register-PackageSource -Name dev2 -ProviderName WSAProvider -Location Z:\

Find WSA packages from a specific source

	Find-Package -ProviderName WSAProvider -Source dev2

Find WSA package with the given name(with or without extension)

	Find-Package -ProviderName WSAProvider -Name TestPackage
	Find-Package -ProviderName WSAProvider -Name TestPackage.appx
	Find-Package -source dev2 -name TestP*

Find WSA packages with given Resource Id

	Find-Package -ProviderName WSAProvider -ResourceId NorthAmerica

Find WSA packages with given Architecture

	Find-Package -ProviderName WSAProvider -Architecture x64

Find WSA package that have the given version

	Find-Package -ProviderName WSAProvider -RequiredVersion 1.4.0.0 -Name TestPackage.appx

Installing WSA package with the given name(with or without extension)

	Install-Package -providername WSAProvider -Name testpackage
	Install-Package -providername WSAProvider -Name testpackage.appx

Install WSA package that have the given version

	Install-Package -Name TestPackage.appx -requiredVersion 1.4.0.0 -Source Local

Install all the WSA package from the search result

	Find-package -ProviderName WSAProvider | Install-Package

Save the latest version of WSA package to the directory that matches the LiteralPath

	Save-Package -ProviderName WSAProvider -Name TestPackage -LiteralPath C:\temp\

All results of the find will be saved in the given LiteralPath

 Find-AppxPackage | Save-Package -LiteralPath C:\temp\

wsaprovider's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.