Browse by Tags

Tagged Content List
  • Blog Post: PowerTip: Create an XML Representation of a Registry Key with PowerShell

    Summary : Use Windows PowerShell to create an XML representation of a registry key. How can I easily create an XML representation of a registry key by using Windows PowerShell? Use the Get-ChildItem cmdllet and the registry provider to get the registry key, and pipe the results to the Export-CliXML...
  • Blog Post: PowerTip: Toggle Outline View in the Windows PowerShell ISE

    Summary : Toggle the Outline view in the Windows PowerShell ISE. How can I easily toggle the Outline view in the Windows PowerShell ISE? Use the ToggleOutlineExpansion method from the editor object of the CurrentFile object from $psise : $psise.CurrentFile.Editor.ToggleOutliningExpansion()
  • Blog Post: PowerTip: Find the Path to a PowerShell Module

    Summary : Easily find the path to a Windows PowerShell module. How can I easily find the path to a Windows PowerShell module? Use the Get-Module cmdlet and a wildcard character for the name, and select the Path property. The following script finds the PowerShellISEModule (an optional module in...
  • Blog Post: PowerTip: Use PowerShell to Get Virtual Machine Start Mode

    Summary : Sean Kearney shows how to determine virtual machine start mode by using Windows PowerShell. How can I tell which virtual machines will start automatically? Use the Get-VM cmdlet, and check the AutomaticStartAction property: Get-VM | Format-Table Name,AutomaticStartAction -autosize
  • Blog Post: Scripting Wife Comments on Beginner Event 4

    Summary : The Scripting Wife reveals her impressions of 2013 Scripting Games Beginner Event 4. When I first read this, I thought, “Dude, this is going to take an entire script.” But as I began to read the Help information for the Get-Random cmdlet, it dawned on me that I could do this...
  • Blog Post: PowerTip: Find All Required Assemblies for PowerShell Modules

    Summary : Find required assemblies for your Windows PowerShell modules. How can I use Windows PowerShell to show required assemblies for my Windows PowerShell modules? Use the ExpandProperty parameter of Select-Object and choose the RequiredAssemblies property from the Get-Module cmdlet after you...
  • Blog Post: PowerTip: Use PowerShell to Show Screensaver Info for Logged-on User

    Summary : Use Windows PowerShell to show screensaver info for a user who is logged on. How can I easily use Windows PowerShell to show screensaver information for the currently logged-on interactive user? Use WMI to query the Win32_Desktop class, and filter on the logged-on user’s name: ...
  • Blog Post: PowerTip: Use Set-Variable to Create a ReadOnly PowerShell Variable

    Summary : Use the Set-Variable cmdlet to create a ReadOnly Windows PowerShell variable. How can I create a ReadOnly variable in Windows PowerShell? Use the Set-Variable cmdlet to create a ReadOnly variable, and specify ReadOnly for the Option parameter, and you can specify a description for the...
  • Blog Post: PowerTip: Use PowerShell to List Top-Level WMI Namespaces

    Summary : Use Windows PowerShell to list top-level WMI namespaces. How can I use Windows PowerShell to list the top-level WMI namespaces? Use the Get-WmiObject cmdlet or the Get-CImInstance cmdlet and query for __NameSpace : Windows PowerShell 2.0 syntax: Get-WmiObject __NameSpace | select...
  • Blog Post: PowerTip: Use PowerShell to Find Changed Directories

    Summary : Use Windows PowerShell to identify directories that changed since a specific date. How can I use Windows PowerShell to find directories that have changed since a specific date? Use the Get-ChildItem cmdlet and specify only directories. Pipe the results to Where-Object and evaluate the...
  • Blog Post: PowerTip: Use PowerShell to Find Running Virtual Machines

    Summary : Sean Kearney explains how to use Windows PowerShell to find running virtual machines. How can I find a list of virtual machines on my computer that is running Windows Server 2012 with Hyper-V? Use the Get-VM cmdlet and filter on the State property: Get-VM | Where { $_.State -eq 'Running...
  • Blog Post: PowerTip: Use PowerShell to Display Video Configuration

    Summary : Use Windows PowerShell to display the current video configuration on your computer. How can I use Windows PowerShell to display the current video configuration for my computer? Use WMI to query the Win32_VideoController class. Select the Name , CurrentHorizontalResolution , and CurrentVerticalResolution...
  • Blog Post: PowerTip: Use PowerShell to Find Security Hotfixes

    Summary : Use Windows PowerShell to quickly find all installed security hotfixes. How can I use Windows PowerShell to identify installed security hotfixes? Use the Get-Hotfix cmdlet and use a wildcard pattern for the description parameter: Get-HotFix -Description *security*
  • Blog Post: PowerTip: Use PowerShell to Find Status of Optional Features in Windows

    Summary : Use Windows PowerShell 3.0 in Windows 8 to identify the status of optional features in Windows. How can I use Windows PowerShell 3.0 in Windows 8 to identify the status of optional features in Windows? Use the Get-WindowsOptionalFeature cmdlet from the DISM module and s ort by S tate...
  • Blog Post: PowerTip: Use PowerShell to Troubleshoot PowerShell

    Summary : Use Windows PowerShell to troubleshoot errors with Windows PowerShell. How can I use Windows PowerShell to troubleshoot issues with Windows PowerShell? Use the Get-WinEvent cmdlet to parse the Windows PowerShell log. For example, to find all errors in a Windows PowerShell log: In Windows...
  • Blog Post: PowerTip: Use PowerShell to Find Network Adapter Power State

    Summary : Use Windows PowerShell to find network adapter power states. How can I use Windows PowerShell 3.0 in Windows 8 to identify network adapter power states? Use the Get-NetAdapterPowerManagement function.
  • Blog Post: PowerTip: Use PowerShell to Find Reserved System Volumes

    Summary : Use Windows PowerShell 3.0 in Windows 8 to find information about the system reserved volume. How can I use Windows PowerShell 3.0 in Windows 8 to return information about my system reserved volume? Use the Get-Volume function and specify the FileSystemLabel of “System Reserved”...
  • Blog Post: PowerTip: Use PowerShell to Show Remaining Battery Time

    Summary : Use Windows PowerShell to show the percentage of remaining battery time. How can I use Windows PowerShell to show the percentage of remaining battery time on my laptop or on my Windows Surface? Use the Get-WmiObject cmdlet and query the Win32_Battery WMI class: (Get-WmiObject win32_battery...
  • Blog Post: PowerTip: Use PowerShell to Check DHCP Status

    Summary : Use Windows PowerShell to check on DHCP status. How can I use Windows PowerShell to check on my DHCP status? Use the Get-Service cmdlet and search for services that have DHCP in the name. You can do this remotely if the firewall has exceptions and if you have rights. PS C:\> gsv...
  • Blog Post: PowerTip: Find Printer Configuration in Windows 8

    Summary : Use Windows PowerShell 3.0 in Windows to easily find printer configuration settings. How can I use Windows PowerShell to easily find printer configuration settings on my Windows 8 computer? Use the Get-Printer function to retrieve all printer objects, and pipe the results to the Get-PrintConfiguration...
  • Blog Post: PowerTip: Use PowerShell to Find Total CPU Time

    Summary : Use Windows PowerShell to find the total CPU time of a process. How can I return a timespan that represents the total CPU time of a process? Use the Get-Process cmdlet and select the TotalProcessorTime property: PS C:\> (gps excel).totalprocessortime Days : 0 Hours : 0...
  • Blog Post: PowerTip: Add Two PowerShell Arrays Together

    Summary : Easily add two Windows PowerShell arrays together. If I have an array stored in one variable, and another array stored in another variable, how can I add them together? Use the + operator to add to arrays together: PS C:\> $a = 2,3,4 PS C:\> $b = 5,6,7 PS C:\> $c = ...
  • Blog Post: PowerTip: Use PowerShell to Display the Desktop

    Summary : Use Windows PowerShell to change the display to the Desktop. How can I use Windows PowerShell to switch to displaying the Desktop on my computer? Use the ToggleDesktop method from the Shell.Application COM object: (New-Object -ComObject shell.application).toggleDesktop()
  • Blog Post: PowerTip: Use PowerShell to Find Virtual Machine DVD Info

    Summary : Use Windows PowerShell to find Hyper-V DVD information in Windows 8 or Windows Server 2012. How can I use Windows PowerShell in Windows 8 or Windows Server 2012 to find Hyper-V virtual machine DVD disk information? Use the Get-VM cmdlet and pipe the output to the Get-VMDvdDrive cmdlet...
  • Blog Post: PowerTip: Use PowerShell to Find WMI Classes Related to Disks

    Summary : Use Windows PowerShell 3.0 to help find WMI classes related to disks. How can I find WMI classes that will return information about disks on my local computer? Use the Get-CimClass cmdlet in Windows PowerShell 3.0. Use a wildcard character for the class name, and use the QualifierName...
Page 1 of 12 (281 items) 12345»