Fixed more help and added Demo for Start-ChocoRemoteMgmt

This commit is contained in:
Dan Franciscus
2019-07-10 12:05:44 -04:00
parent 77e3c5fa55
commit ff156c815b
4 changed files with 29 additions and 1 deletions

View File

@@ -1,4 +1,9 @@
# Chocolatey-tools Release History
## 0.4.7 - 7/10/2019
### Fixed
* Help stuff
## 0.4.5 - 7/10/2019

View File

@@ -12,7 +12,7 @@
RootModule = 'Chocolatey-tools.psm1'
# Version number of this module.
ModuleVersion = '0.4.6'
ModuleVersion = '0.4.7'
# Supported PSEditions
# CompatiblePSEditions = @()

View File

@@ -0,0 +1,13 @@
The Start-ChocoRemoteMgmt function launches a Winform PowerShell GUI for installing, uninstall, upgrading, viewing Chocolatey packages on remote clients. It can also be used to see current logged on users and reboot machines.
Note that the GUI will freeze when it is performing an action. The output will be displayed when it is finished. The list box of computers also does autocomplete, which is nice when you have a lot of computers.
### Prerequisites:
- Invoke-CommandAs PowerShell community module (Used for running scheduled tasks as SYSTEM)
- Chocolatey installed on remote machines
Here I use Active Directory to get a list of all computers which will populate the computer list in the GUI. I also use the function Get-ChocoSourcePackages to get all of the packages from my the local sources I have configured in Chocolatey. Note that it will only get unique package names.
```
Start-ChocoRemoteMgmt -ComputerName (Get-ADComputer -Filter * | Select-Object -ExpandProperty Name) -Packages (Get-ChocoSourcePackages -Packages myrepo1,myrepo2,myrepo3)
```

View File

@@ -9,6 +9,16 @@ function Start-ChocoRemoteMgmt {
We also use the function Get-ChocoSourcePackages to pull all packages from Chocolatey sources configured on the local computer.
Start-ChocoRemotemgmt -ComputerName (Get-ADComputer -Filter | Select-Object -ExpandProperty Name) -Packages (Get-ChocoSourcePackages -Sources repo1,repo2)
Button actions:
Reboot - Will prompt for confirmation and reboot the computer shown in Computer Name.
Show Current User - Show the current logged on user for remote computer.
Show Outdated - Show what Chocolatey packages are outdated on the remote machine.
Install - Install a Chocolatey package that is selected from the Packages list on the remote computer.
Upgrade - Upgrade a Chocolatey package that is selected from the Packages list on the remote computer.
Unistall - Upgrade - Uninstall a Chocolatey package that is selected from the Packages list on the remote computer.
Show Installed - Show what Chocolatey packages and versions are installed on remote computer.
#>
[CmdletBinding()]
param (