Skip to content

Instantly share code, notes, and snippets.

@TheGraycat
TheGraycat / gist:465b4e487800a46d48b0f1d977b0a6bf
Last active April 11, 2018 07:36
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}
}