Category: Microsoft Windows Server 2003

Microsoft Windows PowerShell – View Reboot and Uptime

The Microsoft Windows PowerShell script below will query a Windows hosts for the time it was rebooted and the time it completed it’s reboot. <#.SYNOPSISThis script will request the hostname of a server then provide the time it was shutdown and completed it’s reboot..DESCRIPTIONThis script will request the hostname of a server then provide the…


Microsoft Windows PowerShell – Get Host Architecture

You may use the following Microsoft Windows PowerShell script below to get the architecture, physical or virtual, of a Windows host on a network. <#.SYNOPSISThis script will provide the architure (physical of virtual) of a host..DESCRIPTIONThis script will provide the architure (physical of virtual) of a host..EXAMPLEsysteminfo /s $HOSTNAME | findstr /c:”Model:” /c:”Host Name”.AUTHORWritten by…


Telnet – Testing Network Ports

You may use the command below, in the Windows command prompt or Windows PowerShell, to verify network ports are open on a specific host in your network. The example below is verifying that port Transmission Control Protocol (TCP) port 80 is open on Internet Protocol (IP) address 192.168.1.1. Syntax: telnet <<<HOST>>> <<<PORT>>> Example: telnet 192.168.1.1…


Distributed File System – Namespace Server Removal

The following is a step by step guide to removing a Distributed File System (DFS) namespace server for a Microsoft Active Directory (AD) integrated DFS namespace. Export the DFS namespace configuration with the following command: dfsutil /root:\\domain.com\namespace /export:namespace.txt /verbose In the DFS Management console right click and delete HOSTNAME under the Namespace Servers tab for the Microsoft…


Microsoft Windows Server 2012 R2 – Dynamic Host Configuration Protocol (DHCP) Export and Import

You may use the following commands to export and import a Dynamic Host Configuration Protocol (DHCP) configuration for a server utilizing Microsoft Windows Server 2012 R2. netsh dhcp server dump > dhcpconfig.dmp netsh exec dhcpconfig.dmp Enjoy!  


Microsoft Windows Server 2012 R2 – Map a Network Drive

You may use the following command to map a network drive using the Microsoft Command Prompt or Microsoft Windows PowerShell. Additionally, replace the <HOSTNAME> and <SHARE> variables with the appropriate server and share name. NET USE Z: \\<HOSTNAME>\<SHARE> Enjoy!


Microsoft Windows Server 2008 R2 – Extend a Partition

You may use the following commands to extend a partition in Windows Server 2008 R2. Open a command prompt diskpart list volume select volume (volume ID) extend (size) (if no size specified, it’s expanded to the maximum)


Microsoft Group Policy Object – Disable Default Domain Policy Password Policy

You may use the following method to disable the Password Policy settings in the Default Domain Policy. I do not recommend this for a production network, which should use a password policy, but it may be used in a home lab. GPO Path: Computer Configuration/Policies/Windows Settings/Security Settings/Account Policies/Password Policy GPO Settings: Enforce Password History/0 GPO Settings:…


Microsoft Windows PowerShell – Server Uptime Script

You may use the following Microsoft Windows PowerShell (.ps1) script to create an HTML file daily that provides an uptime report for the servers in your Information Technology (IT) infrastructure.   =====START===== <###################################################################### # Author : Bhavik Solanki  # Date : 28th March 2012  # Version : 1.0 # Desctiption : This script will help…


Microsoft Windows 7 – Modifying Profiles for Shortcuts, Folders or Files

You may use the following method, in Microsoft Windows 7, to modify the default profile and create changes in every users profile. For instance, you may add a particular shortcut, folder or file to the desktop of every single user. In Windows 7 navigate to: C:\Users\Default\Desktop Once you are in this directory you may place…