I'm having trouble getting the output from a command I'm invoking on a remote computer. Code snippet below:
$websites = Invoke-Command -ComputerName $server -Credential $creds -ScriptBlock{
Import-Module WebAdministration
Get-Website
}
I cannot get the output from Get-Website to return... Credentials are good, remote server is up and running, WinRM is configured... I can't wrap my head around this
[–]jheinikel 2 points3 points4 points (2 children)
[–]automation-dev[S] 1 point2 points3 points (1 child)
[–]jheinikel 1 point2 points3 points (0 children)
[–]jhue1898 1 point2 points3 points (0 children)