I'm currently reading the MSDN description of some Windows APIs, such as WTSEnumerateSessions for instance, and it has words, such as
... is used ... on a Terminal Server
and
... requires running Terminal Services
But there seems to be no explanation of what all that "terminal" stuff is and how can I make sure that it is actually running.
Can I be sure that every Windows XP SP3, Vista and Windows 7 machine has those terminal services running?
Terminal Services is the component of Windows that allows remote desktop sessions. Generally, you have a Windows Server that is running the Terminal Services role. Clients, whether it be a windows 7 box, or a thin client, connect to the terminal server using the RDP protocol.
WTSEnumerateSessions is meant to be run on such a server and returns a enumerated list of client sessions.
Windows XP, Vista, and 7 all have the ability to host remote desktop sessions, however it is not as powerful as the actual Terminal Services (now called Remote Desktop Services in Windows Server 2008 R2) role.
Related
On Windows OS, when a gui app is ran on a Linux OS trough ssh connection, the gui can be acquired by X11 server provided by vcxsrv or xming.
However, when I connect a Windows workstation with ssh on Linux, is there any method to acquire the gui of Windows runing app? For some reason, I do not want use RDP.
how can i run an .exe file 24/7 on a windows server?
The script needs to be started manually from a virtual desktop connection and then left it in the background. The problem is that when i close the remote desktop connection the script stops.
VPS: Microsoft Windows Server 2019 with Desktop Experience Locale English AMI provided by Amazon
I have a Windows Service that runs an exe file and it is working fine under Win7 and Win8 Environments. But when I try the program in a Windows Server 2008 or Windows Server 2012 Environment, the service works but the exe file is not run. So I am wondering if there is a regedit key that blocks running of exe files when they are run from Session 0 or something similar.
I have noticed that Windows 2012 by default blocks running interactive programs. But I have already allowed it by setting the following value to zero.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows
NoInteractiveServices
When you install a Windows Service in Windows Server enviorment, you need to check Allow service to interact with desktop property in the service properties -> Log On.
When this property is enabled, try to restart Interactive Services Detection service.
Is there a dev aid that can simulate Windows AD on a non-domain machine, aka my dev laptop?
Yes, to a certain degree, Active Directory Lightweight Directory Services (AD LDS - formerly known as AD/AM), can do this.
It's a Windows service that you can install, start and stop on a dev machine and that works very closely like the "real" Active Directory.
There are some limitations - see the MSDN docs for details.
Marc
UPDATE: AD LDS comes with Win Server 2003 R2 and Win Server 2008, or can be downloaded under its old name AD/AM (Active Directory/Application Mode) for Windows XP and WinServer 2003 from here:
http://www.microsoft.com/downloads/details.aspx?familyid=9688F8B9-1034-4EF6-A3E5-2A2A57B5C8E4&displaylang=en
Depends what you want to do. If you just want to do LDAP queries then ADAM/ADLDS will do the trick. If you need the security-related aspects of AD, then no.
One possible solution is to run Virtual PC or VMware and on the laptop and have a virtualised workstation to use for your AD integration testing. In that case, I might consider also going for 2008 (R2?) on the laptop and using Hyper-V.
Is there a way to access the Cassini local web server from Windows 7's XP mode?
I'm developing on the Windows 7 host machine using Cassini, but would like to test in IE6 running inside the Windows XP guest.
If you are trying to access the Cassini server in the XP VM from within your Windows 7 host, then I don't believe so.
https://serverfault.com/questions/82899/can-i-access-cassini-from-a-remote-machine
If you have to access your website from your Host machine from within a VM, your best bet is to host it in IIS on the XP machine.
Or, if you're trying to access the site from within the XP Mode on your Windows 7 host O/S, you should spin up IIS on the Windows 7 machine and access it from XP - I think this is more what you are asking.
I just released the CassiniDev 3.5.1/4.0.1 beta with a simple test fixture example if you are interested.
Full support for any IP.
Cassini for Developers and Testers: http://cassinidev.codeplex.com