Browse by Tags

Related Posts
  • Blog Post: PowerTip: View PowerShell Console Host Information

    Summary : View Windows PowerShell console host information. How can I easily find information about the Windows PowerShell console host? Use the Get-Host cmdlet, and select the RawUI property from the InterhostUserInterface object: (get-host).ui.RawUI
  • Blog Post: Deciding How to Use PowerShell to Access AD DS

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about the decision points for deciding how to use Windows PowerShell to access Active Directory Domain Services. Hey, Scripting Guy! I am a bit confused. I see various blogs and scripts on the Script Repository, and some always use a third-party...
  • Blog Post: PowerTip: Find Case-Specific Strings by Using PowerShell

    Summary : Use Windows PowerShell to find case-specific strings. How can I find a particular, case-sensitive word in a string? Use Select-String and specify the –CaseSensitive switch: "Hey Scripting Guy","hey scripting guy" | Select-String -Pattern 'hey' -CaseSensitive
  • Blog Post: PowerTip: Use PowerShell to Rename Printers

    Summary : Learn how to use Windows PowerShell 3.0 in Windows 8 to rename a printer. How can I use Windows PowerShell 3.0 in Windows 8 to rename a printer? Use the Get-Printer function to retrieve the printer, and pipe it to the Rename-Printer function: Get-Printer -Name 'mynewlaser' | Rename...
  • Blog Post: Add User Principal Names in Active Directory via PowerShell

    Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to add user principal names to users in Active Directory. Hey, Scripting Guy! We are planning for our Active Directory migration, and as part of that, I am reviewing users. The problem is that I found out that whoever...
  • Blog Post: PowerTip: Use PowerShell to Write BitLocker Recovery Key to Text File

    Summary : Use Windows PowerShell to write your BitLocker recovery key to a text file. If I forgot to save my BitLocker recovery key when I enabled BitLocker on my laptop, how can I use Windows PowerShell to write it to a text file so I can copy it to a USB key for safe keeping? From an elevated...
  • Blog Post: Use PowerShell in Windows 8 to Remove Printers

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell 3.0 in Windows 8 to remove printers. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife and I have been talking to various people from the Charlotte Windows PowerShell User Group all week about doing another...
  • Blog Post: Weekend Scripter: Understanding PowerShell in Windows 8

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about understanding Windows PowerShell 3.0 in Windows 8. Microsoft Scripting Guy, Ed Wilson, is here. It is an exciting and great day! I have been working a bit to solidify the editorial calendar for the Hey, Scripting Guy! Blog. I can say that there...
  • Blog Post: PowerTip: Find PowerShell Logging Info

    Summary : Use a Windows PowerShell cmdlet to retrieve logged information about Windows PowerShell. How can I easily find logged information about Windows PowerShell? Use the Get-WinEvent cmdlet and look for a LogName with powershell in the name: Get-WinEvent -LogName *powershell*
  • Blog Post: PowerTip: Use PowerShell to Display Replications in AD DS

    Summary : Use Windows PowerShell to display replication connections in Active Directory Domain Services. How can I use a cmdlet from the Active Directory module to display replication connections in AD DS? Use the Get-ADReplicationConnection cmdlet and select the ReplicateFromDirectoryServer property...
  • Blog Post: PowerTip: Customize How PowerShell Displays a Date

    Summary : Easily customize the way Windows PowerShell displays a date. How can I use Windows PowerShell to easily display the date as day-dash-month-dash-four-digit year? Use the Get-Date cmdlet,specify a custom format by using the Format parameter, and use dd for the date, M for the month and...
  • Blog Post: Use PowerShell to Customize Server Manager

    Summary : Guest blogger, Rolf Masuch, talks about using Windows PowerShell to customize Server Manager. Microsoft Scripting Guy, Ed Wilson, is here. Today we have a guest post written by Rolf Masuch, who is a senior consultant for Microsoft in Germany. Today is Rolf’s birthday, and he wanted...
  • Blog Post: Install Printer Drivers with PowerShell in Windows 8

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell in Windows 8 to install printer drivers. Microsoft Scripting Guy, Ed Wilson, is here. This morning, it is rainy and overcast here in Charlotte, North Carolina, but it is pleasantly cool. The Scripting Wife migrated...
  • Blog Post: Use PowerShell to Log Changes to AD DS Attributes

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to log changes made to Active Directory Domain Services attribute values. Hey, Scripting Guy! We are in the process of merging a couple of resource domains, and we need to modify some user accounts prior to the move...
  • Blog Post: PowerShell Workflow for Mere Mortals: Part 5

    Summary : Microsoft Scripting Guy, Ed Wilson, concludes his five-part series about Windows PowerShell Workflow. Hey, Scripting Guy! I have a number of commands that I want to run against several remote servers. The commands include stuff that must happen prior to something else happening. But then...
  • Blog Post: PowerTip: Use PowerShell to Get Printer Configuration

    Summary : Use Windows PowerShell in Windows 8 to find your printer configurations. How can I use Windows PowerShell in Windows 8 to get the printer configuration of all printers? Use the Get-Printer function, and pipe it to Foreach-Object and the Get-PrinterConfiguration cmdlet: Get-Printer...