1 2 3 4 |
# Tener habilitado el acceso remoto a PowerShell Enable-PSRemoting -Force ".","DESKTOP-UBB7M5N" | %{ Invoke-Command -ScriptBlock {Get-Disk | select FriendlyName} -ComputerName $_ } |
1 2 3 4 |
# Tener habilitado el acceso remoto a PowerShell Enable-PSRemoting -Force ".","DESKTOP-UBB7M5N" | %{ Invoke-Command -ScriptBlock {Get-Disk | select FriendlyName} -ComputerName $_ } |