About 26,400 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 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 …

  4. 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> …

  5. 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 ago Modified 9 years, 10 months ago

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

    Oct 21, 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. 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 …

  8. 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 …

  9. How to persist credentials in a remote Powershell session?

    Mar 27, 2015 · An Azure Powershell script runs from my laptop, connects to the Azure subscription and builds the VMs from scratch, using a lot of variables. Figured out to use …

  10. Run a PowerShell command as NT AUTHORITY\\SYSTEM - Server …

    Jun 21, 2013 · Is there a way to run a PowerShell command as NT AUTHORITY\SYSTEM from a script? I know I can use psexec and get a PowerShell prompt running as NT …