PowerShell to Invoke Commands to multiple Servers computers

Sdílet
Vložit
  • čas přidán 26. 08. 2024
  • computers with Invoke-Command
    PowerShell to Invoke Commands to multiple Servers computers
    how to invoke remote Powershell Script
    How to run PowerShell commands on remote computers
    How do I run a PowerShell script remotely ?
    What is invoke-Command in PowerShell ?
    How do you execute a PowerShell Command remotely?
    Invoke-Command The Best Way to Run Remote Code
    PowerShell Remoting Invoke-Command for Troubleshooting Purposes
    How to execute Windows Powershell Command Remotely
    #Powershell #PaddyMaddy #windowsPowershell

Komentáře • 15

  • @amritdhillon4958
    @amritdhillon4958 Před 2 lety +4

    That "Subscribe to my channel" button on the bottom right corner is really annoying since it's blocking some of the code.
    Other than that, great and clear video explaining the workings of the Invoke command!

  • @kuznetsovsu
    @kuznetsovsu Před rokem

    This is what I looked for, thank you bro.

  • @chandrashekhardahale4922
    @chandrashekhardahale4922 Před 3 měsíci

    Need some help. In order to make sure that remote administration works satisfactorily , what modules of Windows Management Instrumentation and other modules should be running /installed on target computers ?

    • @PaddyMaddy26
      @PaddyMaddy26  Před 3 měsíci

      Hello chandrashekhardahale4922,
      To ensure that remote administration works satisfactorily on target computers, it is important to have certain modules of Windows Management Instrumentation (WMI) and other necessary modules running or installed. Some key modules to consider for remote administration include:
      1. Windows Management Instrumentation Service (Winmgmt): This service must be running on the target computers to enable the execution of WMI queries remotely.
      2. Windows Remote Management (WinRM): WinRM is another important module that allows for remote management and monitoring of Windows systems. Make sure this service is enabled and running on the target computers.
      3. Remote Procedure Call (RPC): RPC is essential for communication between computers in a network. Ensure that the RPC service is enabled and running on target computers.
      4. Firewall settings: Adjust firewall settings on target computers to allow for remote access and management.
      By ensuring that these modules are properly running or installed on the target computers, you can optimize the functionality of remote administration. Let me know if you need any further assistance or clarification.

  • @resoluteforce
    @resoluteforce Před 2 lety +1

    Hea that's quite helpful

  • @gowthamharish5208
    @gowthamharish5208 Před 2 lety +1

    how to extract AD users list in remote servers using power shell. Get-ADUser is blocked any other command is there

    • @PaddyMaddy26
      @PaddyMaddy26  Před 2 lety +1

      The command is for AD users not for local users from local/remote servers list :)

  • @menwillbemen2168
    @menwillbemen2168 Před 2 lety

    Sir I buy your udemy course but what are the differences between your udemy and CZcams learning paths 😊

  • @PaddyMaddy26
    @PaddyMaddy26  Před 2 lety

    PowerShell to Invoke Commands to multiple Servers computers

  • @vcolet2011
    @vcolet2011 Před 2 lety

    Question, I have 2012 R2 Rds servers, when we need to do maintenance I need to log all users out of a server, I tried Get-RDUserSession | Invoke-RDUserLogoff -Force
    and it gives me an error.
    do you know how I can connect to one rds server vm, so on the server itself, and if there are 40 users in log them out....?

  • @MM-by6qq
    @MM-by6qq Před 2 lety

    but how can I define a computer to my domain?

  • @PaddyMaddy26
    @PaddyMaddy26  Před 2 lety

    computers with Invoke-Command
    PowerShell to Invoke Commands to multiple Servers computers
    how to invoke remote Powershell Script
    How to run PowerShell commands on remote computers
    How do I run a PowerShell script remotely ?
    What is invoke-Command in PowerShell ?
    How do you execute a PowerShell Command?
    Invoke-Command The Best Way to Run Remote Code
    PowerShell Remoting Invoke-Command for Troubleshooting Purposes

  • @Dany-rh5ur
    @Dany-rh5ur Před 2 lety

    How would you run this on multiple computers?
    Function ABC {
    REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d "1" /f
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 1
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 0
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 1
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" -Name "EnableFeeds" -Type DWord -Value 0
    Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 2
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 0
    }
    Stop-Process -name explorer -Force
    ABC