PowerShell Weekly for April 5, 2024
PowerShell Weekly for April 5, 2024
Announcements!
- PSResourceGet support for Azure Container Registry (ACR) is in Preview
PSResourceGet 1.1 preview 1 is available
Blogs, Articles, and Posts
- Exchange Online: Message Tracking with PowerShell
Message tracking in Exchange Online can be performed graphically as well as in PowerShell. In this post I will show how to track messages with PowerShell. - Reduce your attack surface by disabling NetBIOS using PowerShell and Microsoft Intune
Introduction If you are working with device management and IT security in general, you have probably heard about the recommendation to disable the legacy protocol NetBIOS in Windows. If this is news to you, there’s some interesting reading for you in this article: Adversary-in-the-Middle: LLMNR/NBT-NS Poisoning and SMB Relay, Sub-technique T1557.001 – Enterprise | MITRE ATT&CK NOTE: Before disabling anything, make sure you do your due diligence and monitor your environment for NetBIOS traffic, so you don’t accidently break stuff! - Installing and Using PowerShell Copilot
PowerShell Copilot is a community-developed module that extends the capabilities of PowerShell by integrating with the GPT-4 language model. This innovative tool is designed to assist users in generating code quickly and efficiently, leveraging the vast repository of code available on GitHub. - Porting PowerShell to FreeBSD, first working poc
For background, there was a previous attempt to bring PowerShell to FreeBSD, but it seems it got stuck somewhere - All About Pagination with the Graph and the Graph PowerShell SDK
When you're new to Graph API requests, you might not know pagination and end up retrieving less data from queries than is available. In this article, we explain how to use pagination to retrieve data using Graph queries and SDK cmdlets. - Getting the Timezone in Windows Using a Simple PowerShell Command
Learn how to retrieve the timezone information in Windows using PowerShell. The Get-TimeZone command allows you to access various properties related to the timezone, such as the timezone ID, display name, and standard time offset. Follow the simple steps provided in this blog post to retrieve the timezone information for your Windows system. This information can be useful for troubleshooting, system administration, or scripting tasks. Give the Get-TimeZone command in PowerShell a try next time you need to retrieve the timezone in Windows.
Projects, Scripts, and Modules
- Material from my RTPSUG presentation
Material from my RTPSUG presentation on writing better PowerShell code - demo.ps1 - PSTableauREST v 0.6.4
This PowerShell module facilitates working with Tableau REST API for automation tasks. Most functions are implemented as wrappers for the corresponding API calls. - OnePowerShellProfile v 1.0.12
Generates a duplicate PowerShell profile for each installed PS editions (i.e. Desktop, ISE, Core)
Books, Media, and Learning Resources
- How Hackers Can Hide PowerShell in Environment Variables
A pretty good refresher on something to look out for.
Community
- Unveiling PowerShell’s Past: An Interview with Jeffrey Snover
In this highly anticipated episode of the PowerShell Podcast, we sit down with the legendary Jeffrey Snover, the creator of PowerShell. With his departure from Microsoft, Jeffrey opens up about his insights, experiences, and candid opinions. From the inception of PowerShell to its current state, he shares the challenges he faced and the triumphs he celebrated. Jeffrey delves into the controversial topic of using aliases in scripts, shedding light on the pros and cons. Additionally, he offers thought-provoking perspectives on the evolving landscape of AI and his experience in AI ethics. Reflecting on his tenure at Microsoft, Jeffrey discusses the intricacies of navigating a large corporation and making a substantial impact. We also explore the concept of the "PowerShell sacred vow" and its significance. Join us for an illuminating conversation with Jeffrey Snover. - Inside IT Automation | E02
Kamen Nikolov talks about PowerCLI, PowerShell, VMware and more
Fun
- We need entertainment during ESP…
We’ve all sat and watched the Enrollment Status Page (ESP) during an Autopilot provisioning process — it’s pretty boring overall, showing information that isn’t really useful (e.g. what does “Preparing for mobile device management” really mean) - GitHub - StartAutomating/PowerArcade: A Retro Arcade Game Console in PowerShell
A Retro Arcade Game Console in PowerShell. Contribute to StartAutomating/PowerArcade development by creating an account on GitHub.
Check out psweekly.dowst.dev for all past editions as well as a searchable archive.
0 comments