Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from kaptainkommie/patch-1
Browse files Browse the repository at this point in the history
Changed Persist to correct value
  • Loading branch information
majkinetor authored Sep 28, 2018
2 parents 9f86825 + 544f5b6 commit a6385f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TFS/New-TFSCredential.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function New-TFSCredential {
if (($global:tfs.root_url -eq '') -or ($global:tfs.root_url -eq $null)) { throw 'You must set $global:tfs.root_url in order to store credentials' }

Write-Verbose "Storing credential for target '$($global:tfs.root_url)'"
New-StoredCredential -Target $global:tfs.root_url -UserName $Credential.UserName -Password $Credential.GetNetworkCredential().Password -Persist LOCAL_MACHINE | Out-Null
New-StoredCredential -Target $global:tfs.root_url -UserName $Credential.UserName -Password $Credential.GetNetworkCredential().Password -Persist LocalMachine | Out-Null

return $Credential
}

0 comments on commit a6385f9

Please sign in to comment.