Skip to content

Commit

Permalink
Final Module 3 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthebrit committed Jan 13, 2019
1 parent 03f0a93 commit c61bb8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Binary file modified PowerShellMCHandout.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -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/
Expand Down
8 changes: 6 additions & 2 deletions Sample.ps1
Expand Up @@ -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
Expand Down

0 comments on commit c61bb8c

Please sign in to comment.