Fixed help formatted
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
|
|
||||||
|
function Get-ChocoSourcePackages {
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Outputs all package names for one or multiple Chocolatey sources.
|
Outputs all package names for one or multiple Chocolatey sources.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
Get-ChocoSourcePackages -Sources repo1,repo2
|
Get-ChocoSourcePackages -Sources repo1,repo2
|
||||||
#>
|
#>
|
||||||
function Get-ChocoSourcePackages {
|
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory=$true)]
|
[Parameter(Mandatory=$true)]
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<#
|
|
||||||
|
Function Invoke-RebootPrompt {
|
||||||
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Used in Start-ChocoRemotemgmt to prompt if a user wants to reboot a computer.
|
Used in Start-ChocoRemotemgmt to prompt if a user wants to reboot a computer.
|
||||||
#>
|
#>
|
||||||
Function Invoke-RebootPrompt {
|
|
||||||
param(
|
param(
|
||||||
$Message = "Click OK to reboot",
|
$Message = "Click OK to reboot",
|
||||||
$Title = "Continue or Cancel"
|
$Title = "Continue or Cancel"
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
#requires -modules Invoke-CommandAs
|
#requires -modules Invoke-CommandAs
|
||||||
|
|
||||||
|
function Start-ChocoRemoteMgmt {
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Starts a Winforms GUI for remote management of Chocolatey clients.
|
Starts a Winforms GUI for remote management of Chocolatey clients.
|
||||||
@@ -8,7 +10,6 @@
|
|||||||
|
|
||||||
Start-ChocoRemotemgmt -ComputerName (Get-ADComputer -Filter | Select-Object -ExpandProperty Name) -Packages (Get-ChocoSourcePackages -Sources repo1,repo2)
|
Start-ChocoRemotemgmt -ComputerName (Get-ADComputer -Filter | Select-Object -ExpandProperty Name) -Packages (Get-ChocoSourcePackages -Sources repo1,repo2)
|
||||||
#>
|
#>
|
||||||
function Start-ChocoRemoteMgmt {
|
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param (
|
param (
|
||||||
[Parameter(Mandatory=$true)]
|
[Parameter(Mandatory=$true)]
|
||||||
|
|||||||
Reference in New Issue
Block a user