-
-
Save bielawb/48a3da827858b50fd6f22705ac37af9f to your computer and use it in GitHub Desktop.
Wykorzystanie PSBound
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Export-CimInfo { | |
param ( | |
[String]$Path, | |
[pscredential]$Credential, | |
[String]$ComputerName | |
) | |
$PSBoundParameters.Remove('Path') | |
# Przekazujemy tylko ComputerName/ Credential | |
$sesja = New-CimSession @PSBoundParameters | |
# ... | |
$info | Export-Clixml -Path $Path | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment