Browse by Tags

Tagged Content List
  • Blog Post: PowerTip: See Data in Azure Storage

    Summary : Use Windows PowerShell to show the files in an Azure Storage blob. How can I use Windows PowerShell to see files that are in my subscription and stored in Azure blobs? Use a combination of the Get-AzureStorageContainer and Get-AzureStorageBlob cmdlets. For example, to see all of the data...
  • Blog Post: PowerTip: Find the PowerShell Version

    Summary : Easily find your Windows PowerShell version. How can I find information about my Windows PowerShell version? Use the $psversionTable automatic variable with the PSVersion property, for example: $PSVersionTable.PSVersion.Major
  • Blog Post: PowerTip: Identify Extensions in Azure

    Summary : Use Windows PowerShell to get a current list of virtual machine extensions in Azure. How can I find all the extensions that are available for virtual machines in Azure? To see all the extensions for a virtual machine in Azure, type: Get-AzureVMAvailableExtension | Format-Table
  • Blog Post: PowerTip: Identify Azure Subscriptions

    Summary : Use Windows PowerShell to get a current list of Azure subscriptions. How can I use Windows PowerShell to show me a list of the subscriptions that are attached to my Azure account? Use the Get-AzureSubscription cmdlet.
  • Blog Post: PowerTip: Identify Azure Services in Subscription

    Summary : Use Windows PowerShell to get a current list of Azure services in a subscription. How can I use Windows PowerShell to show me a list of the Azure services in a subscription? Run the Get-AzureService cmdlet.
  • Blog Post: PowerTip: Find PowerShell Aliases by Module

    Summary : Use Windows PowerShell to find aliases by module. How can I easily find which modules expose aliases? Use the Get-Alias cmdlet and pipe the results to the Sort-Object cmdlet ( Sort is an alias), for example: Get-Alias | sort modulename -Descending
  • Blog Post: PowerTip: Find Aliases for PowerShell Cmdlets

    Summary : Learn how to find aliases for Windows PowerShell cmdlets. How can I easily find all the aliases defined for a given Windows PowerShell cmdlet? Use the –Definition parameter of the Get-Alias cmdlet, for example: Get-Alias -Definition Get-ChildItem
  • Blog Post: PowerTip: Find Approved Verbs in PowerShell

    Summary : Use Windows PowerShell to find approved verbs. How can find a list of approved verbs for a function I am writing in Windows PowerShell? Use the Get-Verb function.
  • Blog Post: PowerTip: Update Windows PowerShell Help Files

    Summary : Learn to easily update Windows PowerShell Help files. I try to use Get-Help , but I am unable to retrieve any information. What do I need to do? Open the Windows PowerShell console (or the Windows PowerShell ISE) with admin rights, and type Update-Help .
  • Blog Post: PowerTip: Convert PowerShell Path to Standard Path

    Summary : Convert a Windows PowerShell path to a standard path. How can I convert a Windows PowerShell registry provider path to a standard registry path? Use the Convert-Path cmdlet, for example: Convert-Path HKLM:\SOFTWARE\Microsoft
  • Blog Post: PowerTip: Identify Location of PowerShell Providers

    Summary : Identify the location of Windows PowerShell providers. How can I find where the Windows PowerShell providers on my system come from? Use the Get-PSProvider Windows PowerShell cmdlet, and select the Name and the ModuleName properties: Get-PSProvider | select name, modulename
  • Blog Post: PowerTip: Test URI with PowerShell

    Summary : Use Windows PowerShell to test a URI. How can I use Windows PowerShell to easily test if I can reach a URI? Use the Test-Uri function from the Windows PowerShell Cookbook module , for example: Test-Uri -Uri http://www.microsoft.com
  • Blog Post: PowerTip: Keep Up with Hey, Scripting Guy! Blog

    Summary : Easily keep up with Hey, Scripting Guy! Blog posts. How can I easily keep up with Hey, Scripting Guy! Blog posts? Install the Scripting Guys app on your Windows Smart Phone. It is in the store, and it works great.
  • Blog Post: PowerTip: Examine Default PowerShell Parameter Values

    Summary : Examine default Windows PowerShell parameter values. How can I check to see if I have enabled any default Windows PowerShell parameter values? Check the value of the $PSDefaultParameterValues variable.
  • Blog Post: PowerTip: Better Way to View PowerShell Help

    Summary : Learn a better way to view Windows PowerShell Help. I like the Windows PowerShell Help files, but I do not like trying to read them in the Windows PowerShell console window. What is a better way to read the content? Use the –ShowWindow parameter from Get-Help . This example displays...
  • Blog Post: PowerTip: Find PowerShell Profiles

    Summary : Learn how to easily find Windows PowerShell profiles. How can I Question: You want to find the path to Windows PowerShell profiles? Use the $Profile automatic variable, but pipe the output to the Format-List cmdlet and use the –Force parameter. Here is an example that uses the FL...
  • Blog Post: PowerTip: Retrieve Last Token Received by PowerShell

    Summary : Learn how to retrieve the last token that was received by Windows PowerShell. How can I retrieve the last token received by Windows PowerShell? Use the $$ automatic variable: PS C:\> notepad C:\fso\AMoreComplete.txt PS C:\> $$ C:\fso\AMoreComplete.txt
  • Blog Post: PowerTip: Find User's Home Directory in PowerShell

    Summary : Find the path to the current user's home directory in Windows PowerShell. How can I easily find the current user's home directory for a script I am writing? Use the $home automatic variable: PS C:\> $HOME
  • Blog Post: PowerTip: Find Current Directory in PowerShell

    Summary : Easily find the current directory in Windows PowerShell. How can I return a path object that contains information about the current working directory in Windows PowerShell? Use the $pwd automatic variable: PS C:\> $pwd
  • Blog Post: PowerTip: Determine if Property is Member of Object

    Summary : Determine if a property is a member of an object in Windows PowerShell. How can I determine if a specific property is actually a member of an object in my Windows PowerShell script? Use the Get-Member cmdlet, and cast the response into a Boolean data type by using the [bool] type accelerator...
  • Blog Post: PowerTip: Roll Back Active PowerShell Transaction

    Summary : Learn how to roll back an active Windows PowerShell transaction. I started a transaction to modify the registry on my computer running Windows 8.1, but something failed, and I want to roll back the transaction. How can I do this? Use the Undo-Transaction cmdlet to roll back the active...
  • Blog Post: PowerTip: Set Default Location Stack with PowerShell

    Summary : Use Windows PowerShell to set your default location stack. How can I use Windows PowerShell to set the default for some named location stacks that I created? Use the Set-Location cmdlet and specify the stack name, for example: Set-Location -StackName REG
  • Blog Post: PowerTip: Display Locations Stored on Stack

    Summary : Use Windows PowerShell to display locations stored on the default stack. How can I use Windows PowerShell to see the locations that are stored on my default location stack? Use the –Stack parameter of Get-Location : Get-Location -Stack
  • Blog Post: PowerTip: Find PowerShell Cmdlets and Synopsis

    Summary : Use Windows PowerShell to find cmdlets and their associated synopsis. How can I easily find a list of specific Windows PowerShell cmdlets and their associated meanings? Use the Get-Command cmdlet, pipe the results to the Foreach-Object and Get-Help cmdlets, then select the name and synopsis...
  • Blog Post: PowerTip: Find PowerShell Providers

    Summary : Learn how to find Windows PowerShell providers and their capabilities. How can I find what Windows PowerShell providers I have on my system? Use the Get-PSProvider cmdlet. Note Beginning with Windows PowerShell 3.0, some providers load on-demand, and therefore, they do not appear unless...