Click here to Skip to main content
12,949,826 members (79,579 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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 28-Apr-10 6:25am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

That depends on what you mean by "session".
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,489
CHill60 3,380
Maciej Los 2,913
Jochen Arndt 1,935
ppolymorphe 1,820

Advertise | Privacy | Mobile
Web02 | 2.8.170524.1 | Last Updated 3 May 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100