filmov
tv
How to remotely delete a folder and documents using Powershell
![preview_player](https://i.ytimg.com/vi/IC9G-7S1Le4/sddefault.jpg)
Показать описание
$Computername = Read-Host -Prompt 'Input the computer name'
$Session = New-PSSession -ComputerName $Computername
Invoke-Command -Session $Session {(Remove-Item C:\Test -force)}
$Session = New-PSSession -ComputerName $Computername
Invoke-Command -Session $Session {(Remove-Item C:\Test -force)}