How to remotely delete a folder and documents using Powershell

preview_player
Показать описание
$Computername = Read-Host -Prompt 'Input the computer name'

$Session = New-PSSession -ComputerName $Computername

Invoke-Command -Session $Session {(Remove-Item C:\Test -force)}
Рекомендации по теме