Browse by Tags

Tagged Content List
  • Blog Post: PowerTip: Use a PowerShell 3.0 Switch to Find Only Directories

    Summary : Use a switch in Windows PowerShell 3.0 to easily find only directories. How can I use Windows PowerShell 3.0 to find a list of only directories from my current location? Use the –Directory switch with the Get-ChildItem cmdlet. Get-ChildItem -Directory Note The –Directory...
  • Blog Post: PowerTip: Use PowerShell to Check the Status of Event Logs

    Summary : Use Windows PowerShell to check the status of Windows event logs. How can I easily check sizes, the number of entries, and the overflow action of all traditional event logs on my Windows system? Use the Get-EventLog cmdlet with the –list switch: Get-EventLog -List
  • Blog Post: PowerTip: Find Files Modified During a Date Range by Using PowerShell

    Summary : Use Windows PowerShell to find files that were modified during a specific date range. How can I use Windows PowerShell to find all files modified during a specific date range? Use the Get-ChildItem cmdlet to collect the files, filter it to the Where-Object cmdlet, specify the date for...
  • Blog Post: PowerTip: Use PowerShell to Find IP Config of Adapter

    Summary : Use Windows PowerShell 3.0 in Windows 8 to find the IP configuration of a specifically named IP adapter. How can I use Windows PowerShell 3.0 in Windows 8 to easily find the IP address configuration of a network adapter named External Ethernet Apapter ? Use a wildcard character with the...
  • Blog Post: PowerTip: Find Information about Network Adapters with PowerShell

    Summary : Use Windows PowerShell in Windows 8 to find information about network adapters. In Windows 8, how can I find information about network adapters? Use the Get-NetAdapter function: Get-NetAdapter
  • Blog Post: PowerTip: Use PowerShell to Add Drive to Virtual Machine

    Summary : Use Windows PowerShell to add a new hard disk drive to a virtual machine on Hyper-V. How can I to add another hard drive to my virtual machine? Use the Add-VMHardDiskDrive cmdlet with the following command: STOP-VM -vmname "My Virtual Machine" NEW-VHD -Dynamic C:\VHD\MyDrive.vhdx...
  • Blog Post: PowerTip: Use PowerShell to Find All AD DS Users

    Summary : Use a Windows PowerShell cmdlet from the RSAT to find all users in Active Directory Domain Services. How can I easily find all users in Active Directory Domain Services (AD DS)? Use the asterisk wildcard character with the Get-ADUser cmdlet from the RSAT. Get-ADUser -Filter *
  • Blog Post: PowerTip: Use PowerShell 3.0 CIM Class to Find Logical Disk Info

    Summary : Use the Windows PowerShell 3.0 CIM classes to easily find detailed information about logical disks. How can I use the Windows PowerShell 3.0 CIM classes to easily find detailed information about logical disks? Use the Get-CimInstance cmdlet to retrieve only the keys from the Win32_LogicalDisk...
  • Blog Post: PowerTip: Use PowerShell to Display User Rights to File Volume

    Summary : Use Windows PowerShell to display user rights to a file volume. How can I use Windows PowerShell to display access to an NTFS volume? Use the Get-Acl cmdlet and expand the Access property: Get-Acl | select -ExpandProperty access
  • Blog Post: PowerTip: Use PowerShell to Create Future Dates

    Summary : Use Windows PowerShell to create a date in the future. How can I easily create dates in the future? Use the Get-Date cmdlet and add days to it: (Get-Date).adddays(2)
  • Blog Post: PowerTip: Use PowerShell to Create a Computer Restore Point

    Summary : Learn how to use Windows PowerShell to create a computer restore point. How can I use Windows PowerShell to create a computer restore point? Use the Checkpoint-Computer cmdlet and specify a description for the restore point. Checkpoint-Computer –description “Everything...
  • Blog Post: PowerTip: Use PowerShell to Find Computer Restore Points

    Summary : Use Windows PowerShell to list all computer restore points on your system. How can I use Windows PowerShell to list computer restore points on my system? Use the Get-ComputerRestorePoint cmdlet: Get-ComputerRestorePoint Note This command must be run with Admin rights.
  • Blog Post: PowerTip: Create a New VHD with Windows PowerShell

    Summary : Use Windows PowerShell to create a new virtual hard disk to use with Hyper-V. How can I create a new virtual hard disk in Hyper-V? Use the New-VHD cmdlet. This will create a 60 GB dynamic disk VHDX file under C:\VHD\ called Mydrive.vhdx: NEW-VHD -Dynamic C:\VHD\MyDrive.vhdx -SizeBytes...
  • Blog Post: PowerTip: Use PowerShell to Rename a Virtual Machine

    Summary : Use Windows PowerShell to rename a virtual machine on Hyper-V. How can I easily rename a virtual machine running on Hyper-V? Use the Rename-VM cmdlet: RENAME-VM -Name "My Old VM Name" -newname "Cool New VM Name"
  • Blog Post: PowerTip: Use PowerShell to Add Processors to Virtual Machine

    Summary : Use Windows PowerShell to add processors to a virtual machine running on Hyper-V. How can I easily add processors to my virtual machine? Use the Set-VMProcessor cmdlet: SET-VMProcessor -VMname "My Virtual Machine" -count 2 This enables the virtual machine called "My Virtual Machine...
  • Blog Post: PowerTip: Use PowerShell to Add Adapter to a Virtual Machine

    Summary : Use Windows PowerShell to add a network adapter to a virtual machine. How do I add a network adapter to my virtual machine on Hyper-V? Use the ADD-VMNetworkAdapter cmdlet: ADD-VMNetworkAdapter -vmname "My Virtual Machine" -switchname "ProdVlan" Remember, you can always get a list...
  • Blog Post: PowerTip: Use PowerShell to Check Virtual Machine Boot Order

    Summary : Use Windows PowerShell to check the boot order on a virtual machine. How do I check the boot order on a virtual machine running on Hyper-V? Use the Get-VMBios cmdlet and check the StartupOrder property. Get-VMBios -vmname "Virtual Machine Name" | Select-object -expandproperty StartupOrder...
  • Blog Post: PowerTip: Determine PowerShell Version

    Summary : Easily determine the version of Windows PowerShell that is installed. How can I determine what version of Windows PowerShell is installed on my computer? Use the $psversiontable automatic variable, which is available in Windows PowerShell 2.0 and Windows PowerShell 3.0. (If nothing comes...
  • Blog Post: PowerTip: Use PowerShell to Find Current Time Zone

    Summary : Use Windows PowerShell to find the current time zone information. How can I use Windows PowerShell to find my current time zone? Use the System.TimeZone .Net Framework class with the static CurrentTimeZone property: PS C:\> [System.TimeZone]::CurrentTimeZone StandardName DaylightName...
  • Blog Post: PowerTip: Use PowerShell to List Hyper-V Switches

    Summary : Use Windows PowerShell to list all switches on a Hyper-V server. How do I get a list of all switches on my Hyper-V box? Use the Get-VMSwitch cmdlet, which will list all Hyper-V network names on a host (including their switch type, whether they be External, Internal, or Private): GET...
  • Blog Post: PowerTip: Find Services with the Same Dependencies with PowerShell

    Summary : Use Windows PowerShell to find services that have the same dependencies. How can I use Windows PowerShell to easily find services that have the same dependencies? Use the Get-Service cmdlet with the RequiredServices parameter, and supply the name of the dependent service. (The following...
  • Blog Post: PowerTip: Identify the Network Adapter Connection Profile

    Summary : Use Windows PowerShell to identify the network adapter connection profile in Windows 8. How can I use Windows PowerShell 3.0 in Windows 8 to identify the network connection profile for my network adapter? Use the Get-NetAdapter cmdlet and pipe the results to the Get-NetConnnectionProfile...
  • Blog Post: PowerTip: Use PowerShell to Eject DVDs from Group of Virtual Machines

    Summary : Use Windows PowerShell to eject the DVDs from a group of virtual machines. How can I eject any mounted DVDs from a group of virtual machines that are running Hyper-V in Windows Server 2012? Use the Set-VMDvdDrive cmdlet and set the path to $null : $name = "Client1","Server1","Server2...
  • Blog Post: PowerTip: Use PowerShell to Find Disabled User Accounts

    Summary : Use Windows PowerShell to easily find disabled user accounts in Active Directory. How can I use Windows PowerShell to find disabled user accounts in Active Directory? Use the Search-ADAccount cmdlet from the Active Directory module: Search-ADAccount -AccountDisabled
  • Blog Post: PowerTip: Use PowerShell to Put Virtual Machine in Saved State

    Summary : Use Windows PowerShell to put a virtual machine into a saved state. How do I put a virtual machine into a saved state? Use the Save-VM cmdlet with the name of the virtual machine in Hyper-V: Save-VM 'Contoso-FPS' Or you can place all virtual machines on a Hyper-V server into saved...
Page 1 of 13 (307 items) 12345»