The and parameters are used to identify the target of the password change –UserName –Password operation; the username and password in the parameter is used to authorize the password –Credential change operation. If the password is changed for the user specified in the default Splunk connection, the default connection must be re-established the new password: PS > set-splunkpassword admin secretpassword –username –newpassword Password for [admin] changed on [SplunkServer001] PS > $credential = Get-Credential admin –Credential # provide the new password when prompted PS > Connect-Splunk -Credential $credential SplunkServer001 –ComputerName See Also Get-Help Connect-Splunk Get-Help Get-SplunkdUser a Default Splunk Connection” on page 12 “Create
The –UserName and –Password parameters are used to identify the target of the password change operation; the username and password in the –Credential parameter is used to authorize the password change operation. If the password is changed for the user specified in the default Splunk connection, the default connection must be re-established the new password: PS > set-splunkpassword –username admin –newpassword secretpassword Password for [admin] changed on [SplunkServer001] PS > $credential = Get-Credential –Credential admin # provide the new password when prompted PS > Connect-Splunk -Credential $credential –ComputerName SplunkServer001 See Also Get-Help Connect-Splunk Get-Help Get-SplunkdUser “Create a Default Splunk Connection” on page 12
Splunk%20PowerShell%20Resource%20Kit.docx