How to get RDP access again with multiple sessions on a machine
How to get RDP access again with multiple sessions on a machine
You may run into this scenario from time to time:
I am unable to RDP or TS into a server remotely because 2 people are logged in and the console port is in use.
Let’s just say that the people or person occuping the maximum number of allowed connections(including console) is new and doesn’t realize that they need to actually disconnect the session and not just click the ‘x’. So you are an admin too but you can’t RDP in. Here is an alternative method:
- Locate a machine that is running the same OS. In this case it was WIN2K8. You can obtain a remote prompt on that machine by using psexec.exe from:
http://www.hpdit.com/sysinternals/psexec.exe
Then you will want to query the terminal server of the machine you are not able to RDP into. (Discussed later)
- Copy the binary by clicking into it and saving locally to a place where you can find and execute it easily from the command line.
- Press Windows key and R and then type in cmd and press enter.
- CD to the directory you saved the psexec.exe binary and run the following command:psexec -u domain\admin_creds \\servername cmd
*Note you can always verify you have a remote command line prompt by checking the hostname as follows:
hostname
Press enter and it will produce the system’s hostname
- Press enter and type in the password of the user with the admin creds and press enter.
- Then do a query of terminal sessions by doing the following:query session /server:servername
- Look for the sessions to pop up and find the desireable one to end.
- End it by typing in the following:reset session [ID] /server:servername
- You can re-run that query again to determine that the session has been disconnected.
- Exit out of that prompt by typing exit and then pressing enter.
- Launch an RDP session ie.
mstsc /v:servername
A connection.
Efficiency through Technology and Quality by HPD Global SaaS Solutions
These days it is most important to take the business battle to strategic design. Some concerns with the Economy as it is are to find cheaper ways to increase efficiency without hurting quality. Technology is one strong avenue to do that through. Some careful attention should be given by management into various areas surrounding this. Consider the following:
What areas of your work flow can be automated?
How utilized is your present technology?
Have you considered efficiency through leverage of technology?
Could you double your output with quality by doing things different?
These questions help us better determine as management what areas we should push to resolution on a more level approach. I am going to make a bold statement about our present economic situation. I believe that the businesses the utilize creativity, strategic design, and technology toward doing things smarter (different) will be the companies that take us further into the new millenium and will be tomorrow’s successful companies. You have heard that the best way to win is thinking outside the box. Technology when implemented successfully with intelligent engineers will not only yield success but a peace of mind. You will want to ensure that you deal with solid Technology Experts when making these changes. To an extent it will involve vision and entrepreneurship, but it can be done. So this will be an area that all technology management will face if they have not faced it so far. It is the dynamics of where Global Business is going, you just have to think outside the box and be the first to the fight. HPD Global has multiple SaaS solutions you should contact us to save money.
Using Ubuntu Server as a Desktop and Cost Savings
Cost Savings and Technology advantages of Ubuntu Server
Most of you are familiar with GPL/GNU Open Source Software. I wanted to recommend a highly stable and cheap to free open source server. Ubuntu meaning ethic or humanist philosophy focusing on people’s allegiances and relations with each other. The meaning behind the them is something quite intrinsic to the creation of the technology. In a humanity sense open source software allows individuals, groups, or entire communities to contribute in some way to the development of the software. The overall output of the product is of higher quality, testing, and also more in line with what the user wants.
Since Ubuntu open source you have the option to change it. So yes this is Linux. I wanted to state however that Ubuntu is the most supported version of Linux out there, and that you can do anything with it as you would a Windows Server. You have have the option to turn it into a desktop with a simple command line entry such as this:
sudo apt-get install ubuntu-desktop
The wonderful thing about open source is you feel or get empowered through the transparency of what you observe. Also how you can customize and change things to better suit the needs of your IT department or Organization. So now on to the advantages. Ubuntu is a light weight server out of the box, or you can make it more robust. It can easily be converted into any type of back end server ie: File, Web, Email, Media, Authentication, Proxy, Code Repository, Load Balancing. Just about anything you want it can be turned into that. So let me point you to the documentation for reference so you will be able to observe and learn or consider the cost savings you can benefit from.
At HPD Global – VIT Cloud Services we run Ubuntu and several other open source solutions on top of traditional Microsoft Windows Server. We feel this brings greater value to our customers as they have the option to tailor the technologies we offer to better suit their needs. Contact us today for more IT Profitability.
Multiple Desktops in Windows
( Linux / *nix ) feel in Windows
Making Windows feel like an open source environment
There’s a cool app that helps you multi-task in an organized and efficient way in windows. If you have used Freebsd, Suse, Slackware, DSL, Fedora, RHEL, etc. They all have a few things different that Windows does not have, that is that they allow you to have multiple desktops. Now that is a good idea that allows efficient work to be done in each desktop. It helps to be able to track what you are triaging or working on. Here is a program that gives windows that functionality as well:
https://www.hpdit.com/sysinternals/Desktops.exe
Pretty cool…
Remote command line prompt in Windows
For those of you that love working with the command line here is a type for working on a machine remotely without having RDP, VNC access to that Windows machine, or you might like to do things the remote shell way, ie. SSH, Stelnet, etc. If the answer is “Yes” here is a way for you to do it in Windows OS environment:
- Go to:http://www.hpdit.com/sysinternals/psexec.exe
- Click the psexec.exe binary
- Save to a location you can execute from the command line, like %systemdrive%\system32\ or C$\system32\
- Press Windows Key plus R and type in cmd and press enter
- CD to the directory that contains psexec.exe or you can execute it from the absolute path, or if you have it in your in environment path just simply execute from the command line prompt
- If you wish to obtain another machine’s command prompt without having to TS into that machine type the following: psexec.exe \\computername “cmd”
- There you have it remote command line access.
- When you are done type exit to get back to a local prompt.
Registry hack to allow easy command line anywhere access
Command Prompt anywhere Registry Hack
- Click start
- Click run
- type in notepad
- press enter
- paste the following code:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\Command Prompt Here]
[HKEY_CLASSES_ROOT\Folder\shell\Command Prompt Here\command]
@=”;cmd.exe /k \”;cd %1\”;”;
Into the notepad
- Then from there click save as. Make sure you selected all files instead of .txt
- Name the file whatever you want but add the extension .reg
- Save it to a location you can execute the file to add the reg mod
- From there execute the file, then press Windows Key plus the letter E
- You then will be able to click into a drive like the C: drive and then right click a folder the option to Command Prompt Here will be available
- Left click that option and you will see a prompt come up in that location.
Performance tuning the Windows System Drive
From time to time the old issue of alert or log spamming will come up. With it the usual performance degradation and CPU throttling issues as well. During these times, it is best to find the large temp or log files and remove them from your Windows System Drive, for return to performance stability (RTPS). This can be done through Windows Search.
Press Windows Key then press S
If you have downloaded Windows Search you will need to on the left side select Search Companion.
Click all files and folders
From there then:
Click What size is it? Double arrows to expand
Then you can put in the size of the files. You can search for different file types as well such as (*.tmp, *.tpm, *.chk, *.log)
Select all (ctrl+a) then shift+del.
Also you can modify system paging to use one file rather than many when creating the paging file. This will help improve drive performance as well as minimize on orphaned files. That can be done in System Properties – Advanced – Under performance click settings – than advanced tab – click change – set the minimum and maximum to 1.5 times the physical memory – click set – reboot for changes.
This should help you remove unnecessary files while optimizing system performance.
Great Tool for Windows Server Active Directory Exploration
Another great tool worth reviewing is adexplorer.exe which allows in most AD environments users the ability to go and look at ADS. So this can be useful for determining if users belong to the correct OU. It runs stand alone and does not require necessarily that you are an Enterprise\Domain Admin. Also you can save some time while drilling down throw to the root cause of an issue whether it be ACLs, Perms, etc. related.
https://www.hpdit.com/sysinternals/ADExplorer.exe
At HPD Global – VIT Cloud Services we certainly have had the benefit of using this tool for Fortune 100 companies, we can attest to having this knowledge and experience to get the job done for any type of business environment. Without getting full active directory access to do a PCI Audit we were able to use this tool which allowed object attributes to be ignored in Active Directory and allow us to do User Object account audits. This was in regards to all the Administrator accounts which is something looked at when performing PCI, SOX, and IAB, MRC Audits. Is compliance a mystery to you and your Org? We can certainly help you get on track with regards to compliance, which is something not going away. Contact us today.
Fortune 500 IT Practices: Small to Medium Businesses
The Questions:
Don’t you wish you could have a budget to allow your IT departments to flourish without the additional cost of a full time staff, additional contractors, or H1B’s to further explode your budget into the point of no return?
Don’t you want to know if your IT infrastructure us functioning as successfully as that of a Fortune 500 company?
If you answered yes to either of these questions, then look no further; High Performance Delivered Global IT Consulting (100% US Based with US employees) is here to help you with all your technical needs.
With over 30 years of experience in Information Technology (IT) we have the solutions that will help you cut cost and increase your performance for your day to day Information Technology operations.










