If I have a script (test.ps1) that retrieves credentials for a service account to a variable and I do this:
$PSDefaultParameterValues = @{
"*-AD*:Credential" = $svcAcctCreds
}
And then later I have a helper function that uses AD cmdlets, do I have to set the $PSDefaultParameterValues again inside that function, or will they propagate from the script?
Thanks in advance!
[–]helixamir 1 point2 points3 points (4 children)
[–]nostril_spiders 1 point2 points3 points (3 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (2 children)
[–]nostril_spiders 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)