Powershell Tutorial
Introduction to Powershell Managing History of Powershell Commands Cmdlet, Alias, Function and Module in Powershell PSDrive Profile in Windows Powershell Variable Management in Powershell Passing values to parameters from file Creating files and directories Basic File System commands Finding the patterns in files Unique command Replacing patterns in files Comparing objects Sorting objects Other object commands Getting members of an Object Managing processes Managing Jobs IO redirection Piping System Commands Network commands Service Commands WMI(Windows Management Instrumentation) CIM (Common Information Model) Formatting output exporting output XML processing Powershell Module Management Remote computer managementremote computer management in windows powershell
There are 2 ways to execute commands on Remote systems.- Invoke-Command
- Enter-PSSession
> Invoke-Command -Scriptblock {Get-Process} -ComputerName C1
Here is the syntax of “Enter-PSSession” command. Once you are connected to remote computer, you can execute commands on that system just like SSH.
> Enter-PSsession -ComputerName C1
To exit the session, you can use below command.
> Exit-PSsession
Web development and Automation testing
solutions delivered!!