Skip to content

Instantly share code, notes, and snippets.

@TheGraycat
Last active April 11, 2018 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheGraycat/465b4e487800a46d48b0f1d977b0a6bf to your computer and use it in GitHub Desktop.
Save TheGraycat/465b4e487800a46d48b0f1d977b0a6bf to your computer and use it in GitHub Desktop.
WIP - function for Get-DedupInfo from remote servers
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