Browse by Tags

Related Posts
  • Blog Post: PowerTip: Use PowerShell to Display Date, Time, and Hour

    Summary : Use Windows PowerShell to display date, time, and hour in 24-hour format. How can I use Windows PowerShell to get the hour of the day in 24-hour format? Use the Get-Date cmdlet and specify the “%H” pattern to the UFormat parameter ( H is case sensitive): get-date -UFormat...
  • Blog Post: PowerTip: Use PowerShell to Display Help for Module Cmdlets

    Summary : Use Windows PowerShell to display all Help for all cmdlets in a module. How can I see all of the Help examples for cmdlets from a specific module? After you have updated your Help in Windows PowerShell 3.0, use the Get-Command cmdlet to retrieve all cmdlets from a specific module, pipe...
  • Blog Post: PowerTip: Use PowerShell to Verify Secure Boot Policy

    Summary : Use Windows PowerShell to verify your Secure Boot policy in Windows 8. How can I verify that the Secure Boot policy is enabled in my computers running Windows 8? Use the Get-SecureBootPolicy cmdlet: Get-SecureBootPolicy
  • Blog Post: PowerTip: Use PowerShell to Get DHCP Server Database Info

    Summary : Learn how to use Windows PowerShell to get the DHCP Server database information. How can I use Windows PowerShell to get the database information for a DHCP server if I do not know the name of the server? Use the ServerName property from the object returned by Get-DHCPServer to get the...
  • Blog Post: PowerTip: Use PowerShell to Show Approved Verbs Group

    Summary : Use Windows PowerShell to show the group of approved Windows PowerShell verbs. How can I find the grouping information for a couple of approved verbs that I want to use to name my advanced functions? Use the Get-Verb function, and supply an array of verbs to the function: get-verb...
  • Blog Post: PowerTip: Use PowerShell to See Network Adapters Bound to TCP/IP

    Summary : Use Windows PowerShell 3.0 in Windows 8 to see network adapters that are bound to TCP/IP. How can I find all network adapters that are bound to TCP/IPv4 by using Windows PowerShell 3.0 in Windows 8? Use the Get-NetAdapterBinding function, pipe the results to a Where-Object cmdlet, and...
  • Blog Post: PowerTip: Use PowerShell to Display Locale-Specific Date

    Summary : Learn how to use Windows PowerShell to display the date in locale-specific format. How can I use Windows PowerShell to display the day, month, and two-digit year in locale specific format? Use the Get-Date cmdlet and the –uformat parameter: get-date -UFormat %x
  • Blog Post: PowerTip: Use PowerShell to Get BitLocker Recovery Key

    Use Windows PowerShell to get the BitLocker recovery key. ...( read more )
  • Blog Post: PowerTip: Use PowerShell to Get DHCP Stats

    Summary : Learn how to use Windows PowerShell 3.0 in Windows Server 2012 to get DHCP statistics. How can I get an overview from my DHCP server running on Windows Server 2012? Use the Get-DHCPServerv4Statistics function: Get-DhcpServerv4Statistics -ComputerName DHCP1
  • Blog Post: PowerTip: Display All PowerShell Modules and Cmdlets

    Summary : Learn how to display all Windows PowerShell modules and cmdlet names. How can I get output that shows Windows PowerShell module names and the cmdlets or functions that are contained inside the modules? Use the Get-Module cmdlet, and then for each module, display the name and use Get-Command...
  • Blog Post: PowerTip: Change PowerShell Script Execution Policy

    Summary : Learn how a user can change the Windows PowerShell script execution policy. How can I change the Windows PowerShell script execution policy as simply an ordinary user? Use the –Scope parameter with the Set-ExecutionPolicy cmdlet and specify CurrentUser (the –Force parameter...
  • Blog Post: PowerTip: Use PowerShell to Report Network Adapter Binding

    Summary : Use Windows PowerShell 3.0 in Windows 8 to view network adapter binding information. How can I use Windows PowerShell 3.0 in Windows 8 to review network adapter binding information? Use the Get-NetAdapterBinding function and pipe the resulting information to the Format-List cmdlet: ...
  • 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: 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: 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: 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: 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...