diff --git a/PowerShellMCHandout.pdf b/PowerShellMCHandout.pdf index 6737f1b..f0cc71e 100644 Binary files a/PowerShellMCHandout.pdf and b/PowerShellMCHandout.pdf differ diff --git a/README.md b/README.md index 80347d2..e0ec01f 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ Choco upgrade powershell-core ## References +Windows PowerShell Compatibility - https://github.com/PowerShell/WindowsCompatibility + Installing PowerShell Core on Ubuntu - https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6#ubuntu-1804 Installing VS Core on Ubuntu - https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-18-04/ diff --git a/Sample.ps1 b/Sample.ps1 index 3ad1b13..a483b7d 100644 --- a/Sample.ps1 +++ b/Sample.ps1 @@ -161,8 +161,12 @@ Invoke-Command -ComputerName savazuusscdc01 -ScriptBlock {get-eventlog -logname Invoke-command -computername savazuusscdc01 -scriptblock {get-eventlog -logname security | select-object -first 10} Invoke-command -computername savazuusscdc01 -scriptblock {get-eventlog -logname security -newest 10} -invoke-command -ComputerName savazuusscdc01 -ScriptBlock {get-process} | where {$_.name -eq "notepad"} | Stop-Process -invoke-command -ComputerName savazuusscdc01 -ScriptBlock {get-process | where {$_.name -eq "notepad"} | Stop-Process } +Invoke-Command -ComputerName savazuusscdc01 -ScriptBlock {get-process} | where {$_.name -eq "notepad"} | Stop-Process +Invoke-Command -ComputerName savazuusscdc01 -ScriptBlock {get-process | where {$_.name -eq "notepad"} | Stop-Process } + +Measure-Command {Invoke-Command -ComputerName savazuusscdc01 -ScriptBlock {get-process} | where {$_.name -eq "notepad"} } +Measure-Command {Invoke-Command -ComputerName savazuusscdc01 -ScriptBlock {get-process | where {$_.name -eq "notepad"}} } + #Sessions $session = New-PSSession -ComputerName savazuusscds01