PowerTip: Use Here-Strings with PowerShell

Summary: Learn the basic use of a here-string in Windows PowerShell.  What is a here-string and how do I use it? In PowerShell, you can use here-strings to declare blocks of text. They’re declared just like regular strings except they have an @ on each end. Instead of being limited to one line, you can declare an…


Sounds of the Holidays–Part 2

Summary: MVP, Thomas Rayner, continues to inspire holiday spirit by using PowerShell to trigger multimedia. Yesterday in Sounds of the Holidays–Part 1, I tried to inspire my coworker, Matthew, with some cool holiday messages. Unfortunately, Matthew is still being a Grinch and I need to step up my game. Instead of some spoken messages from…


PowerTip: Launch Minimized Application with PowerShell

Summary: Learn how to specify the launch state of an application through Windows PowerShell.  How can I launch a minimized application in Windows PowerShell instead of opening the window in the foreground?  Use the –WindowStyle parameter with the Start-Process cmdlet, and select Minimized, for example: Start-Process -WindowStyle Minimized 'iexplore.exe'  Note   You can also choose Hidden, Maximized, or Normal, but not all applications support all…


Sounds of the Holidays–Part 1

Summary: MVP, Thomas Rayner, inspires holiday spirit by using Windows PowerShell to trigger some multimedia. Hello! I’m Thomas Rayner, a proud Cloud & Datacenter Management Microsoft MVP, filling in for the Scripting Guy for a couple days. You can find me on Twitter (@MrThomasRayner), or posting biweekly on my blog, WorkingSysadmin: Figuring stuff out at…


PowerTip: Get Status of a DSC File in Azure

Summary: Use the Azure cmdlets to get the current status of a Desired State Configuration file on a virtual machine.  How can I use Windows PowerShell to determine if a Desired State Configuration (DSC) file that I applied to an            Azure virtual machine is successful?  Get the Azure virtual machine…


Troubleshooting Azure Virtual Machine DSC Extension

Summary: Matthew Hitchcock, Microsoft MVP, delves into how to troubleshoot problems in the Azure VMDSC Extension. If you joined me yesterday in Advanced Use of Azure Virtual Machine DSC Extensions, you saw how I created an advanced Desired State Configuration (DSC) file to configure my Azure VM. Taking parameter input means I can reuse my…


PowerTip: How to Upload DSC File to Azure

Summary: Use Azure PowerShell cmdlets to send a Desired State Configuration file to be used later by a virtual machine.  How can I use Windows PowerShell to send a DSC file to be used later by a virtual machine?  Use the Publish-AzureVMDscConfiguration cmdlet and specify the path to your DSC script.            The…


Advanced Use of Azure Virtual Machine DSC Extensions

Summary: Matthew Hitchcock, Microsoft MVP, takes us through a deeper look at Azure DSC. Today we have the first part of a two-part series by Matthew Hitchcock. Here’s a bit about him: Matthew has deep experience in identity and directory services, including hybrid identity for Office 365, and Azure Active Directory federation and identity life…


PowerTip: Display Hidden Files in PowerShell

Summary: Boe Prox shows how to use Windows PowerShell to display hidden files.  How can I use Windows PowerShell to display hidden files and folders? There are a couple of approaches that use Get-ChildItem: Get-ChildItem –Hidden Get-ChildItem –Attributes H


Weekend Scripter: Remove a Long Path File

Summary: Boe Prox shows how to remove a file with a long path. Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, the Scripting Guy. This is a continuation of this weekend series on working with PowerShell and PInvoke to do things that you normally…