Enter-PSSession starts an interactive session with a remote computer. Syntax: Enter-PSSession -ComputerName ServerName Example: Enter-PSSession -ComputerName WebServer01 You can now execute the hostname command to confirm that you are connected… Read more »
PS Command to list Administrators Group of Remote Server Invoke-Command -ComputerName Comp01 -ScriptBlock{net localgroup Administrators} *Replace Comp1 with server/computer name. Thanks, WintelAdmin
Its a powershell built-in variables that tells if last command/script executed successfully or failed. Its used to perform error handlingse either in scripts or from command lines easily. $LASTEXITCODE: This… Read more »
Get-Hotfix Powershell Command to find Patches installed on Specific Date. There was a request to verify the list of servers if those were patched recently. I succeeded in verifying the… Read more »
Powershell Tutorial – Part 1 To begin PowerShell you need to start using the console. Forget the command prompt and move on to PowerShell. Powershell is a combination of DOS… Read more »