Browse by Tags

Tagged Content List
  • Blog Post: Managing Azure IaaS with Windows PowerShell: Part 5

    Summary : Use Windows PowerShell to manage virtual machines in Azure. Honorary Scripting Guy, Sean Kearney, is here flying through the digital stratosphere on our final day with Windows PowerShell and Azure! We started by creating a virtual network for our Azure workstations and escalated to spinning...
  • Blog Post: PowerTip: Identify All Stopped Azure Virtual Machines with PowerShell

    Summary : Identify virtual machines that are shut down, but are consuming billing time. How can I use Windows PowerShell to track virtual machines that are not shut down from the management portal in Azure? Use the Get-AzureVM cmdlet, and filter on 'StoppedVM' status: Get-AzureVM | Where...
  • Blog Post: Managing Azure IaaS with Windows PowerShell: Part 4

    Summary : Create a simple virtual machine from a predefined template in Azure. Honorary Scripting Guy, Sean Kearney, is here with my head still stuck in the clouds! Yesterday we created a network in Microsoft Azure for our resources to leverage—much like Hyper-V leverages a virtual network...
  • Blog Post: PowerTip: Set Default Storage Account for PowerShell Cmdlets in Azure

    Summary : Learn how to define the default storage account to be used with the Azure PowerShell cmdlets. How do I tell Azure which media or storage account I'd like to use when I create a virtual machine? Use Get-AzureStorageAccount to access the names of your storage accounts, and then use...
  • Blog Post: Manage Azure IaaS with Windows PowerShell: Part 3

    Summary : Access some information you need to easily automate virtual machine creation in Azure. Honorary Scripting Guy, Sean Kearney, is here to rain the Power of PowerShell and Azure down onto you! Note This is the third post in a series. You might also enjoy reading: Manage Azure IaaS...
  • Blog Post: PowerTip: Use PowerShell to Identify Services in Azure by Location

    Summary : Use Azure PowerShell cmdlets to identify which services a datacenter will contain. How can I use Windows PowerShell to identify which services a particular datacenter in Azure contains? Access the AvailableServices property from the Get-AzureLocation cmdlet, for example: (Get-AzureLocation...
  • Blog Post: Manage Azure IaaS with Windows PowerShell: Part 2

    Summary : Attend to prep work to get virtual machine cmdlets working. Honorary Scripting Guy, Sean Kearney is here with some scribbly notes to help you out with Azure scripts for your virtual machines. Note This is the second post in a series. You might also enjoy reading Manage Azure IaaS with...
  • Blog Post: PowerTip: Get Azure Subscription Names with PowerShell

    Summary : Use Windows PowerShell to get the name of cmdlets referring to your Azure subscription. Is there an easy way to obtain the Azure cmdlets referring to my subscription name? Use the Get-AzureSubscription cmdlet and access the SubscriptionName property: (Get-AzureSubscription).subscriptionname...
  • Blog Post: Manage Azure IaaS with Windows PowerShell: Part 1

    Summary : Establish a connection to Azure through Windows PowerShell. Honorary Scripting Guy, Sean Kearney, is here. I'm back from the MVP Summit with my head in the clouds! More specifically, the Azure sky! Yes, my head is truly in the clouds. About a month ago, I got some training in Microsoft...
  • Blog Post: PowerTip: Connect to Azure to Leverage PowerShell Cmdlets

    Summary : Learn how to use the Microsoft Azure cmdlets to connect to an Azure subscription. I downloaded the Azure PowerShell cmdlets, and I when I run them, they produce an error. How do I authenticate to Microsoft Azure from the cmdlets? Use a combination of two cmdlets ( Get-AzurePublishSettingsFile...
  • Blog Post: A Day in the Life of MVPs at the Summit

    Summary : Windows PowerShell MVPs, Sean Kearney, Steve Murawski, and Shane Hoey, talk more about the MVP Summit. An update from Sean... The last day of the MVP Summit is upon us. Aside from of all of the NDA goodie events, many really cool things happen outside of the MVP Summit sessions...
  • Blog Post: PowerTip: Remove Leading and Trailing Spaces with PowerShell

    Summary : Use the Trim() method to remove extraneous space from a String object. Is there an easy way to drop all spaces that are before or after a string in Windows PowerShell? Use the Trim() method to remove all spaces before and after a string from the output, for example: $Something='...
  • Blog Post: Weekend Scripter: Manipulating Word and Excel with PowerShell

    Summary : Leverage the Office API to manipulate data in Word and Excel with Windows PowerShell. Honorary Scripting Guy, Sean Kearney, is here today to give Ed the day off. Why? Well, it's his birthday, of course! People worldwide have been sending Ed Happy Birthday wishes. His inbox almost went...
  • Blog Post: PowerTip: Use Windows PowerShell to Open Word Document

    Summary : Learn how to use Windows PowerShell to open a Microsoft Word document. How can I open a Word document with Windows PowerShell? Use the New-Object cmdlet: $Filename='C:\HappyBirthdayEd.docx' $Word=NEW-Object –comobject Word.Application $Document=$Word.documents.open...
  • Blog Post: Weekend Scripter: Exporting and Importing Photos in Active Directory

    Summary : Use Windows PowerShell to import and export photos in Active Directory. Honorary Scripting Guy, Sean Kearney, is here. I was playing about with Active Directory this week. I wanted to be able to get photos to automatically populate on my workstations running Windows 7. By doing some online...
  • Blog Post: PowerTip: Use PowerShell to Identify Users Without a Photo

    Summary : List all users who do not have a photo assigned in Active Directory. Is there a simple way that I can use Windows PowerShell to identify users who do not have a photo assigned in Active Directory? Target the ThumbnailPhoto property, and filter the users for Null : GET-ADUSER –filter...
  • Blog Post: Transforming the Active Directory Cmdlets: Part 5

    Summary : Learn how to translate between ADSI, Quest, and Windows PowerShell cmdlets for creating users. Hey, Scripting Guy! Today I'm translating a script for modifying user properties and I could really use some help. There are so many parameters to work with. Where do I start? —LC...
  • Blog Post: PowerTip: List All Parameters for a Cmdlet

    Summary : Learn to provide a parameter list for a cmdlet in a viewable table. I am trying to work with cmdlets with so many parameters that I am having a hard time reading them in Get-Help . Is there a way to list them in a single table? Access the Parameters property by using Get-Command and the...
  • Blog Post: Transforming the Active Directory Cmdlets: Part 4

    Summary : Learn how to translate between ADSI, Quest, and Windows PowerShell cmdlets to read additional user properties. Hey, Scripting Guy! I'm trying figure something out. I can get some properties with the Quest cmdlets without even asking, but when I go to use the Windows PowerShell cmdlets...
  • Blog Post: PowerTip: Identify All Properties for Active Directory User

    Summary : Use the –Properties parameter to find all properties attached to an Active Directory user. How can I use Windows PowerShell rather than digging through the ADSI editor to find the available properties for a user in our Active Directory? Leverage the –Properties parameter on...
  • Blog Post: Transforming the Active Directory Cmdlets: Part 3

    Summary : Learn how to translate between ADSI, Quest, and Windows PowerShell cmdlets for creating users. Hey, Scripting Guy! I downloaded a script from the Internet to remove users, but it's designed to use the newer Windows PowerShell cmdlets. My server environment doesn't have them available...
  • Blog Post: PowerTip: Use PowerShell to Determine ASCII Value

    Summary : Learn to use Windows PowerShell to determine the ASCII numeric value of a character. How can I use Windows PowerShell to tell the ASCII value of a character? You can get the numeric value of an ASCII character quite easily, for example, to get the value of the lowercase letter a , type...
  • Blog Post: Transforming the Active Directory Cmdlets: Part 2

    Summary : Learn how to transcribe between ADSI, Quest, and Windows PowerShell cmdlets for creating users. Hey, Scripting Guy! I used to use the Quest cmdlets to create new users, but I need to rewrite some of my scripts to work with a legacy environment that can't use the .NET Framework. Can...
  • Blog Post: PowerTip: Convert Plain Text to Secure String

    Summary : Learn to convert a plain text password to a secure string for cmdlet parameters. I'm trying to convert some scripts to work with the Active Directory modules, but they need a secure string for the password. How do I create one of these? Use the ConvertTo-SecureString cmdlet, capture...
  • Blog Post: Transforming the Active Directory Cmdlets: Part 1

    Summary : Learn how to translate between ADSI, Quest, and Windows PowerShell cmdlets for creating users in Active Directory. Hey, Scripting Guy! I've got some older scripts that create users by using the [ADSI] accelerator. Can you show me how they might be rewritten to work with the more modern...