How to provide web client with diagnostic information

You can see the following script. The customer will then be able to provide it for you.

This will provide information such a current page/time date/ agent ip of the customer.

This will enable to easily find  information in your logs w.g WAF logs.

        <p>Diagnostic Information:</p>              
         <div id="systeminfo" align="left"></div>
         <div id="ipaddress" align="left"></div>

    document.getElementById("time").innerHTML = Date(); 
    document.getElementById("baseURI").innerHTML = document.baseURI;
    document.getElementById("referrer").innerHTML = document.referrer;

    function getIP(json) {
     document.getElementById("ipaddress").innerHTML ="IP Address: "+ json.ip;


    var txt = "";   
    txt += "Date: " + Date() + "<br>";
    txt += "Page Url: " + document.baseURI + "<br>";
    txt += "User-agent header: " + navigator.userAgent + "<br>";
    txt += "Cookies Enabled: " + navigator.cookieEnabled + "<br>";
    txt += "Browser Online: " + navigator.onLine + "<br>";
    txt += "Platform: " + navigator.platform + "<br>";
    txt += "Referrer (Previous Page): " + document.referrer; + "<br>";
    document.getElementById("systeminfo").innerHTML = txt;

Cannot expand public folder in Outlook 2016

Public folder in the exchange 2016/2013 is a type of shared mailbox. If it can be accessed by the one person within the organization then I would imagine it’s going to be always a client side issue and not the Exchange.

If your user is unable to open up Public Folders within then Outlook and getting message that public folders cannot be expanded, please contact your exchange administrator then you may try the below fix.

Navigate to Control Panel -> Mail -> Show profiles

Do NOT remove the old profile! 

Create a new profile

Tick the box for -> Prompt for the exchange profile.

Close/Reopen Outlook it will ask you to choose the profile.

Select a new one.

Once Outlook is started it will start download the emails to a new .pst file.

Checked if you can expand the public folders now.

If you can then it seems that the old profile become corrupted.

Link old the archive .pst files to new a profile.

Any bespoke configuration may need to export/import from the old profile.


Many Thanks



How to force Diffie–Hellman key exchange to be 2048

This seems to be a default setting on Windows 2016. For Windows 2012 your sslabs score can be capped to B if you use 1024 bit cipher.

You need to add the following entry to your registry.


Access the following registry location:

Vlid key values are decimal: 1024, 2048, 3072 and 4096.
Add the following DWORD-32bit value in decimal:
“ServerMinKeyBitLength”=2048 or 00000800(in hex)

Please remember always test it before using in production as some browser may stop displaying your website if you dont support right ciphers.

More info can be found her



How to check Windows boot time

You can run the following command in powershell to check when was the last reboot of the machine.

Get-CimInstance -ClassName win32_operatingsystem | select csname, lastbootuptime

You will get the following results.

csname lastbootuptime
—— ————–
RAF-PC 26/02/2018 17:36:10

The other method is to see when the statistics started.

in CMd run

S:\>net statistics Workstation
Workstation Statistics for \\RAF-PC


Statistics since 26/02/2018 17:36:59


Bytes received 5314503667
Server Message Blocks (SMBs) received 1890
Bytes transmitted 1158776786
Server Message Blocks (SMBs) transmitted 1872
Read operations 53184
Write operations 1139
Raw reads denied 0
Raw writes denied 0

Network errors 0
Connections made 181
Reconnections made 0
Server disconnects 76

Sessions started 0
Hung sessions 0
Failed sessions 0
Failed operations 0
Use count 2468
Failed use count 6

The command completed successfully.

Hyper-V encountered an error trying to access an object on computer because the object was not found

This happened to me after Docker removal on Windows.

Removing Hyper-V and installing it again will not fix this problem

run the following command

MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof

How to fix – Windows 2016 disk offline

By default Windows 2016 san disk policy is making the newly added hard drive as offline.

To fix this problem run the following command to change to

To check:

Get-StorageSetting Select-Object NewDiskPolicy

To set:

Set-StorageSetting -NewDiskPolicy OnlineAll

Policy Setting Effect
 OfflineAll  All new disks are left offline by default.
 OfflineInternal  All disks on busses that are detected as internal are left offline as default.
 OfflineShared  All disks on sharable busses, such as iSCSI, FC, or SAS are left offline by default.
 OnlineAll (Recommended)  All disks are automatically brought online.