PowerShell – Telegram
PowerShell
821 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
📦 Green Means Go - A (Visual) Mutex Demo

Why do I care?

More than likely you don't. But, if your noscript does some Asynchronous-Fu (think Jobs or ThreadJobs) and those worker-jobs share a log file you're gonna need a mutex. Otherwise those jobs will be stepping on each other - log entries will be missed...exceptions will be thrown...crying and nashing of teeth sort-of-thing.
📦 PSScriptAnalyzer 1.19.1

New Rule: AvoidUsingDoubleQuotesForConstantString (disabled by default)

When the value of a string is constant (i.e. not being interpolated by injecting variables or expression into such as e.g. "$PID-$(hostname)"), then single quotes should be used to express the constant nature of the string.

#module
This media is not supported in your browser
VIEW IN TELEGRAM
📦 PoShLog

PoShLog is powershell cross-platform logging module. Allows you to log structured event data into console, file and much more places easily. It's built upon great C# logging library Serilog.

#module
📦 Oh-my-posh. A prompt theming engine for Powershell

Features:

- Easy installation
- Awesome prompt themes for PowerShell in ConEmu
- Git status indications (powered by posh-git)
- Failed command indication
- Admin indication
- Current session indications (admin, failed command, user)
- Configurable
- Easily create your own theme
- Separate settings for oh-my-posh and posh-git
- Does not mess with the default Powershell console
This media is not supported in your browser
VIEW IN TELEGRAM
💡 Public Preview of Notebook Mode for VSCode

This provides the ability to open PowerShell noscripts (.ps1 files) in a Notebook-like view without having to fully adopt something like Jupyter Notebooks or .NET Interactive Books.
Chicago PowerShell Conference

Right now. On Twitch

https://www.twitch.tv/ChicagoPowerShell
The Send-MailMessage cmdlet is obsolete.

SmtpClient doesn't support many modern protocols. It is compat-only. It's great for one off emails from tools, but doesn't scale to modern requirements of the protocol.

PS. Use MailKit or other libraries.
🎬 How to Use .NET Interactive Jupyter Notebooks in Daily Work-Life | Data Exposed: MVP Edition

[01:04] Why use notebooks
[02:01] Demo
[04:15] Display notebooks in GitHub
[04:52] Get your own .NET Interactive notebook
[05:26] Edit .NET Interactive notebooks in Azure Data Studio
[07:37] SQL Instance Permissions

https://www.youtube.com/watch?v=W-F0gO7dVOE
#video
🎬 Skylines Summer Session, Adam Bertram
Premiere Date: Aug 4, 2020

- About Adam
- The Difference Between #PowerShell and PowerShell Core
- Adam's Go-to Modules
- What Tool Adam uses when creating PowerShell Scripts
- Demo: How to notice patterns when writing PowerShell and how to encapsulate patterns into functions
- Where the name Adam the Automator came from
- Adam's Hobby: Remote Control Cars

https://www.youtube.com/watch?v=7TCke2s0Lto&feature=youtu.be
🗓️ SEC505: Securing Windows and PowerShell Automation

Jason Fossen's six-day PowerShell for the Blue Team course is currently hosted by the SANS Institute as course SEC505: Securing Windows and PowerShell Automation.

https://www.sans.org/course/securing-windows-with-powershell

#notfree
📦 Powershell Webserver

Powershell noscript that starts a webserver (without IIS). Powershell command execution, noscript execution, upload, download and other functions are implemented.
This media is not supported in your browser
VIEW IN TELEGRAM
💡Finally something useful!

$a = @"
(>'-')>
#
^('-')^
#
<('-'<)
#
^('-')^
"@

$i = 0
do {
    foreach ($frame in $($a.Split("#").Trim())) {
        Clear-Host
        Write-Output "$frame`n`n`n"
        Start-Sleep -Milliseconds 250
    }
    $i++
} until ($i -eq 50)

#fun
PowerShell pinned a photo
📦 Pester 5.0.3 is available.

- Fix formatting for Nunit parameterrized tests
- Add FullNameFilter and PassThru parameters to Simple interface parameter list in README.md
- Updated docs Planets example to work with Pester v5
- Fix basic scoping of BeforeAll
- (doc): Add Legacy v4 parameter mapping to config object in README.md

See full log here
#pester