PowerShell – Telegram
PowerShell
820 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
🗂️ Simple, but working PoC for poisoning RDP cache.
🏆 A PowerShell Nonsense Challenge

- Create a random, nonsense “word” of a user-specified length, such as ‘jhmoz’
- Create a sentence of nonsense words of a user-specified length. Words should be of varying lengths.
- Create a paragraph of nonsense sentences, of varying lengths.
- Create 10 sample document files of varying paragraph length.

https://ironnoscripter.us/a-powershell-nonsense-challenge/

#challenge #intermediate
Quiz. Numbers

In PowerShell, we can use several different data types to represent numbers.
The two most common types are:
- Integers. Represent whole numbers.
- Doubles. Typically numbers which include decimal places or exponents.

$Int = 10
$Double = 10.0
$Result = $Int * $Double

What type results when you multiply integers and doubles?
$Result.GetType().Fullname

#quiz
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