Witam,
Potrzebuję uruchomić zdalnie program okienkowy (np, notepad.exe) .
$Session = New-CimSession -ComputerName $name
$CimMethodParams = @{
ClassName = 'Win32_Process'
MethodName = 'Create'
Arguments = @{CommandLine = 'powershell.exe -command "start-process notepad.exe"'}
CimSession = $Session
}
Invoke-CimMethod @CimMethodParams
Proces jest uruchomiony na liście, ale nie uruchamia się aplikacja okienkowa.