A little something about everything

internet marketing and website development made simple..

Step by Step static network setup for CentOS 7.x on Microsoft Hyper-V Server using Linux Integration Services Version 4.0.11

Create new VHD with a standard Network Adapter

Download CentOS-7-x86_64-Minimal-1503-01.iso (insert disk & install)

Download lis4-0-11.iso (insert disk)

mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp -rp /mnt/cdrom /opt/linux_ic4011
umount /mnt/cdrom
cd /opt/linux_ic4011/RHEL71

Once the install is done, reboot the VPS

Update your network settings via vi

vi /etc/sysconfig/network-scripts/ifcfg-eth0

use "i" to insert text, (esc) to exit and ":wq" to write your changes.

It should look something like this:

HWADDR=(MAC ADDRESS, This should match what is configured in Hyper-V)

If your system is still not online for static IP do this:

 ifconfig eth0 (IP) netmask (MASK) up

 service network restart

How to setup Active Directory on Windows Server 2012

Installing Active Directory as a domain controller:

Install Windows Server 2012

Computer management >  update server administrator

Server manager > Local Server > update server name

Server Manager > Manage > Add Roles and Features > Next > Next > Next > 

 Select: Active Directory Domain Services and DNS Server

  Accept each with "Add Features"

 Next > Next > Next > Next > Install

Now, Promote this server to a domain controller

 add a new forest, {enter domain} > Next

  Leave defaults and enter a DSRM password(Store this in a safe place)


  Select Credentials to Delegate (enter your user/pass)

 Next > Next > Next > Next > Install

Active Directory on Windows Server 2012 is complete.

Enable / Disable IE ESC Internet Explorer Enhanced Security Configuration and Display Content was blocked Dialog

You can enable or disable IE IEC by using the following steps:

  • Open Server Manager
  • Click Configure IE ESC under the Security Information Section
  • Enable or disable IE IEC


Have IE IEC Enabled and accedently clicked off the "Display enhanced security configuration dialog" check box?

  • Click Start, type in "regedit" and hit enter.
  • Go to "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\LowRegistry\DontShowMeThisDialogAgain"
  • Edit "DisplayTrustAlertDlg" to be "1"


Huge Hiberfil.sys, Lots of Ram, Missing Space, Full Drive - Disable All Hibernate Functions

Lots of Ram in your system but main HDD is using excessive amount of space, Huge Hiberfil.sys, Full SSD / C: Drive

All of these can be caused by the Windows Hibernate feature, you can easily disable this feature and remove the hiberfil.sys file that windows creates by executing the following command from a command line, be sure to use the "run as administrator" option when opening the command prompt.

Problem solved

How to copy/backup files from your computer to a server on the network using xcopy, task scheduler and a .bat file

Create a backup .bat file and copy the red text below into the file, edit as needed.

@echo off
set SPACER=echo ----------------------------------- (No useful function, This line just sets the spacer in the output, anywhere in the file that you place %SPACER%, it will palce the -----------------------)
echo Do not close, Backing up files (echo tells the batch file to just print out[echo] a line, it has no real action other than to show a line of text to the user)
%SPACER% (--------------------------)
echo Running xcopy, to backup files from c:\Backup\This\Directory to
\\server\share\foldertocopyto with /s for include all subdirectories. (echo again)

xcopy "C:\Backup\This\Directory" "\\server\share\foldertocopyto" /s /y (this is the code and the area you will want to change in order to customize it for each computer. The location in the first set of quotes tells the batch file where to copy from(source) and the second location in the quotes is the destination, the /s means include all subdirectories within the source location and the /y means to accept all prompts, for example overwrite, continue if it can't find a file etc.)

echo Finished Backing up files (echo, no real use... just output in the cmd box)
TIMEOUT /T 1000 (this is a timeout so the user can see what was done and the results, they can click spacebar to close or wait 1000 seconds. You can also edit the time or remove this line if you want it to close immediately)

Now open windows task scheduler, create a new task, set the time/date for running a backup, then set it to run a program, browse to where you saved the backup.bat file and your done.

This guide assumes you have proper network security already setup.