Category: Scripting

VMware ESXi 6.7 – View the ARP Table

Recently, I needed to select the Internet Protocol (IP) addresses for various VMkernel adapters. In selecting IP addresses you must be certain that the IP address is not already in use to avoid an IP address conflict. One way to determine this is to ping the IP address in question. However, what do you do…

Microsoft Windows Command Prompt – Configure Network Settings

You may use the following commands from the Windows command prompt to configure the IP address and DNS server of a server running Microsoft Windows Server 2016 Standard. You will need to modify the name of the network interface card, IP address, subnet mask, default gateway, and DNS server. netshinterface ip set address name=”ethernet” static…

Integrated Dell Remote Access Controller 8 – Get IP Address

Have you ever connected to a remote server but didn’t know what it’s Integrated Dell Remote Access Controller 8 (iDRAC8) Internet Protocol (IP) address was? Well, you may use the following command to get the IP address of an iDRAC8. racadm getniccfg Additionally, more information may be found here.

Microsoft Active Directory – Add-Computer Cmdlet

You may use the following Windows PowerShell cmdlet to add a host to a Microsoft Active Directory domain with a specific domain controller. You will need to substitute the DOMAIN parameter with the actual domain name. Add-Computer -DomainName DOMAIN -Server DOMAIN\DC01

Microsoft Active Directory – Trust Relationship Failure with Primary Domain

If you’ve worked with Microsoft Active Directory, then it’s very likely you’ve seen the following error message while trying to login to a server or workstation using domain credentials: “The trust relationship between this workstation and the primary domain failed.” Typically, this is resolved by removing the server or workstation from the domain then rejoining…

Amazon Web Services – Verify AWS CLI Installation

You may use the following link to receive instructions on installing the AWS CLI. Additionally, to verify the installation, navigate to C:\Program Files\Amazon\AWSCLI for x64 operating systems and C:\Program Files (x86)\Amazon\AWSCLI for x86 operating systems. Lastly, you may verify the version of the AWS CLI using the aws –version command from a Windows Command Prompt…

Microsoft Windows Server 2016 – Delete Recycle Bin Items

You may use the command below from the Microsoft Windows command prompt to delete the objects in the recycle bin for all users on Microsoft Windows Server 2016. rd /s /q c:\$Recycle.Bin

Amazon Web Services – Bootstrapping – Apache Installation

You may use the following commands to configure an Amazon EC2 instance to install and start the Apache web server upon boot. The commands should be placed in the Advanced Details dialog box during during the provisioning process of an EC2 instance. #!/bin/bashsudo su –yum install -y httpdsystemctl start httpd

Microsoft Windows PowerShell – Get DHCP IPv4 Scope Details

The Windows PowerShell cmdlet below will query a remote Dynamic Host Configuration Protocol (DHCP) server and provide the lease duration of each IPv4 scope. Get-DhcpServerv4Scope -ComputerName HOSTNAME | Select ScopeID, LeaseDuration

Microsoft Active Directory – Computer Object Password

You may use the following Windows PowerShell cmdlets to view the last time an Active Directory (AD) computer object reset it’s password for all of the computer objects in an AD domain or an individual computer object in an AD domain. Get-ADComputer -Filter * -Properties PasswordLastSet | Select Name, PasswordLastSet | Sort-Object Name, PasswordLastSet |…