PowerShell Script to Dynamically Map a Free Drive Letter

In case when you need to map a local path as a new drive at a runtime, you need to determine which letter is free for use as a next drive letter. Here is a simple code that does this: foreach ($letter in [char[]]([char]’A’..[char]’Z’)) {     $drive = $letter + ‘:’     if (!(Test-Path -path $drive)){         break     } } SUBST $drive "C:TempUser1Data"   For a descending order of processing change the alphabets series as below in foreach loop foreach ($letter in [char[]]([char]’Z’..[char]’A’)) {   This can be a usual case for virtualized environments where you support mapping client […]

Read more

Troubleshooting Simple Internet Explorer Issues

…to handle issues like when you click a hyperlink on a webpage or in an email message, nothing happens. Internet Explorer does not open the webpage.   Such a behavior may occur for one or more of the following reasons: A corrupted browser choice setting may cause Windows to misinterpret which browser is set as the default browser on your computer. Settings were changed after a software installation that cause webpages not to work correctly. A previously installed browser or add-on may be interfering with other software on your computer. Registry key were changed or became corrupted. Method 1: Check […]

Read more

Fix: Windows Update that contains drivers times out on Win7 or Windows Server 2008 R2

It’s when you have the Windows Updates services configured to auto update the system which runs when you restart/shutdown the system, the Windows 7 or Windows Server 2008 R2 turns hung or takes long time to pass through the updates install if any of the updates are included for drivers. Microsoft found this is an issue which occurs because of a race condition in the Plug and Play service during the driver update process.  Has released an update  for this issue.   Update details from MSFT update documentation: Prerequisites To apply this update, you must be running one of the […]

Read more