Set-ActiveSetup needs an example for removing an ActiveSetup. I'm guessing:
```
Set-ActiveSetup -Key $installName -PurgeActiveSetupKey
```
------------------------------------------------------------------
Manual Chapter 6 - Needs more TK variables listed such as:
$scriptParentPath
$exeWusa (maybe even add example of how to use it with execute-process function)
...
--------------------------------------------------------------------
Please use the HelpMessage Argument in all function declarations. In PowerGUI (and probably other editors too), these HelpMessage popup when you hover over the parameter. It's a lot of work but you don't have to do it all in one shot. The Execute-* cmdlets are probably #1 on my list.
http://technet.microsoft.com/en-us/library/hh847743.aspx
HelpMessage Argument
The HelpMessage argument specifies a string that contains a brief
description of the parameter or its value. Windows PowerShell displays
this message in the prompt that appears when a mandatory parameter value
is missing from a command. This argument has no effect on optional parameters.
The following example declares a mandatory ComputerName parameter and a
help message that explains the expected parameter value.
Param
(
[parameter(mandatory=$true,
HelpMessage="Enter one or more computer names separated by commas.")]
[String[]]
$ComputerName
)
```
Set-ActiveSetup -Key $installName -PurgeActiveSetupKey
```
------------------------------------------------------------------
Manual Chapter 6 - Needs more TK variables listed such as:
$scriptParentPath
$exeWusa (maybe even add example of how to use it with execute-process function)
...
--------------------------------------------------------------------
Please use the HelpMessage Argument in all function declarations. In PowerGUI (and probably other editors too), these HelpMessage popup when you hover over the parameter. It's a lot of work but you don't have to do it all in one shot. The Execute-* cmdlets are probably #1 on my list.
http://technet.microsoft.com/en-us/library/hh847743.aspx
HelpMessage Argument
The HelpMessage argument specifies a string that contains a brief
description of the parameter or its value. Windows PowerShell displays
this message in the prompt that appears when a mandatory parameter value
is missing from a command. This argument has no effect on optional parameters.
The following example declares a mandatory ComputerName parameter and a
help message that explains the expected parameter value.
Param
(
[parameter(mandatory=$true,
HelpMessage="Enter one or more computer names separated by commas.")]
[String[]]
$ComputerName
)