Reading Time: < 1 minuteGet-NetAdapter and find index of the adapter you want to use, you can also pull more details Get-NetAdapter * | Sort InterfaceDescription | Format-Table -Property Name, InterfaceDescription, MacAddress, Status, ifIndex $adapter = Get-NetAdapter -InterfaceIndex 17 $name = “name of the…
Leave a CommentTag: PowerShell
Reading Time: < 1 minuteOriginal script found on https://tommymaynard.com/cmdlets-of-the-same-name-vmware-hyper-v/ Had to modify it to make it work, because Add-PSSnapin no longer works with VMWare Usage: Add-VMCs V will switch to using VMware CMDlets and Add-VMCs H will switch to Hyper-V cmdlets
Leave a CommentReading Time: < 1 minuteError: One morning my desktop PC came up with a following error while trying to access VMs on two remote Hyper-V servers: “Hyper-V encountered an error trying to access an object on computer ‘hostname’ because the object was not found.…
Leave a CommentReading Time: < 1 minuteQuick and dirty PowerShell script to search DHCP servers and scopes for computer details like: IP address, hostname, DHCP address state and DHCP scope computer is is. It uses MAC address of the network card to do the search. Script…
Leave a Comment