About 50 results
Open links in new tab
  1. Run Invoke-Command in remote computer as administrator

    Nov 26, 2020 · 6 I'm trying to run invoke-command to launch a powershell script in a powershell file on a remote computer. I'm using the credentials for a user with Administrator privilege. The command …

  2. Run Powershell Script as Administrator remotely

    Jan 23, 2023 · That said, even if your remote command does run with elevation, there's a common problem when that command tries to access network resources (shares): This is the infamous double …

  3. How to execute a powershell script available in remote machine?

    May 5, 2017 · I was trying to execute a script in remote computer. I did " Enable-PSremoting " in the remote machine. I placed a script hello.ps1 in remote machine. [My client machine is Windows XP …

  4. powershell - How do I run a remote command in a specific session on …

    Mar 2, 2022 · The above only works on my Local computer, I'd like to run it on a remote computer with currently logged on user... I also have a script that enumerates the session on a remote computer, in …

  5. Powershell : I am trying to run a script on a remote server. The script ...

    Feb 21, 2021 · Run a Script To run a script on one or many remote computers, use the FilePath parameter of the Invoke-Command cmdlet. The script must be on or accessible to your local …

  6. powershell - Using "Invoke-Command" to run a local file on a remote ...

    I am trying to use powershell to run a bat script that is located on Computer A and execute it on Computer B Computer A is the computer calling the Invoke Command function I am trying to do this ...

  7. How to use invoke-command in powershell, to run a script on remote ...

    The scenario here is, I have some scripts on a remote folder, and I need to use Invoke-Command or some other ways to run the script on a remote machine. Also, how to write if I want to pass some …

  8. Powershell Execute remote exe with command line arguments on …

    Mar 2, 2012 · My goal is to run an exe that already resides on a remote machine and pass in command line arguments. I've tried invoke-command, but I can't seem to get my syntax to recognize the …

  9. Execute Start-Process Powershell Script on a Remote Computer

    Dec 27, 2023 · 2 Add -Wait to your remote Start-Process call to ensure that wusa.exe runs to completion before returning from the remote Invoke-Command call. Otherwise, with an ad-hoc remoting session …

  10. Run Powershell Script on Multiple Remote Computers

    Aug 10, 2020 · As pointed out by dugas, you can use Invoke-Command to perform remote script execution using the -ScriptBlock and -ComputerName parameters.