JEAZ The bump and grind of daily SysAdmin life

14Feb/130

Set-SCAdvisorActionAccount : The action parameter should be provided if computers are specified.

When configuring the SharePoint action account for System Center Advisor I ran into a problem.

http://onlinehelp.microsoft.com/en-us/advisor/hh923060.aspx

Run the Set-SCAdvisorActionAccount cmdlet to set the credentials. For example, if the agent computer name is Com1, run the following:

Set-SCAdvisorActionAccount -ActionAccountName Microsoft.SharePoint.Foundation.2010.AdminAccount -Credential $credential -AllowedComputer Com1

Well, that gives an error:

Set-SCAdvisorActionAccount : The action parameter should be provided if computers are specified.

Here is what it should look like:
Set-SCAdvisorActionAccount -ActionAccountName Microsoft.SharePoint.Foundation.2010.AdminAccount -Credential $credential -AllowedComputer Com1 -Action Set

Action parameter is explained on this other page:
http://onlinehelp.microsoft.com/en-us/advisor/hh965410.aspx

Parameters

-Action

Specifies an action. You have the following choices:

Set: Assign the computers in the -AllowedComputer parameter to the action account.

Add: Add the computers in the -AllowedComputer parameter to the action account.

Remove: Remove the computers listed in the -AllowedComputer parameter from the action account and delete the credentials stored in the computer*.

Clear: Remove all computers from the action account and delete the credential stored in all computers assigned to the action account*.

* After you remove a computer from the credential distribution from the gateway, the agent needs to wait for the next polling cycle to update the credentials. The agent compares the new and old credential sets and removes any credentials that are present in the old credential set but absent in the new set.

Here are the Cmdlets for System Center Advisor:
http://onlinehelp.microsoft.com/en-us/advisor/hh781477.aspx

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.