trademaid Posted May 6, 2008 Posted May 6, 2008 I want to run only one rdp session under most circumstances. if a second rdp is open, after say 5 minutes I want to log it off. (shutdown /l) I am using windows 2003 server under virtuozzo. (its 99% the same as windows 2003 server) My theory is if a certain process pretend application.exe is running, then I log of the second rdp session. Problem is using the process command, I cant tell if a process is under the current user or not ie if you go to windows task mangager, the autoit command finds all process's regardless of user. Not that all sessions will use the same user and I cant use the /console command on virtuozzo
spudw2k Posted May 6, 2008 Posted May 6, 2008 (edited) Have you seen the query.exe command? http://support.microsoft.com/kb/186592edit: It's a command-line tool to query (nar) Terminal Service info. Edited May 6, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
trademaid Posted May 7, 2008 Author Posted May 7, 2008 You are brillain query process gives the ID number, and only the process's for the loged on user. From here I can progress ok
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now