this post was submitted on 17 May 2024
11 points (92.3% liked)

Powershell

1020 readers
3 users here now

PowerShell (POSH) is a a task automation command-line shell and scripting language created by Microsoft. It became part of the FOSS community in 2016 and is now available across Windows, Linux, and macOS

Resources:


Rules:

Self-promotion rules:


founded 1 year ago
MODERATORS
 

Announcements!

Blogs, Articles, and Posts

  • PowerShell Testing Mastery with Data-Driven Pester
    I’ve been using Pester for a long time off and on. I’ve always been obsessed with ensuring reliability in my PowerShell code. After writing the Pester Book and mentioning some of the methodologies I used with Pester v4 I’ll present in this blog post, I’ve since learned Pester v5 makes my work so much easier.
  • PowerShell Basics: Navigating CSV Files
    In this tutorial, we're diving into the essentials of handling CSV files using PowerShell, covering a variety of scenarios you might encounter in the real world. This guide will help sysadmins and IT professionals manage data effectively, demonstrating the power and flexibility of PowerShell in working with different types of CSV files.
  • Hyper-V: Enabling VM Resource Metering
    It is a good idea to monitor your Hyper-V VMs to get an overview of where resources are being consumed.
  • Check Windows 11 Hardware Readiness with PowerShell Script
    In this article, we’ll look at how to use the official Microsoft HardwareReadiness.ps1 PowerShell script to perform a bulk Windows 11 hardware compatibility check on domain computers.
  • Deprecated PowerShell Modules and Azure AD Graph retirement
    You created a script or function a while back that people in the company use a lot, and suddenly... They come to you telling you that it doesn't work anymore. :( The module you used has become deprecated, cmdlets don't all work anymore, etc. In this blog post, I will show the three most prominent modules that have become deprecated and where you can find good information about the successor to adjust your scripts.
  • Configure ‘Allow logon locally’ automatically using PowerShell and Microsoft Intune
    I know Microsoft Intune has the ability to configure this particular user rights assignment natively already. At time of writing, the new security baseline for Windows 11 23H2 in Intune configure this as well, restricting local logons to the built-in groups: Users and Administrators. This solution does something else. This solution grabs the currently logged on user and configures the ‘Allow logon locally‘ policy to ONLY allow this very user as well as Administrators to be able to log on locally.

Projects, Scripts, and Modules

  • Detecting Windows Terminal with PowerShell
    In the evolving landscape of software development and system administration, understanding your environment is essential for ensuring that scripts and commands run as expected. One useful PowerShell function that helps identify whether a script is running within Windows Terminal is my Test-IsWindowsTerminal function. This function is valuable for developers and system administrators who must tailor their scripts based on the terminal environment.
  • PowerShell Script to Check Active Directory Member Servers for Automatic Services’ Status
    I’ve been caught by an automatic service not starting after system reboots from things like patching.
  • Find your IPv4 and IPv6 addresses
    A PowerShell function to display the current IPv4 and IPv6 addresses of the machine. Useful to include in $PROFILE

Community

  • For the love of PowerShell and Curling with Frank Lesniak
    In this special MMSMOA episode of the PowerShell Podcast, Andrew is joined by Frank Lesniak. We touch base after PowerShell Summit, hear about tracking airplanes with ADS-B and raspberry pi's. Frank talks about classes and how they almost caused him to fall out of love with PowerShell. We also recount what most be the most brutal display of athleticism, curling.

Check out psweekly.dowst.dev for all past editions as well as a searchable archive.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 5 months ago (1 children)

Hi, just found this sub! I just want to say that these posts are obviously a work of love and I appreciate them. I don't get to use PowerShell in my professional life as much as I used to, but your posts gave me a chance to dive back in a bit!

[–] [email protected] 1 points 5 months ago

Thanks! I'm glad to hear you are finding it useful.