Answer the question
In order to leave comments, you need to log in
How to execute a command without using psexec?
Guys, sometimes you need to "restart" the network interface on a remote PC, I do this (off / on):
psexec \\192.168.1.111 "cmd" "/c netsh interface set interface name="Подключение по локальной сети" admin=DISABLED & netsh interface set interface name="Подключение по локальной сети" admin=ENABLED"
Answer the question
In order to leave comments, you need to log in
PowerShell?
$nw = Get-WmiObject Win32_NetworkAdapter -ComputerName "FQDN or IP" -Filter "Name LIKE '*Wireless*'" -Credential (Get-Credential)
$nw.Disable()
$nw.Enable()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question