I hereby claim:
- I am steviecoaster on github.
- I am steviecoaster (https://keybase.io/steviecoaster) on keybase.
- I have a public key ASAkTmyMBHZACWCaR9NaOul6cuOhuucZnNnjUZRxXXIqDQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| function New-QueryString { | |
| <# | |
| .SYNOPSIS | |
| Turn a hashtable into a URI querystring | |
| .DESCRIPTION | |
| Turn a hashtable into a URI querystring | |
| .PARAMETER QueryParameter | |
| The hashtable to transform |
| function Set-CollectionOrder { | |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory)] | |
| [System.Collections.Generic.List[string]] | |
| $Collection, | |
| [Parameter(Mandatory)] | |
| [String] | |
| $Item, |
| function Set-ProGetSslConfig { | |
| <# | |
| .SYNOPSIS | |
| Updates the ProGet configuration file and restarts the ProGet services. | |
| .DESCRIPTION | |
| This script updates the ProGet configuration file with specified parameters, handles SSL certificate settings, and restarts the ProGet services. It processes parameters, updates the XML configuration file, and ensures the correct attributes are set. | |
| .PARAMETER ConfigFile | |
| Specifies the path to the ProGet configuration file. Default is 'C:\ProgramData\Inedo\SharedConfig\ProGet.config'. |
| function ConvertFrom-WinGetManifest { | |
| <# | |
| .SYNOPSIS | |
| Generates a Chocolatey install script for a WinGet manifest | |
| .DESCRIPTION | |
| Generate a Chocolatey package from a WinGet manifest, even though it'll probably already be on the CCR. | |
| .PARAMETER WinGetManifestRawUrl | |
| The Github raw url of the WinGet YAML manifest |
| format = """ | |
| $directory$git_branch$git_commit$git_state$git_status$cmd_duration | |
| $character""" | |
| # Get editor completions based on the config schema | |
| "$schema" = 'https://starship.rs/config-schema.json' | |
| # Inserts a blank line between shell prompts | |
| add_newline = false | |
| # Disable the package module, hiding it from the prompt completely |
| #Setup variables | |
| $ErrorActionPreference = 'Stop'; | |
| $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | |
| $url = 'https://server:8443/repository/choco-install/Fabrikam_Office_Setup.iso' | |
| $isoChecksum = 'c3a5c0d10747f80d0e60767b92a8ee4e8f0bdc5067b8747368fcf322926f887c' | |
| $destination = Join-Path $toolsDir -ChildPath 'Fabrikam_Office_Setup.iso' | |
| $officetempfolder = Join-Path $env:Temp 'chocolatey\Office365ProPlus' | |
| #Download iso from URL |
| function New-EncodedCredential { | |
| <# | |
| .SYNOPSIS | |
| Return an base64 encoded credential for use against API authentication | |
| .PARAMETER Credential | |
| The PSCredential object to encode | |
| .PARAMETER AsHeader | |
| Returns a header containing the required authorization information for use with the -Header parameter of Invoke-RestMethod |
| function Sync-Chocolatey { | |
| [CmdletBinding(SupportsShouldProcess)] | |
| Param( | |
| [Parameter()] | |
| [String] | |
| $OutputDirectory | |
| ) | |
| begin { | |
| function GetInstalledApps { | |
| process { |
| $ErrorActionPreference = 'Stop' | |
| $toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition | |
| #Receive the package parameters from a package as a hashtable | |
| #Example: choco install bob -y --package-parameters="'/Server=someserver /User=Bob /Enable'" | |
| $pp = Get-PackageParameters | |
| #You can then access the hashtable using any method you would normally use, both of the following will retrieve the value for the specified key. |