Enable Flash Player for Windows Server 2016

Flash player is included in Windows Server 2016 but not actived for IE by default due to security concerns. You can enable flash player for IE in Windows Server 2016 by following steps

  1. Open a command line windows and run following command

    dism /online /add-package /packagepath:"C:\Windows\servicing\Packages\Adobe-Flash-For-Windows-Package~31bf3856ad364e35~amd64~~10.0.14393.0.mum"
  2. image

  3. Reboot, after reboot open adobe flash player official test page with IE to check if flash player is enabled


Change the default PDF Viewer in Windows 10

​When Microsoft Edge is set as your default browser, your PDF viewer will also default to Microsoft Edge. If you would like to change the default application associated with a file type, follow these steps:

  1. Go to Settings > System > Default apps
  2. Scroll to the end of the dialog
  3. Select “Choose default apps by file type
  4. Scroll to the .pdf file type listed on the left
  5. Left click on the associated item to the right of the file type
  6. Select the default app you want to use for opening .pdf files

Clean up Hidden $Windows~BT and $Windows~WS in Windows 10

After upgrading to Windows 10, you might notice two hidden folder $Windows~BT和$Windows~WS consumes more than 10GB spaces of C drive. These two folders are created for Windows 10 upgrade and can be safely removed after successful upgrade. However, if you run build in Disk Cleanup tool on Windows 10, it only cleans up Windows.old folder, and does not touch $Windows~BT and $Windows~WS. Following are scripts which you can manual clean up these two folder.

Continue reading Clean up Hidden $Windows~BT and $Windows~WS in Windows 10

Use Legacy Disk Cleanup Wizard in Windows 10

In Windows 10, Disk Cleanup Wizard is integrated into new Storage Sense app, which can be launched via Settings>System>Storage. The new Storage Sense app brings more space cleanup features.

However, the new Storage Sense app is very slow, if you just want to perform quick cleanup like old Windows, you can find legacy Disk Cleanup Wizard  by searching for cleanmgr in task bar.


Run Disk Cleanup tool on Windows Server without Installing

If you are getting a low disk space alert on a Windows Server, the safest way to free some space is to run the Disk Cleanup wizard. However on Windows Server, by default Disk Cleanup is not installed. Installing it through “Add Windows Features” would trigger a reboot. To avoid this you can simply install it by copying two files cleanmgr.exe and cleanmgr.exe.mui with following commands:

copy C:Windowswinsxsamd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7dacleanmgr.exe %systemroot%System32
copy C:Windowswinsxsamd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63cleanmgr.exe.mui %systemroot%System32en-US

Note: the above commands are for Windows Server 2008 R2. Check this website for other windows versions:


Add additional language pack to windows 10 and change display language

  1. In the Search box, type Add a language, and then tap or click the result Add a language to open it. image
  2. In the Language dialog box, tap or click Add a language. Scroll to select the language you want from the list, or use the search box to search for a language.
  3. Tap or click the language you want to install, and then tap or click Add. image
  4. To add the language as a display language, tap or click Options. If a language pack is available for your language, tap or click Download and install language pack. image
  5. To switch to the newly installed display language, you’ll need to make it your primary language by clicking Make this the primary language.

Note: To change windows display language, you’ll need to log off of Windows, and then log on again for the change to take effect.

Restore deleted files in SharePoint and office 365

The SharePoint Recycle Bin provides a safety net when items (such as lists, libraries, folders, files, documents, and list items) are deleted from a SharePoint site.  The SharePoint Recycle Bin works in two stages

First Stage Recycle Bin

When users delete items from a SharePoint site, they are placed in the User Recycle Bin.  Items in the User Recycle Bin remain there until they are deleted or a set number of days have passed (30 days by default).  The User Recycle Bin only contains items that the user personally deleted.  To access the User Recycle Bin, from Settings (the gear in the upper right-hand corner) -> Site Contents, you should see the User Recycle Bin.  Clicking on the Recycle Bin link will take you to the User Recycle Bin, where you can restore or delete the items.

Second Stage Recycle Bin

When items are deleted from a site’s Recycle Bin it goes to the Site Collection Recycle Bin and stays there until they are permanently deleted or a set number of days have passed (30 days by default).  The Site Collection Recycle Bin contains items that any user has deleted, but is only accessible by Site Collection Administrators. 

Difference between Azure Basic Tier VM and Standard Tier VM

Start from 2014 April, Microsoft Azure introduces a new instance tier of Virtual Machine – Basic tier. These instances are well-suited for production applications that do not require the Azure load-balancer (bring-your-own LB or single instance) , development workloads, test servers and memory-focused  batch processing applications. image

There are few documents on what is the difference between basic tier VM and standard tier VM so here is a summary note based on my research

Azure price page makes it clear: General purpose compute: Basic tier – An economical option for development workloads, test servers, and other applications that don’t require load balancing, auto-scaling, or memory-intensive virtual machines.

Below are some detail context:

  • Availability: Basic tier VM is only available on A0-A4 instances, standard tier VM is available on all size instances
  • Disk IOPS: Data disk IOPS for basic tier VM is 300, lower than standard tier VM which has 500 IOPS data disk.
  • Price: Single tier VM can have up to 27% less in price than standard tier VM.
  • Feature cut: Basic tier VM does not include load balancing or auto-scaling. For basic tier VMs, you can add those to availability set for high availability, and implement your own load-balance mechanisms.
  • CPU: Standard tier have better CPU performance than basic tier

Delete a project in Visual Studio Online Portal

Microsoft announces Visual Studio Online general available this week. Visual Studio Online (aka VS Online) was named TFS Online for preview for quite a long time. Previously if you create test projects for practice, you might find it’s hard to discover how to delete projects. You can do that in either TFS Online Portal or Visual Studio client,  the only support tool is tfsdeleteproject.exe, which can only be found on a machine with Virtual Studio installed.

Now in Visual Studio online, you can delete project in the portal control panel directly, though still a little hard to discover. Here are steps

  1. Login to your Visual Studio online home page and click the control panel icon on the right top.


  2. In Administration Task secion, click View the collection administration page link image
  3. You will see all your project listed in this page. Select the project you want to delete and click the arror icon, you will see a link for project deletion. image
  4. You will see warning All data will be permanently deleted. image