PowerShell – Telegram
PowerShell
821 subscribers
214 photos
4 videos
1 file
802 links
Task automation and configuration management framework #PowerShell
Download Telegram
📌 Simple noscript 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
📘 Detecting Wired, Wireless, and VPN Connections using PowerShell

The noscript detects the following VPN platforms
- Palo Alto GlobalProtect
- Cisco
- Juniper
- Dell VPN (Sonicwall)
- F5 Networks VPN

https://deploymentresearch.com/detecting-wired-wireless-and-vpn-connections-using-powershell
Powershell fully supports unicode, meaning you can do fun stuff like this

#fun
🗓️ Join this free virtual PowerShell conference on July 31 at 8:00AM CST

- Rapid Function Development
- Building a Better Module Structure
- Securing PSRemoting
- Purpose build PowerShell noscript orchestration with Universal Automation
- Manage vSphere with PowerCLI DSC Resources, Finally!
- Azure DevOps Pipelines for the Infrastructure Automator
- Azure Administration Using Azure Functions and Logic Apps
- GitHub Actions to Automate Terraform for Azure
- Publishing Your First Package to the PowerShell Gallery
- PowerShell Toolmaking: From Zero To Hero

https://www.chicagopowershell.com/

#conference
🗂️ 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