About 15,300 results
Open links in new tab
  1. PowerShell: Invoke-Command with Try/Catch and adding to an …

    Nov 30, 2020 · How would I add a computer to an array within an Invoke-Command cmdlet also utilizing try/catch statement? I have the following which isn't behaving as I'm expecting:

  2. Powershell Invoke-Command works when run manually, but not …

    Oct 21, 2018 · I am building a script to remotely install the PSWindowsUpdate PowerShell module, open the correct firewall ports, and then run a command to install waiting updates. In …

  3. How do I run commands on a remote machine with admin …

    Use the Invoke-Command cmdlet to run a command on a remote machine. The syntax is as follows: Invoke-Command -ScriptBlock <COMMAND> -ComputerName <COMPUTER> …

  4. How do I run my PowerShell scripts in parallel without using Jobs?

    Sep 6, 2014 · If I have a script that I need to run against multiple computers, or with multiple different arguments, how can I execute it in parallel, without having to incur the overhead of …

  5. PowerShell and invoke-command - Server Fault

    Sep 2, 2020 · 0 Disable your Anti-virus on the remote server and re-run "Invoke-Command -ComputerName Serveradmin -ScriptBlock {Get-PSDrive | Where {$_.Free -gt 0}}" Anti-virus's …

  6. powershell - Invoke-Command with locally defined nested …

    Oct 20, 2016 · I want to call local function using Invoke-Command, which includes other locally defined functions. Here's rough example: Function foo1{ } Function foo2{ foo1 } invoke …

  7. powershell - Invoke command with IP address as Target server …

    Invoke command with IP address as Target server does not works at all Ask Question Asked 12 years, 2 months ago Modified 9 years, 11 months ago

  8. How can I run a PowerShell function remotely? - Server Fault

    Usually, you use Invoke-Command to run a command on a remote computer. That command can be a script block or a PowerShell script. Neither of these approaches can reach out and use …

  9. Use Powershell to start a GUI program on a remote machine

    Scheduled tasks can be created remotely via powershell or schtasks, and subsequently called simply by the 'name' of the task itself using schtasks or powershell's Start-ScheduledTask. On …

  10. Using Powershell's Invoke-command to install .exe on remote …

    Dec 29, 2011 · 1 The invoke-command requires the remote computer to be configured for remote management. Running Remote Commands If you are unable to configure remote …