Browse by Tags

Tagged Content List
  • Blog Post: PowerTip: Convert JSON File to PowerShell Object

    Summary : Easily convert a JSON file to a Windows PowerShell object. How do I convert a JSON file to a Windows PowerShell object? Use the Get-Content cmdlet with the Raw parameter: Get-Content -Raw -Path <jsonFile>.json | ConvertFrom-Json
  • Blog Post: JSON Is the New XML

    Summary : June Blender provides a primer about JSON. Honorary Scripting Guy, June Blender, here. Today I'm going to introduce you to JSON. June is a writer for the Azure Active Directory SDK. She is also a frequent contributor to the Hey, Scripting Guy! Blog and for PowerShell.org. She lives...
  • Blog Post: Understanding Streams, Redirection, and Write-Host in PowerShell

    Summary : June Blender explains how to understand and use streams in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today guest blogger, June Blender, explains how to understand and use streams in Windows PowerShell. To read more from June, see these Hey, Scripting Guy! Blog posts...
  • Blog Post: PowerTip: Use PowerShell to Save Verbose Messages in Output File

    Summary : Learn how to use Windows PowerShell to save verbose messages from a script in an output file. How can I use Windows PowerShell to save the verbose messages from a script in an output file? Use the redirection operator that directs verbose messages (stream #4) to a file: PS C:\>...
  • Blog Post: String Formatting in Windows PowerShell

    Summary : Learn about using formatted strings in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, here. Today we have another guest blog by June Blender. To read more of June’s previous posts, see these Hey, Scripting Guy Blog posts . Now, here’s June… I recently had the...
  • Blog Post: PowerTip: Include Expressions in a String in PowerShell

    Summary : Learn how to include expressions in a string in Windows PowerShell. How do I include expressions in a string in Windows PowerShell? They're not replaced correctly in a double-quoted string: PS C:\> $p = Get-Process PowerShell PS C:\>"The $p.Name process uses the $p.StartInfo...
  • Blog Post: PowerTip: Find Windows Azure Database with PowerShell

    Summary : Use Windows PowerShell to get Windows Azure database. How can I use Windows PowerShell to get my Windows Azure database? 1. Run the Add-AzureAccount cmdlet to refresh the account information in your Windows PowerShell session (expires in 12 hours). 2. Run Get-AzureSqlDatabaseServer...
  • Blog Post: Get Windows Azure Active Directory Tenant ID in Windows PowerShell

    Summary : Get your Windows Azure Active Directory tenant ID in Windows PowerShell. How can I get my Windows Azure Active Directory tenant ID in Windows PowerShell? Use the Add-AzureAccount cmdlet to add your Windows Azure account to Windows PowerShell: PS C:\> Add-AzureAccount Then use...
  • Blog Post: PowerTip: Search for YouTube Videos

    Summary : Learn how to use Windows PowerShell to search YouTube videos. How can I search for YouTube videos about Desired State Configuration in Windows PowerShell 4.0? Use Invoke-RestMethod : Invoke-RestMethod -uri "https://gdata.youtube.com/feeds/api/videos?v=2&q=Desired+State+Configuration...
  • Blog Post: How to Write Great Help Examples

    Summary : Read these tips to help you write outstanding Windows PowerShell Help. Microsoft Scripting Guy, Ed Wilson, is here. Our guest blogger today is June Blender. June is a writer for the Windows Azure AD SDK. She is also a frequent contributor to the Hey Scripting Guy! blog, and for PowerShell...
  • Blog Post: Disconnected Sessions: Phenotype and Genotype (Part 2)

    Summary : Learn about a revolutionary feature in Windows PowerShell 3.0 that lets you disconnect from and reconnect to PSSessions. Today we continue our exciting guest blog series that is written by Paul Higinbotham, a software design engineer for Windows PowerShell and June Blender, a senior programming...
  • Blog Post: Copying PowerShell Profiles to SkyDrive

    Summary : Learn how to copy Windows PowerShell profiles from your computer to SkyDrive. Microsoft Scripting Guy, Ed Wilson, is here. June Blender is joining us again today with another guest blog post. Like many avid Windows PowerShell users, I'm pretty protective of my Windows PowerShell profiles...
  • Blog Post: Weekend Scripter: Understanding TimeSpan Objects

    Summary : Guest bloggers, June Blender and Justin Hall, investigate strange behavior with TimeSpan objects in the Search-ADAccount cmdlet. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a blog written by two guests: June Blender and Justin Hall. First, a little bit about Justin (June is...
  • Blog Post: PowerTip: Supporting Updatable Help

    Summary : Find Windows PowerShell modules that support Updatable Help. Which modules support Updatable Help? Modules that have a HelpInfoUri property value support Updatable Help: Get-Module -ListAvailable | where HelpInfoUri | Select Name, HelpInfoUri
  • Blog Post: Where is PowerShell Updatable Help for Windows Modules?

    Summary : Get the inside scoop on what's up with Windows PowerShell 3.0 Updatable Help. Hey, Scripting Guy! I love PowerShell 3.0—I really do. There is one thing that I do not understand, however, and that is what’s up with the Help? I mean one of the nice things in Windows PowerShell...
  • Blog Post: PowerTip: Connect to PSSession if Availability is “None”

    Summary : Learn how to connect to a PSSession if its Availability is None . Can I connect to a PSSession if its Availability is None ? None means that no other session is connected to the PSSession, so if the State is Disconnected and the Availability is None , use the Connect-PSSession cmdlet...
  • Blog Post: PowerTip: Add Key-Value Pair to Ordered Dictionary

    Summary : Add a key-value pair to the first position in an ordered dictionary. How can I use Windows PowerShell to add a key-value pair to the first position in an ordered dictionary? Use the Insert method, which takes an index (starting with zero), a key, and a value. To add color = blue to the...
  • Blog Post: ConvertTo-OrderedDictionary

    Summary : Learn about creating ordered dictionaries in Windows PowerShell 3.0. Hash tables are fabulous for storing data items that are associated with each other. The simple "key=value" format is easy to create and easy to search. The only problem is that the order of elements in the hash table...
  • Blog Post: PowerTip: Find Missed Runs on Scheduled Task or Job

    Summary : Use Windows PowerShell to find the number of missed runs on a scheduled task or scheduled job. How can I use Windows PowerShell to find the number of missed runs on a scheduled task or scheduled job? Use the scheduled task cmdlets: PS C:\> Get-ScheduledTask -TaskName MyScheduledJob...
  • Blog Post: Remoting the Implicit Way

    Summary : Guest blogger, June Blender, talks about how to use Windows PowerShell implicit remoting. Today we welcome June Blender, senior programming writer for Windows Azure Active Directory. Take it away, June... Just about everyone knows how to run Windows PowerShell commands on a remote computer...
  • Blog Post: InvokeRestMethod for the Rest of Us

    Summary : Learn how to use Windows PowerShell to search web pages. Scripting Guy, Ed Wilson here. Today’s post is written by Doug Finke, a Windows PowerShell MVP, and June Blender, senior programming writer on the Windows Azure Active Directory team. Take it away, June… I was bending...
  • Blog Post: How to Run PowerShell Scripts from a Shared Directory

    Summary : Guest bloggers Judith Herman and June Blender discuss how to run Windows PowerShell scripts from a shared directory. Microsoft Scripting Guy, Ed Wilson, is here. Today, we have a guest blog with two writers Judith Herman and June Blender. June has been a guest blogger before (see more here...
  • Blog Post: PowerTip: Use PowerShell to Copy Profiles to SkyDrive

    Summary : Use Windows PowerShell to copy all profiles from a local computer to SkyDrive. How can I use Windows PowerShell to copy all of the profiles from my local computer to SkyDrive? Use the Get-ChildItem cmdlet. This works only if you have SkyDrive set up and available to the local computer...
  • Blog Post: PowerTip: Find if Computer has .NET Framework 4.5

    Summary : Use Windows PowerShell to find if a computer has .NET Framework 4.5. How can I use Windows PowerShell to find if my machine has .NET Framework 4.5 (required for Windows PowerShell 4.0)? Here's a little function that finds this information for you: function Test-Net45 { if (Test...
  • Blog Post: Disconnected Sessions: Phenotype and Genotype (Part 1)

    Summary : Learn about a revolutionary feature in Windows PowerShell 3.0 that lets you disconnect from and reconnect to PSSessions. Scripting Guy, Ed Wilson here. We have an exciting guest blog series that is written by Paul Higinbotham, a software design engineer for Windows PowerShell and June Blender...