powershell
136 TopicsHow to run a Windows 11 VM on Hyper-V
Happy new year everyone! Last month, before the holidays I wanted to run a Windows 11 VM on Hyper-V to run a few tests on Windows containers in a different environment than my local machine. However, it took me some time to get that VM up and running, simply because I forgot about the new hardware requirements for Windows 11 and that I had to get them configured before I installed the new OS in it. This blog post is my contribution so you don’t have to go through the same!251KViews17likes14CommentsPowerShell Basics: How to Delete Microsoft Teams Cache for All Users
Sometimes there is a need to delete Microsoft Teams cache to quicken the adoption of an in-band policy change or simply troubleshoot an issue. The challenge here is that the cache for Microsoft Teams is in multiple directories. This can be done manually but would result in a slow and tedious process. Again, we turn to PowerShell to automate this process and this time it's a one-liner that addresses this opportunity.215KViews13likes33CommentsHow to Migrate Windows Server 2008 R2 FSMO roles to Windows Server 2019
With the "end of support" on the horizon for Windows Server 2008 R2 coming January 2020, folks are looking around for resources to help them check off some high ticket items from their "to do" list. I thought I would dust off some of my Active Directory admin skills and document the quick and dirty process of upgrading your Active Directory from 2008 R2 over to the latest version of Windows Server 2019.155KViews11likes23CommentsConfigure Visual Studio Code to run PowerShell for Windows and PowerShell Core Simultaneously
As a PowerShell fan, I have recently adopted PowerShell Core as my version of choice. This post will detail how I've used the Shell Launcher Visual Studio Code extension to configure my Windows system to run PowerShell Core and PowerShell for Windows simultaneously as required.176KViews11likes12CommentsPowerShell Basics: How to Delete Files Older Than X Days
Currently spring cleaning your home... or trying to find something to do while stuck at home? I've recently taken up the task to clean my NAS and other storage devices of files not touched in over 6 months to clear up storage space. I once again turn to PowerShell to automate the task.175KViews11likes4CommentsPowerShell Basics: Are you using Get-ComputerInfo?
For years, administrators have used commands like Get-WMIObject or Get-CIMInstance , along with other built-in commands, to retrieve computer and system information. This often required multiple commands, and some crafty scripting to get all the information you needed. Well, PowerShell 5.1 brought some relief for admins needing computer specific information with Get-ComputerInfo . With Get-ComputerInfo , an object is returned that contains system and operating system properties. And like all objects in PowerShell, you can work with the data through the pipeline however you see fit.88KViews10likes12CommentsPowerShell and AI: Using ChatGPT with PowerShell to Automate Tasks
In this blog we will see how AI can help generate PowerShell scripts and take it a step further in also automating them. We look at how ChatGPT enables us to automate using GitHub Actions and Azure Functions.89KViews10likes2Comments