English 中文(简体)
Psexec or WMI - new session every time?
原标题:
  • 时间:2010-04-28 16:26:23
  •  标签:
  • wmi
  • psexec

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 use the same session over and over again?

最佳回答

It will open a new session for every time you run it. (Well, unless you were somehow tricking it into running more than one command at a time with a command line like cmd.exe /c ipconfig /registerdns & echo DONE... but that is rather unlikely.)

问题回答

Additionally you can check all session openings in the Windows Event Viewer > Security. I was wondering why I had so many session openings and WMIC was the answer.





相关问题
How can I query NTFS disk quotas in C#?

I need to be able to find, for all users on a given remote machine, those users disk quotas and actual disk usage. I need to be able to do this reporting in a C# application. (Well, technically a DLL ...

WMI Poor Performance

I wrote a code in C# that maps logical drives to their physical disks, using WMI (System.Management). The code working perfectly, but slow like hell. In my machine (Windows 7 x64, Dual-Core with 3 GB ...

Closing Open Files using C#

I have a situation where people are connected to files on a share and it s blocking me from overwriting the file. I m trying to write a method that will look to see if a filePath that I provide is ...

Binding an SSL certificate to a port programmatically

I m working on a self-hosted WCF service for which encrypted communications is an option. Everything works fine when a certificate is already bound to the port as described here. However, I want to ...

热门标签