Category: Commands

Useful Server 2016 (Core) Commands

Basic At boot, a cmd.exe window will open, type powershell and hit enter. You should now see a ‘PS’ before the path To return to cmd simply type cmd and hit enter. This will drop you back into cmd, and you will not see the ‘PS’ before the path Logoff logoff Restart restart-computer Shutdown stop-computer…


HowTo: Remove a dead DC from the domain

**Warning** ntdsutil is a powerful and unforgiving tool. Be sure you know exactly what operations it will be performing before you proceed. You will also want to confirm that the DC you’re removing no longer holds any FSMO roles before proceeding. Overview This guide will show you how to manually remove a Domain Controller (DC) that…


Commands: Sudo!!

If you’re like me, you often forget to type sudo before a command that requires admin privileges and you probably see a lot of messages like this: Simply type sudo!! to add the sudo command to the beginning of your last command


HowTo: Set up an Ubuntu workstation on an ESXi server

Overview This guide will show you how to install a Ubuntu workstation on ESXi, and connect to it via RDP. Initial Setup Download ISO http://www.ubuntu.com/download/desktop Build VM w/16GB & 100GB drives, 2 vCPUs and 4GBs of RAM Attach ISO, boot, install Ubuntu (installation guide) VMware tools installation Initiate the VMware tools installation through vsphere client Extract the…


HowTo: Log On To Office 365 Using PowerShell

Overview Run this PowerShell script to log on to Office 365 Exchange Management Shell and MSOL. When run, the script will prompt you to enter your Office 365 credentials, then connect to both services. Prerequisites Download and install Microsoft Online Services Sign-In Assistant for IT Professionals BETA http://www.microsoft.com/en-us/download/details.aspx?id=39267 Download and install Windows Azure Active Directory…


QuickStart: System File Checker tool for Windows

Overview The System File Checker tool (SFC) calculates a hash for each Windows system file, and compares it with the hash from the original system file. An un-modified version of all system files are kept in the Winsxs folder in Windows Vista and later. In Windows XP and earlier, you must use an OS CD…


QuickStart: Port scanning with nmap

Disclaimer: Port scanning anything other than your own machines on your own LAN can be considered illegal and a precursor to attack. I do not condone port scanning anything other than your own PCs, or any type of illegal activity. Overview Port scanning is a way to discover open ports on a machine. This can…


HowTo: install an rpm package in Ubuntu

  Overview Packages in Linux are pre-compiled binaries that can be used to easily install software. Debian and Debian derivative (Ubuntu, Mint) distributions use .deb packages. Redhat and Redhat derivative (Fedora, CentOS) distributions use .rpm packages. Sometimes you need to install a package in Ubuntu, but an rpm package is all that is available. You…


QuickStart: VIM (Vi)

VIM (Vi IMproved) is installed by default, in one way or another, on most every flavor of UNIX and Linux. This is one of its best features. If you take a minute to learn it, you will be able to quickly edit text files from the command line on any *NIX box you come across….