Reading Time: < 1 minute Get-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 CommentCategory: IT Infrastructure
Reading Time: < 1 minute Original 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 minute Error: 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 minute I’ve re-created one of my servers and wanted to copy my old .bashrc file over to the new server. This can be accomplished using scp command. Here is how…. For simplicity let’s call the two servers: HostOld and HostNew; jacob…
Leave a CommentReading Time: < 1 minute Quick 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 CommentReading Time: 2 minutes I wanted to display external/public IP address whenever I open terminal, but also add an alias that will allow me to check my public IP from terminal. Here is how to do it. Add to your ~./bashrc following lines: For…
1 Comment