Last active
April 11, 2018 07:36
-
-
Save TheGraycat/465b4e487800a46d48b0f1d977b0a6bf to your computer and use it in GitHub Desktop.
WIP - function for Get-DedupInfo from remote servers
This file contains hidden or 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 Get-DedupInfo | |
{ | |
PARAM ( | |
[Parameter(Mandatory=$True)][String[]]$servers | |
) | |
foreach ($server in $servers) | |
{ Write-Output $server | |
invoke-command -computername $server -scriptblock {Get-DedupStatus} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment