![]() + FullyQualifiedErrorId : InvalidVariableReferenceWithDriveĪny of the following statements work as expected without creating extra variables, but I think that the format string makes the intended syntax much clearer than the alternatives. + CategoryInfo : ParserError: (:), ParentContainsErrorRecordException Write-Verbose (“Created to delimit the name. ![]() When I saw the first drafts of the scripts, they had a lot of Write-Verbose calls like this one: One of the most fun things I learned was about string formatting. I’m convinced that helping always benefits the helper. And I learned a whole bunch about Windows PowerShell. I learned about Windows Azure and the Azure module for Windows PowerShell. Although I was supposed to be the helper, I probably learned more from the interaction than anyone else. I recently had the opportunity to help the Windows Azure and ASP.NET product teams with some Windows PowerShell automation. To read more of June’s previous posts, see these Hey, Scripting Guy Blog posts. Today we have another guest blog by June Blender. ![]() Microsoft Scripting Guy, Ed Wilson, here. Summary: Learn about using formatted strings in Windows PowerShell.
0 Comments
Leave a Reply. |