diff --git a/functions/Get-ChocoSourcePackages.ps1 b/functions/Get-ChocoSourcePackages.ps1 index ef9388c..69fc009 100644 --- a/functions/Get-ChocoSourcePackages.ps1 +++ b/functions/Get-ChocoSourcePackages.ps1 @@ -1,10 +1,11 @@ + + function Get-ChocoSourcePackages { <# .SYNOPSIS Outputs all package names for one or multiple Chocolatey sources. .EXAMPLE Get-ChocoSourcePackages -Sources repo1,repo2 #> - function Get-ChocoSourcePackages { [CmdletBinding()] param( [Parameter(Mandatory=$true)] diff --git a/functions/Invoke-RebootPrompt.ps1 b/functions/Invoke-RebootPrompt.ps1 index 2d7b3fa..d16498b 100644 --- a/functions/Invoke-RebootPrompt.ps1 +++ b/functions/Invoke-RebootPrompt.ps1 @@ -1,8 +1,9 @@ - <# + +Function Invoke-RebootPrompt { +<# .SYNOPSIS Used in Start-ChocoRemotemgmt to prompt if a user wants to reboot a computer. #> -Function Invoke-RebootPrompt { param( $Message = "Click OK to reboot", $Title = "Continue or Cancel" diff --git a/functions/Start-ChocoRemoteMgmt.ps1 b/functions/Start-ChocoRemoteMgmt.ps1 index 063b7ed..170de79 100644 --- a/functions/Start-ChocoRemoteMgmt.ps1 +++ b/functions/Start-ChocoRemoteMgmt.ps1 @@ -1,4 +1,6 @@ #requires -modules Invoke-CommandAs + +function Start-ChocoRemoteMgmt { <# .SYNOPSIS 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) #> -function Start-ChocoRemoteMgmt { [CmdletBinding()] param ( [Parameter(Mandatory=$true)]