Icons disappearing/hiding in system tray –VDI or desktop

  • Delete both IconStreams and PastIconStream from registry entry.

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify

  • End process explorer.exe using task manager or with command taskkill /fi “imagename eq explorer.exe”
  • Run command Start>Run>explorer.exe

Look for icons in system tray.

reg entry to find user SID:-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

Note: Take registry back-up before modifying registry entries, if something goes wrong settings can be reverted easily with backup.

Logon to Remote/Terminal Server automatically.

Enable auto logon in Remote Desktop Connection Manager

If you tired of entering password all the time when you take RDP of any terminal server/system, I have found a solution for that.

May be many articles have been explained about it but I personally tried and got a success to logon to terminal server automatically.

With the help of Credential Manager we can accomplish it.

Go to Control Panel\All Control Panel Items\Credential Manager or Start>Run>control /name Microsoft.CredentialManager

Note:In Windows Server 2012 go to Control Panel\All Control Panel Items\Credential Manager\Windows credentials why because windows server 2012 has Web credentials tab along with Windows credentials tab.

autologon1

Choose option “Add a generic credential”, enter the remote server/system details and credentials.

autologon2

Once you entered above details, credentials will saved under “Generic Credentials”. Refer below snap-shot to know more.

autologon3

Once you finished above task. Open RDP console with the help of “mstsc” and enter the remote server/system name( in my case I use “term sevrer1”). It will log you on automatically without asking credentials.

autologon4

 Precautions should be taken before trying above Steps:

  • Make sure to enter correct credential details.
  • If login not allow one or two times, there may be password wrong, so chance of getting account lockout act carefully in such scenarios.
  • Some companies set password policies to change password after 45/90 days. So go to generic credentials and edit password, by selecting edit tab in generic credentials option.

autologon5

Article applies to:- Windows server 2012, Windows 2008/2008R2, Windows 7

Technet Reference:http://technet.microsoft.com/en-us/library/hh994565.aspx

Share and Storage Management console not useful in Windows Server 2012

One new thing I’ve observed myself and making a note of it for my reference. Share and Storage Management console is used to manage file servers easily in windows server 2008 & 2008 R2. But where as in Windows server 2012 & 2012 R2 we can’t use it for the same instead we can use server manager  or computer management console (compmgmt.msc) to manage file servers. Please see below error snap-shot when I was trying to manage my test file server of Windows server 2012 R2. Share and Storage Management Note:Share and Storage Management can only be used to manager windows server 2008 and Windows server 2008 R2. Server Manager can be used to manage Windows Server 2012 or later systems

Few windows 2K8/2K8 R2 features have been deprecated in windows server 2K12/2K12 R2, this is one among that, have a look at removed and deprecated functionality

Now Mounting ISO image is easy in Windows System.

What a wonderful tool within OS itself 😀  Just one-click away to explore the content of ISO image.

In Windows Server 2012 & Windows 8, we can explorer/read the content of ISO image by built-in option Mounting of ISO 

This option does not need any 3rd party software like Magic disk/ISO etc.

Here are the steps for that. Go to ISO image> Right+click>choose Mount ISO option like below snap-shot.

Mount

Once you mounted ISO, image will be available as DVD drive then explore for the content like shown below.

Mount2

Logoff disconnected RDP Sessions

This post is for my reference 🙂 

Tired of using mouse right+click & logoff “session ID” command at run.

Finally I got a solution to logoff  many disconnected RDP sessions at once.
It  is simple 😉

From Tsadmin console Start>run>tsadmin.msc>Choose a server >console right hand side click on users tab>select disconnected RDP users > right+click then Logoff 

I agree there are many scripts available to use to do this activity, but risk involved in using of scripts in production environment 🙂 I feel GUI is simple and easy way to accomplish this task.

To query user sessions: run commands qwinsta or query session 

Remote Desktop license error


1. Start>Run> regedit
2. In the regedit console, browse for or navigate to the key HKLM\SOFTWARE\Microsoft\MSLicensing
4. Right click on the key name “MSLicensing” and select DELETE.
5. Close Regedit
6. Do NOT open any shortcuts for Remote Connections at this point.  Instead, you need to open the Remote Desktop Connection Manager.  It’s VERY important that you do this by RIGHT clicking on the program and selecting “Run as administrator”. If you don’t do this properly, the registry key you deleted in step 4 will not be recreated.  The Remote Desktop Connection Manager can be found at: START>All Programs>Accessories>Remote Desktop Connection.
7. Select the remote connection you want to use and click “Connect.”  If you have done this properly, a new registry key will be added that will have updated licensing information.

MS reference :http://technet.microsoft.com/en-us/library/cc756826(v=ws.10).aspx

Server Unexpected Shutdown/BSOD/Dump file analysis

Generally event ID 6008 generating in server for unexpected shutdown.The below steps we have to follow to know the root cause of server shutdown.
  • Configure you server to track shutdown/reboot. If not please “Configure Shutdown Event Tracker on the Local Computer”http://technet.microsoft.com/en-us/library/cc732119.aspx
  • First check the server whether it is configured for dump file or not. If it is configured check the path %systemroot%\mindump\ folder and find is there any *.dmp file located in there.
  • The below snap-shot helps you to configure server for dump file. Also to set mini dump file path & disable automatically restart option as shown in screen shot.
 
 
 
 
 
Sometimes server restart automatically to stop automatic restart of server please un-check the marked option in below snap shot. Also try to boot server in safe mode and check for the similar kind of issue? Another useful step is go to run and type msconfig|startup|uncheck startup items which are not required.
Based on the dump file analysis, we can find either system process/file name/ hardware failures along with the  respective bug check string codes.
Here is the link for various bug check codes and troubleshooting steps
Some times dump file partially corrupt and which is not allowed to analyse the file to find the root cause of server shutdown.