File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function Get-SavedCredentials {
22
22
23
23
# Attempt to import CredentialManager module
24
24
try {
25
- Import-Module -Name "CredentialManager" -ErrorAction Stop
25
+ Import-Module -Name "CredentialManager" -ErrorAction Stop -WarningAction SilentlyContinue
26
26
}
27
27
catch {
28
28
return [PSCustomObject]@{
@@ -35,7 +35,7 @@ function Get-SavedCredentials {
35
35
# Attempt to retrieve saved credentials
36
36
$CredentialObject = Get-StoredCredential -Target 'Lazy Admin' -Type Generic -ErrorAction SilentlyContinue -WarningAction SilentlyContinue
37
37
38
- # Return either retrieved credentials or information about being unsuccessful
38
+ # Return either retrieved credentials or information about being unsuccessful
39
39
if ($CredentialObject) {
40
40
return [PSCustomObject]@{
41
41
error = $false;
You can’t perform that action at this time.
0 commit comments