writing power shell the right tool for the job
TRANSCRIPT
![Page 1: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/1.jpg)
Writing PowerShellThe right tool for the job
Jaap Brasser
@jaap_brasser
![Page 2: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/2.jpg)
whoami.exe /priv
• PowerShell Conference Asia
• Dutch PowerShell User Group
• Blogging
• MS Tech Communities
• Slack
• GitHub
• PowerShell Gallery
• TechNet Forums/Gallery
@Jaap_Brasser
![Page 3: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/3.jpg)
Agenda
• Differences in tools
• Configure VS Code
• Working with VS code
• Working with the ISE and ISESteroids
• Questions
![Page 4: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/4.jpg)
Agenda
• Differences between editors
• Configure VSCode
• Working with Vscode
• Setting up the ISE
• Working with the ISE and ISESteroids
• Questions
IDE, ISE, Editors?
![Page 5: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/5.jpg)
Tools, what tools?
![Page 6: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/6.jpg)
Agenda
• Differences between editors
• Configure VSCode
• Working with Vscode
• Setting up the ISE
• Working with the ISE and ISESteroids
• Questions
Visual StudioCode
![Page 7: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/7.jpg)
VS What?
• Open source
• Actively developed by Microsoft
• Multi platform
![Page 8: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/8.jpg)
Important config files
• %userprofile%\AppData\Roaming\Code\User\keybindings.json
• %userprofile%\AppData\Roaming\Code\User\settings.json
![Page 9: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/9.jpg)
Agenda
• Differences between editors
• Configure VSCode
• Working with Vscode
• Setting up the ISE
• Working with the ISE and ISESteroids
• Questions
DemoVS Code
![Page 10: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/10.jpg)
Demo Summary
• Configure Split screen
• File compare
• Create custom key bindings
• Run a single line of code
• Multi line selection
• Select all words in file
• Commit and push to GitHub
• Enable Minimap
• Set a theme
• Jump to file
![Page 11: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/11.jpg)
Agenda
• Differences between editors
• Configure VSCode
• Working with Vscode
• Setting up the ISE
• Working with the ISE and ISESteroids
• Questions
Steroids…
![Page 12: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/12.jpg)
What is ISE Steroids
• A Module for the PowerShell ISE
• Developed by Tobias Weltner
• Available in the PowerShell Gallery
• Contains PSSharper
@TobiasPSP
![Page 13: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/13.jpg)
ISE Features
• Edit your PowerShell Profile
• Create Executable from PowerShell script
• Built-in compatibility checking
• Extensibility using MyCommands or plugins
![Page 14: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/14.jpg)
ISE Features continued…
• Smarter F8-behaviour
• Automatic script formatting
• Script obfuscation
• Automatic error handling
![Page 15: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/15.jpg)
Agenda
• Differences between editors
• Configure VSCode
• Working with Vscode
• Setting up the ISE
• Working with the ISE and ISESteroids
• Questions
DemoISE and ISESteroids
![Page 16: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/16.jpg)
Demo Summary
• Install ISESteroids
• Edit PowerShell Profile
• Create .exe from script
• Compatibility checking
• Function in MyCommands
• Smarter F8 behaviour
• Fix up ugly scripts
• Script Obfuscation
• Automatic error handling
• Syntax to Function
![Page 17: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/17.jpg)
Summary
![Page 18: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/18.jpg)
• Differences between editors
• Configure VSCode
• Working with Vscode
• Setting up the ISE
• Working with the ISE and ISESteroids
• Questions
Questions
![Page 19: Writing power shell the right tool for the job](https://reader033.vdocument.in/reader033/viewer/2022052116/58ede30e1a28abfc658b46a9/html5/thumbnails/19.jpg)
Resources
• https://github.com/Microsoft/vscode
• https://code.visualstudio.com/
• https://github.com/Microsoft/vscode-tips-and-tricks
• http://www.powertheshell.com/
• http://www.powertheshell.com/category/blog/
• http://code52.org/carnac/
• https://github.com/jaapbrasser/Events/tree/master/MSUGSingapore2017-03-18