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 !

Advertisements

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!


Windows 10 – SkypeForBusiness no micro sound

October 5, 2018

After Updating to the latest Windows 10 build, I did not have any sound going out using the built in Microphone of the laptop ?

First I thought I had to update the audio driver to the latest version…

 

So I did but no success Sad smile

 

SOLUTION :

I decided to use the Voice Recorder to test the sound

image

But there was a message saying that I had a Mic issue and needed to allow this audio first.

 

Go to Microphone Settings :

 

image

This will open the Microphone settings panel

 

image

Now make sure Skype is selected as allowed Microphone sound.

clip_image002

 

Solved Smile


Windows – WBADMIN RESTORE using the correct version IDENTIFIER

August 23, 2018

When you are going to do a restore using the WBADMIN command line.  It might be hard to find the correct backup set and location ?

These are steps that will help you to get what you need.

1. Run the command wbadmin get versions

image

Check you backup time and VERSION IDENTIFIER.

As you can see the backup time is NOT equal to the identifier date and time …

Backup ran at 7 PM and the identifier says 11:00

image

You can also see the date & time in the folder name

image

So in order to getting the correct backup data to restore you need to take the WBADMIN IDENTIFIER details.


Windows 10 – CredSSP encryption oracle remediation Error using RPP

August 23, 2018

You may get an error like this when connecting to a remote server using RDP on a Windows 10.

Especially after W10 has received the latest updates ?

image

Solution :

Update the servers with the latest Windows updates …

See KB4103712

But if this is not feasible, you can apply this workaround temporarily…

See here

Open the Local Group Policy Editor gpedit.msc

Go to Computer Configuration –> Administrative Templates –> System –> Credential Delegation

Enable the Encryption Oracle Remediation Policy

image

Set to Vulnerable

image

If you cannot use gpedit.msc (Ex. Windows Home Edition), you can make the same change by using the registry, as follows:

Open a Command Prompt window as Administrator.

Run the following command to add a registry value:

REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2

Success !


Windows – L2TP VPN Error 789

July 27, 2018

If you encounter this Error 789 when making a new VPN connection on a Windows client.

image

9 out 10 this is the reason…

SOLUTION :

1. Go to SERVICES


2. Look for IKE and AuthIP IPsec Keying Modules

image

3. ENABLE and START the Service

4. Test the connection again

Now it will work…

Tip : Winking smile

1. If you want to Automate the L2TP VPN client config check this out

If you need to find a quick way to connect to multiple VPN connections, see here

2. If you happen to use the Watchguard MUVPN client software for IPSEC on a Windows 7, in combination with L2TP Windows VPN.

clip_image001 image

You need to DISABLE the IKE service in order to get access to all network resources.

STOPPING the Service will not help !

Enjoy!