Archive for the ‘Systems Administration’ Category

During a training session with Microsoft Hyper-V  trainees were asked to create and delete checkpoints a particular trainee found herself unable to delete the checkpoint from GUI.


As I’ve seen this before many times, I instructed the trainee to open PowerShell and execute the following command: “Get-VMSnapShot -vmname test1”


and there we see the snapshot VMNAME: Test1 – Backup – ( 07/27/2017 – 6:03:10 PM).

Now we must delete the snapshot executing the previous command: “Get-VMSnapShot -vmname test1” and adding “| remove-vmsnapshot”.

Get-VMSnapShot -vmname|remove-vmsnapshot

Once the snapshot is removed Hyper-V will begin to merge the data and reconcile the changes.


No snapshots left, and I was able to continue the Hyper-V training.



I’ve recently found myself dealing with GPT protected partitions on HP Proliant Servers on which I’ve created Arrays using “Intelligent Provisioning App” to manage Storage. As with any Array configuration:

  1. Add the discs to the enclosure
  2. Create and array
  3. select the discs in the array
  4. Commit changes

and you are done, but recently after running that same procedure when I boot to Windows or VMware I am unable to use the provisioned array. On Windows when I go to the “Disk Manager” it appears as “GPT Protective Partition”



I tried a couple of things on the GUI but nothing seemed to work, either because the control were grayed or would get errors. I decide to try it “Old school” and use “Diskpart”


  1. Open “Command Prompt” as Administrator
  2. Enter command “Diskpart”
  3. Then command “List Disk”gpt-list-disk
  4. Then command “Select Disk” and the disk number, in this case I will select disk 2gpt-select-disk
  5. Now command “Clean” this command will wipe the partition on the disk.gpt-clean

The disk has been cleared of any “Protectiveness” and is ready to be configured. I executed command “List Disk” to show that the disc is free.gpt-unknown-disc



Now you can configure the disc to you hearts content. I hope this information was useful. Enjoy!

A couple of days ago I received a call from a Colleague that was working on a VM with Windows Core 2008 R2 Domain Controller that had an issue and they needed to disable the network connection.

*To perform this task you must be logged into the console, no RDP.

  1. First Login to your server (must be able to elevate CMD or Power Shell with Admin Privileges)
  2. Execute command: “netsh interface ipv4 show interface” this will show you a list of all available ipv4 network adapters and their names.netsh-show-interface
  3. Here is the tricky part you need to know which interface you will disable. In this exercise I will disabled the Wi-Fi network adapter.  netsh-show-interface-show
  4. Now that we’ve picked our network adapter we will execute command to disabled it: “netsh interface set interface Wi-Fi disable”. netsh-disable-interface
  5. Now we will confirm that the adapter was disabled, by executing command: “netsh interface ipv4 show interface” .  As you can see on the image below the Wi-Fi adapter is no longer available, because it was disabled.netsh-show-interface-disabled-not-show
  6. Now we will enable it by executing the command: “netsh interface  set interface Wi-Fi enabled”. netsh-enable-interface
  7. Now we execute command: “netsh interface ipv4 show interface” and we can now see the Wi-Fi adapter is visible and enabled.netsh-show-interface-show

This command works on servers and workstations it’s not limited to Windows Core. Have a nice day and Enjoy.

I’ve been using this command for quite a while now, and today a colleague asked me how to install .net framework via PowerShell on Windows Server 2012 R2. After performing the installation I decided to post the command for everyone’s benefit.

I will use Deployment Image Service and management Tool (DISM)

DISM /Online /Enable-Feature /FeatureName:NetFX3 /Source:D:\sources\sxs

Where source= the letter of where the sources files for this feature is. (normally on your Microsoft Windows DVD or media used to Install Windows.

  1. Open PowerShellPowerShell
  2. Insert command DISM /Online… and press Enterdism-net-fx3

Now it’s installed, Enjoy!


Ping localhost and receive response ::1  IPv6

I recently had a client who had a support call for an application, and they tell him that they can’t assist him because there is a problem with the server. When they ping the localhost or the hostname from the server instead of getting IPv4 response they get ::1 from IPv6.

C:\WINDOWS\system32>ping localhost

Pinging test.testing.local [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms


How do we solve this:

  1. Open command prompt or power shell as an Administrator
  2. Execute command “netsh interface ipv6 show prefixpolicies”ipv6-prefixpolicies
  3. then modify entry ::/96 as follows: netsh interface ipv6 set prefix ::/96 60 3ipv6-prefix-96
  4. the modify entry ::ffff:0:0/96 as follows: netsh interface ipv6 set prefix ::ffff:0:0/96 3 4ipv6-prefix-ffff-0-0-96
  5. Ping Localhost and you should now get IPv4 responseresponse-ipv4-localhost
Now to revert back to how it was as IPv6 run the following commands:
  1. netsh interface ipv6 set prefix ::ffff:0:0/96 3 4
  2. netsh interface ipv6 set prefix ::96 3 4

You installed RSAT for Windows 10 Enterprise and did not notice that DHCP is not available, you checked under “Turn Windows Features On or Off” and DHCP is marked.


What do you do:

  1. Go to a Windows Server 2012 (where DHCP is installed) and search for:
            a. dhcpmgmt.msc
            b. dhcpsnap.dll
and copy both files into C:\Windows\System32 directory on Windows 10 Enterprise.
      2. Execute command prompt as Administrator.
     3. Change directory to SysWOW64  (cd syswow64).
    4. Register dhcpsnap.dll (regsvr32 c:\windows\system32\dhcpsnap.dll) and click OK.
Now you can open you Management console and add DHCP.
(Start + Run + MMC)

Finally for all those admins, who were waiting to either upgrade to Windows 10, and all those (like myself) who took the leap but could not use RSAT for Windows 10 Enterprise because it was not available… Enjoy

Remote Server Administration Tools For Windows 10

  1. Download
  2. Install
  3. Restart
  4. Go to:
  • Start
  • All Apps
  • Windows Administrative Tools

and there is your bounty…