This PowerShell script sample illustrates how to hide drive from explorer view.
How to hide drive from explorer view is a frequently asked question in many public forums. Normally, we need to edit registry key to do it. Now use this script can reduce time-consuming for edit registry.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery