I have several hundred servers that I need to update service accounts on. Looking at the Set-Service command I do not have ‘-Credential’ as an option when using Invoke command to target remote host.
And for my clarification, you mention “Service Accounts”. To me, that is not the same as a “Service” which is what you appear to be trying to manipulate.
Additionally, Set-Service requires some parameters as the cmdlet is used to change properties on a service. Am I missing something here?
We have Windows Services running under the context of a domain account. The passwords for these accounts need to change. When this is done in AD I also need to update the Windows service to reflect the new password.
A parameter cannot be found that matches parameter name ‘Credential’.
+ CategoryInfo : InvalidArgument: ( [Set-Service], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.SetServiceCommand
+ PSComputerName : computername