Re: CMD vzdálená správa
Napsal: 21 čer 2017 11:15
ITCrowd píše:Když nechceš připojit disk, tak co vlastně očekáváš, že ti explorer ukáže?
ITCrowd píše:Pochybuji, že by to přes powershell nešlo. Osobně používám pro kontrolu služeb a další fičouroviny vbs+wmic konzolu a je to bez problémů, jen se místo WMI použije wbem + jméno a heslo.
Microsheep píše:Pokud nemá počítače v doméně, tak se mu bude ovládat vzdáleně přes PowerShell těžko. Protože se většina příkazů chce ověřovat Kerberus protokolem (přes doménové jméno), tudíž musí mít doménu. Musel by jedině udělat vyjímky na IP adresu a pravděpodobně vygenerovat self-signed certifikát, aby se pc s tebou vůbec bavil.
Podle mě mu stačí prosté psexec
Many cmdlets (including the Get-Service, Get-Process, Get-WMIObject, Get-EventLog, and Get-WinEvent cmdlets) get objects from remote computers by using Microsoft .NET Framework methods to retrieve the objects. They do not use the Windows PowerShell remoting infrastructure.
In many cases, you will be able to work with remote computers in other domains. However, if the remote computer is not in a trusted domain, the remote computer might not be able to authenticate your credentials. To enable authentication, you need to add the remote computer to the list of trusted hosts for the local computer in WinRM. To do so, type:
winrm s winrm/config/client '@{TrustedHosts="RemoteComputer"}'
Here, RemoteComputer should be the name of the remote computer, such as:
winrm s winrm/config/client '@{TrustedHosts="CorpServer56"}'
ITCrowd píše:Radu jsi ode mě dostal - nastuduj si sítě.
ITCrowd píše: Začít můžeš mými odkazy v podpisu.
ITCrowd píše:Video se zabývá spištění programu na vzdáleném PC. Použij psexec - to už tu taky bylo řečeno.