Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi

Does someone know if if i run PSEXEC (or WMI) N times in the same program -
does it open N new sessions?
or does it uses the same session over and over again?
Posted

Where do you find that 'session_id'? There is one (standard) environment variable which is SESSION_NAME. Is it that one you mean?
If yes that will always be the same one. (well, on client operating systems anyway; on servers there are multiple sessions). Session may also run on the service contaxt (session 0, which used to be the console session before Vista, or in background session.
 
Share this answer
 
That depends on what you mean by "session".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900