Skip to content

Instantly share code, notes, and snippets.

@TheGraycat
TheGraycat / gist:465b4e487800a46d48b0f1d977b0a6bf
Last active Apr 11, 2018
WIP - function for Get-DedupInfo from remote servers
View gist:465b4e487800a46d48b0f1d977b0a6bf
function Get-DedupInfo
{
PARAM (
[Parameter(Mandatory=$True)][String[]]$servers
)
foreach ($server in $servers)
{ Write-Output $server
invoke-command -computername $server -scriptblock {Get-DedupStatus}
}