❓ Classes
A class in .NET might be considered to be the recipe used to create a type. A type is a representation of something, anything.
Classes are created using the Class keyword.
An instance of the Car class can be created using ::new().
What type results when you create classes like above?
#quiz
A class in .NET might be considered to be the recipe used to create a type. A type is a representation of something, anything.
Classes are created using the Class keyword.
An instance of the Car class can be created using ::new().
class Car { }$car = [Car]::new()What type results when you create classes like above?
#quiz
📦 Microsoft.PowerShell.Kubectl
Microsoft experiments with native application wrapping.
https://github.com/PowerShell/Microsoft.PowerShell.Kubectl
#module
Microsoft experiments with native application wrapping.
https://github.com/PowerShell/Microsoft.PowerShell.Kubectl
#module
GitHub
GitHub - PowerShell/Microsoft.PowerShell.Kubectl: PowerShell module to manage Kubernetes
PowerShell module to manage Kubernetes. Contribute to PowerShell/Microsoft.PowerShell.Kubectl development by creating an account on GitHub.
🎁 Grab the latest PowerShell 7.1 Preview 4 release!
- Breaking Changes
- Engine Updates and Fixes
- General Cmdlet Updates and Fixes
Check full list of changes on GitHub
- Breaking Changes
- Engine Updates and Fixes
- General Cmdlet Updates and Fixes
Check full list of changes on GitHub
📘 Monitoring SQL Server with PowerShell Instance Data Collection
https://www.mssqltips.com/sqlservertip/6468/monitoring-sql-server-with-powershell-instance-data-collection/
#sql
https://www.mssqltips.com/sqlservertip/6468/monitoring-sql-server-with-powershell-instance-data-collection/
#sql
Mssqltips
Monitoring SQL Server with PowerShell Instance Data Collection
In this part of the series we look at noscripts that can capture instance level data for SQL Server instances being monitored.
❗ Classes
Properties are used to describe different information about an object.
A hashtable can be used to fill the properties of an object when the object is created.
Properties which do not have an explicit type name defined are given the type System.Object.
#quiz
Properties are used to describe different information about an object.
A hashtable can be used to fill the properties of an object when the object is created.
class Car { $Make [string] $Model}$car = [Car]@{ Make = 'Volkswagon' Model = 'Golf'}Properties which do not have an explicit type name defined are given the type System.Object.
$car | gm -name Make#quiz
🎬 PowerShell 7. New Operators
https://youtu.be/LjjL2X6lkTc?list=PLdESG89G24aOhO0UyFPf-3VlRc_5ZYICm
#video
https://youtu.be/LjjL2X6lkTc?list=PLdESG89G24aOhO0UyFPf-3VlRc_5ZYICm
#video
YouTube
Part 2 New Operators
📦 PS1 to Service.
A tool to convert your PS1 to Windows Service on local or other devices
http://www.systanddeploy.com/2020/06/ps1-to-service-tool-to-convert-your-ps1.html
#module
A tool to convert your PS1 to Windows Service on local or other devices
http://www.systanddeploy.com/2020/06/ps1-to-service-tool-to-convert-your-ps1.html
#module
Systanddeploy
PS1 to Service: A tool to convert your PS1 to Windows Service on local or other devices
In this post I will show you a tool I created that allows you to create your own Windows Service to run a PowerShell noscript and specify t...
🎬 ForEach-Object -Parallel
https://youtu.be/2Orjc3EB7Tg?list=PLdESG89G24aOhO0UyFPf-3VlRc_5ZYICm
#video
https://youtu.be/2Orjc3EB7Tg?list=PLdESG89G24aOhO0UyFPf-3VlRc_5ZYICm
#video
YouTube
Part 3 ForEachObject
❓ Classes
Methods are used to execute predefined actions. This may be changing a property of the object itself, or a change to the the thing the object represents, or it might be used to generate something new from the object.
Will you see any output in the shell?
#quiz
Methods are used to execute predefined actions. This may be changing a property of the object itself, or a change to the the thing the object represents, or it might be used to generate something new from the object.
class File { [string] $Path Create() { New-Item -Path $this.Path -ItemType File }}$file = [File]@{ Path = "c:\temp\test.txt"}$file.Create()Will you see any output in the shell?
#quiz
🏆 Awesome PowerShell
A curated list of delightful PowerShell packages and resources.
API Wrapper
Blogs
Books
Build Tools
Code and Package Repositories
Commandline Productivity
Communities
Documentation Helper
Editors and IDEs
Frameworks
Interactive Learning
Module Development Templates
Package Managers
Parallel Processing
Podcasts
Security
SharePoint
SQL Server
Testing
Themes
Videos
Webserver
Misc
A curated list of delightful PowerShell packages and resources.
API Wrapper
Blogs
Books
Build Tools
Code and Package Repositories
Commandline Productivity
Communities
Documentation Helper
Editors and IDEs
Frameworks
Interactive Learning
Module Development Templates
Package Managers
Parallel Processing
Podcasts
Security
SharePoint
SQL Server
Testing
Themes
Videos
Webserver
Misc
GitHub
GitHub - janikvonrotz/awesome-powershell: This repository has been moved to https://codeberg.org/janikvonrotz/awesome-powershell.…
This repository has been moved to https://codeberg.org/janikvonrotz/awesome-powershell. Please visit the new location for the latest updates. - janikvonrotz/awesome-powershell
A new Leanpub book project was announced recently.
https://tommymaynard.com/a-book-powershell-to-c-sharp-and-back/
#ebook #notfree
https://tommymaynard.com/a-book-powershell-to-c-sharp-and-back/
#ebook #notfree
🎬 PowerShell 7. Performance Improvements
https://youtu.be/BOCVJOQjYeI?list=PLdESG89G24aOhO0UyFPf-3VlRc_5ZYICm
#video
https://youtu.be/BOCVJOQjYeI?list=PLdESG89G24aOhO0UyFPf-3VlRc_5ZYICm
#video
YouTube
Part 4 Performance
❗ Classes
A method in a class can be assigned one or more arguments.
The return keyword must be used to return a value from the method
#quiz
A method in a class can be assigned one or more arguments.
The return keyword must be used to return a value from the method
class File { [string] $Path [void] Create([String] $content) { New-Item -Path $this.Path -ItemType File -Value $Content -Force } [String[]] ReadAll() { return [System.IO.File]::ReadAllLines($this.Path) }}#quiz
💡 Configure Custom Formatting for PowerShell Objects
https://www.cbtnuggets.com/it-training/custom-formatting-powershell-objects
#course #notfree
https://www.cbtnuggets.com/it-training/custom-formatting-powershell-objects
#course #notfree
CBT Nuggets
Online IT Training Videos, IT Certification Training | CBT Nuggets
CBT Nuggets has the premier Online IT Training Videos and IT Certification Training. We have easy to understand videos from amazing trainers. Start FREE today!
🎬 Powershell 7. New $ErrorView
https://youtu.be/RocEmfVNN9w?list=PLdESG89G24aOhO0UyFPf-3VlRc_5ZYICm
#video
https://youtu.be/RocEmfVNN9w?list=PLdESG89G24aOhO0UyFPf-3VlRc_5ZYICm
#video
YouTube
Part 5 New Error View
This media is not supported in your browser
VIEW IN TELEGRAM
📚 Convert remote time to local time with ArgumentCompleter and ArgumentTransformation attributes
https://powershellone.wordpress.com/2020/06/30/convert-remote-time-to-local-time-with-argumentcompleter-and-argumenttransformation-attributes/
https://powershellone.wordpress.com/2020/06/30/convert-remote-time-to-local-time-with-argumentcompleter-and-argumenttransformation-attributes/
📚 Setup FTP Server with PowerShell
https://ridicurious.com/2020/07/02/setup-ftp-server-with-powershell/
#tutorial
https://ridicurious.com/2020/07/02/setup-ftp-server-with-powershell/
#tutorial