Windows Server 2016 – Disk Signature Issues Event ID 58 & VDS Basic Provider Event ID 1 Error

December 12, 2018

On a Virtual Machine Host after doing a P2V. you can encounter the Event ID 58 & Event ID 1 Errors

image

Error Message :

“The disk signature of disk 5 is equal to the disk signature of disk 0.”

Use the Device Manager to see the Hidden Devices

image

Next download the DevNodeClean Utility

This will list all Orphaned Devices on your VM

Run this command :

devnodeclean /n

image

You will see many Registry Keys that WOULD BE removed, but are now only listed.

image

User the /r parameter to delete the registry key…

BE SURE you have always good backups to fall back on in case you need it !


Enjoy !!

Advertisements

Windows 2016 – Hyper-V CheckPoints Disk Space

December 4, 2018

Once you create VM checkpoints in Hyper-V it might start consuming a lot a disk space afterwards.

image

Because it will write data to the AVHDX files.

You can use PowerShell to investigate the current disk size.

Get-VM YourVM | Select-Object VMId | Get-VHD | Select-Object –Property path,computername,vhdtype,
@{label=’Size(GB)’;expression={$_.filesize/1gb –as [int]}}

image

As you can see the VHD Type is saying DIFFERENCING.

That is because you have a checkpoint pending. And this is NOT recommended in a production environment.

There are some tricky scenario’s where deleting checkpoints can corrupt your VM.

See here for more info

Enjoy !


Windows Server 2016 – HP iLO PowerShell and more…

November 9, 2018

image

image

HPE Integrated Lights-Out (iLO),

HPE Onboard Administrator (OA) for HPE BladeSystem Enclosures and

System BIOS of HPE ProLiant servers, this set of PowerShell utilities

 

image

We will only use iLO at this moment, because this is the most valuable.

It is a proprietary embedded server management technology of HP.

iLO makes it possible to perform activities on an server from a remote location. Even if the server OS is not responding.

 

1. Download the PowerShell Module

See here at the moment we are at version 2.1

image

 

2. Load the PS Module

Check the version

 

ClS

import-module "C:\Program Files (x86)\Hewlett Packard Enterprise\PowerShell\Modules\HPEiLOCmdlets\HPEiLOCmdlets.psd1"

Get-Module -ListAvailable "HPEiLO*"

 

image

List the Cmdlets

Get-Command -Module "HPEiLOCmdlets"

 

image

 

Update the PS Module if needed

Update-HPEiLOModuleVersion

 

Search for iLO servers in your network using a range or subnet

$IPRange = Read-host " Enter the IP Range of HPOA ( 10.0.0.1-25) "

Find-HPEiLO $IPRange

image

Now you are ready to run some cmdlets.

 

Let’s check the power of the server:

Get-HPEiLOServerPower -Connection $connection

image

 

Let’s check the Temperature Sensors

$Ret = Get-HPEiLOTemperature -Connection $connection

$Ret.Temperature | Out-GridView

 

image

 

3. iLO commandline Tools

The HP management utillity called hponcfg.exe is installed here.

 

image

iLO config Export Example :

Command :

clip_image002

hponcfg.exe /w c:\Temp\iloconfig.txt

 

image

 

You can use the is config file to make changes to your iLO configuration, like resetting your Password etc.

 

hponcfg /f your_script_name.txt

 

Enjoy !


Windows Server 2016 – Volsnap Error Event ID 27 & Event ID 153

November 7, 2018

Accidently I noticed some Disk Warnings Event ID 153. Together with a VSS error Volsnap Event ID 27.

All at the time we had scheduled a backup to run.

image

The message was :

The shadow copies of volume \\?\Volume{xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} were aborted during detection because a critical control file could not be opened.

SOLUTION :

First recommendation is to resize the VSS Storage Area.

Or even put the settings to No Limit

image

For more info see here : http://hyper-v-backup.backupchain.com/how-to-fix-volsnap-error-a-critical-control-file-could-not-be-opened/

At the link you can also download a small Free Utility called VSSDiag.

image

This can help you debug further issues.

PS : This is also linked to Event ID 3, see here for more info

 

 

Enjoy !


Windows Server 2016 – Application Errors after a P2V conversion Event ID 1000 Error

October 30, 2018

After converting a Physical server to a VM, I got a lot of Application Errors 1000.

Looking at the details it was relating to, amongst others, HP related drivers and software

Example : This error shows it is trying to reach a Tape device which is not present in a VM…

image

SOLUTION :

First uninstall all hardware drivers that are not needed in the new VM.

1. Open CMD with admin privileges and run this command

set devmgr_show_nonpresent_devices=1

2. Next run this command

devmgmt.msc

And go to VIEW, select SHOW HIDDEN DEVICES

image


3. Make backup of your VM

Before going to next step MAKE SURE you have a good backup of the current SYSTEM STATE

4. Expanded list

Look at all the GREYED out devices and UNINSTALL these Software and Drives

image

5. Uninstall COM Objects

From the Event Viewer Error I could see we where dealing with a COM related DLL

Use WBEMTest.exe to investigate if the COM Object is still in use.

image

In my case I was sure it would not be needed since the HW was not available anymore

Look for the COM DLL : HPWMITape.dll


image

Run the uninstall command :

regsvr32 /u HPWMITape.dll

Enjoy !


PowerShell – Using PoSH SSH Module to shutdown a Synology NAS

October 29, 2018

 

Shutting down a Synology NAS has to be done using an SSH client. And using ROOT access.

SOLUTION :

This is how this is done using the famous PuTTY SSH client

Connect to your NAS

image

Once connected make sure you change to ROOT Access

This is done using this command :

sudo -i

image

Next enter : Poweroff

Of  course you can use Powershell to obtain the same result using the PoSH-SSH module.

See here for more info :

https://audministrator.wordpress.com/2017/10/21/powershell-using-posh-ssh-module-to-access-synology-nas/

Keep in mind that in order to run ‘sudo’ commands you need to use “Invoke-SSHStreamExpectSecureAction” command.

CLS

New-SSHSession -ComputerName NAS_IPAddress -Port ** -Credential (Get-Credential)
$stream = New-SSHShellStream -Index 0
Invoke-SSHStreamExpectSecureAction -ShellStream $stream -Command 'sudo -i' -ExpectString 'Password:' -SecureAction (read-host -AsSecureString) -Verbose
$stream.Read()

Enjoy !


Windows 10 – Quickly connect to a VPN

October 12, 2018

In Windows 10 it is a pain to quickly select a VPN connection. Espacially when you have a long list of entries in there.

On top of the sort order does not always stay the same Sad smile

SOLUTION :

Windows 7 and Up has a build in little tool called RASPHONE.exe

It is located in the System32 directory :

image

When you run it, it will quickly list all the entries to select from and connect to your relevant VPN server.

image

Once selected you can connect or change the properties …

image

All Windows VPN entries are automatically stored in your rasphone.pbk file located in the %Appdata\Microsoft\Network\Connections\Pbk folder

TIP :

1. Pin this Tool to your taskbar and you are ready to go ! Smile

Enjoy!