PowerShell
827 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
❗ 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

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
πŸ“˜ PowerShell by Mistake

Learn PowerShell by reviewing "broken" code and discovering the answers. A great complement to any structured learning effort! Honor System: Pay what you feel this book is worth and what fits your budget.

#ebook #free
πŸ“» Windows Terminal 1.0 with Kayla Cinnamon

What if there was one place for Windows CLI commands, PowerShell, even SSH and Bash? There is, and its called Windows Terminal.

#podcast #terminal
πŸ“š Magic of $MyInvocation in PowerShell

$MyInvocation is an automatic variable which contains information about the invocation details of the current execution, such as function or script name, parameters, parameter values, script root, script path, invocation name and etc., and $MyInvocation works with scripts, functions, and script blocks only.

https://kpatnayakuni.com/2020/07/01/powershell-magic-of-myinvocation/
🎁 Hey! PowerShell v7.1.0-preview 5 is out!

- Engine Updates and Fixes
- Code Cleanup
- Build and Packaging Improvements

Check full list of changes on GitHub
πŸ“˜ PowerShell 7 for IT Pros: A Guide to Using PowerShell 7 to Manage Windows Systems

#ebook #notfree
πŸ“Œ Simple script dumping data from password-protected KeePass databases
🎁 PowerShell 7.0.3 and 6.2.7 are out!

- Fix Azure file copy issues in release build by fixing the path to upload directory content
- Update .NET Core to 3.1.6
- Fix Azure file copy break in AzDevOps by updating task version to latest