Update-WFHost
Updated: August 30, 2012
Update-WFHost
Syntax
Parameter Set: Default Update-WFHost [-CertificateAutoGenerationKey <SecureString> ] [-RunAsPassword <SecureString> ] [-WFFarmDBConnectionString <String> ] [ <CommonParameters>]
Detailed Description
Run Update-WFHost to update the password of the service’s RunAs account, or to update auto generated certificates.
Parameters
-CertificateAutoGenerationKey<SecureString>
This parameter represents the password that will be used to securely store the auto generated certificate in the database.
Aliases | none |
Required? | false |
Position? | named |
Default Value | none |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
-RunAsPassword<SecureString>
The password of the service’s RunAs account.
Aliases | none |
Required? | false |
Position? | named |
Default Value | none |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
-WFFarmDBConnectionString<String>
Aliases | none |
Required? | false |
Position? | named |
Default Value | none |
Accept Pipeline Input? | false |
Accept Wildcard Characters? | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1
Update the RunAs password.
PS C:\> $mypassword=ConvertTo-SecureString -string myAccountPassword1 -force –AsPlainText; Update-WFHost -RunAsPassword $mypassword
Example 2
Update with the new Cert key
PS C:\> $mycert=ConvertTo-SecureString -string myPassword1 -force –AsPlainText; Update-WFHost -CertAutogenerationKey $mycert
Example 3