Code Monkey home page Code Monkey logo

svcguest's Introduction

SvcGuest

Register any executable as a Windows service with a (partially) systemd-compatible unit config. What SvcGuest can achieve is a lot like NSSM (the Non-Sucking Service Manager) but SvcGuest is designed to be shipped along with a larger piece of software rather than be used by end user directly.

Build status

Binaries are available for download in the releases page for your convenience.

Requirements

  • .NET Framework 4.6.2

Usage

Software Distributor

If you wrote a piece of software and doesn't want to adapt to the Windows Service interfaces yourself, you can distribute a binary release of SvcGuest.exe and your program.service config file (example) with your software, and run svcguest.exe --install --config program.service (remember to elevate!) during your software installation.

MPL 2.0 License allows distributing SvcGuest.exe with your software for free with some limitations. Ask your lawyer for advice if in doubt.

End User

Assume you have a program that you want to run at startup (before user login) but don't want to use legacy dirty methods like Task Scheduler. You need to put a SvcGuest.exe, a your-program.service config file (an example is available) into the same directory as the program (recommended, other directories are OK too).

  • Right click on svcguest.exe -> "Run as administrator" to install all units interactively
  • svcguest.exe --install --config your-program.service to register the service
  • svcguest.exe --uninstall --config your-program.service to remove the service
  • svcguest.exe --help for a complete help

Features

Features supported on the master branch (for the releases, see the .service file provided):

  • Unit
    • Description
    • Documentation
  • Service
    • Type
      • simple
      • forking
      • oneshot
      • idle
    • User
    • RemainAfterExit
    • ExecStartPre
    • ExecStart
    • ExecStartPost
    • ExecStop
    • ExecStopPost
    • Environment
    • EnvironmentFile
    • PassEnvironment
    • UnsetEnvironment
    • WorkingDirectory
    • CPUAffinity
  • Install
    • WantedBy
    • RequiredBy

Notes

Versioning

Master branch is unstable; please use a specific release for production use.

It is recommended to upgrade to the latest revision (i.e. if you are at 1.0.2.4, then you should upgrade to 1.0.2.5 or later version of 1.0.2.x); but if you have no issue running one of the releases and don't need any new function, then you don't need to upgrade to a later minor version (e.g. 1.0.2.x to 1.0.3.x).

Donation

If this project is helpful to you, please consider buying me a coffee.

Buy Me A Coffee or PayPal

svcguest's People

Contributors

jamesits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bellyfat

svcguest's Issues

Failed to stop service. System.Management.ManagementException

Occurred to me once while Windows is stopping the service since child process died:

Failed to stop service. System.Management.ManagementException: Shutting down 
   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
   at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
   at SvcGuest.ProgramWrappers.ProgramWrapper.GetChildProcessIds(Int32 processId)
   at SvcGuest.ServiceInterface.Supervisor.Stop()
   at SvcGuest.ServiceInterface.Service.OnStop()
   at System.ServiceProcess.ServiceBase.DeferredStop()
   at SvcGuest.ServiceInterface.Service.StopOnError(Object sender, EventArgs e)
   at SvcGuest.ServiceInterface.Supervisor.Stop()
   at SvcGuest.ServiceInterface.Service.OnStop()
   at System.ServiceProcess.ServiceBase.DeferredStop()
   at SvcGuest.ServiceInterface.Service.StopOnError(Object sender, EventArgs e)
   at SvcGuest.ServiceInterface.Supervisor.Stop()
   at SvcGuest.ServiceInterface.Service.OnStop()
   at System.ServiceProcess.ServiceBase.DeferredStop()
   at SvcGuest.ServiceInterface.Service.StopOnError(Object sender...

Memory leak on WMI service heavily blocking

Observed on Fluorine. Private working set ~10.3GiB.

At that time, Windows Update on Fluorine is f*cking up everything (100% CPU and lots of mem), WMI service is responding very slowly too.

Heap Stat

0:000> !eeheap
Loader Heap:
--------------------------------------
System Domain:     00007ffd960e04d0
LowFrequencyHeap:  00007ffd36050000(3000:1000) Size: 0x1000 (4096) bytes.
HighFrequencyHeap: 00007ffd36054000(9000:5000) Size: 0x5000 (20480) bytes.
StubHeap:          00007ffd3605d000(3000:3000) Size: 0x3000 (12288) bytes.
Virtual Call Stub Heap:
  IndcellHeap:     00007ffd36100000(6000:1000) Size: 0x1000 (4096) bytes.
  LookupHeap:      00007ffd3610c000(4000:1000) Size: 0x1000 (4096) bytes.
  ResolveHeap:     00007ffd36136000(3a000:1000) Size: 0x1000 (4096) bytes.
  DispatchHeap:    00007ffd36110000(26000:1000) Size: 0x1000 (4096) bytes.
  CacheEntryHeap:  00007ffd36106000(6000:1000) Size: 0x1000 (4096) bytes.
Total size:        Size: 0xe000 (57344) bytes.
--------------------------------------
Shared Domain:     00007ffd960dff00
LowFrequencyHeap:  00007ffd36050000(3000:1000) Size: 0x1000 (4096) bytes.
HighFrequencyHeap: 00007ffd36054000(9000:5000) Size: 0x5000 (20480) bytes.
StubHeap:          00007ffd3605d000(3000:3000) Size: 0x3000 (12288) bytes.
Virtual Call Stub Heap:
  IndcellHeap:     00007ffd36100000(6000:1000) Size: 0x1000 (4096) bytes.
  LookupHeap:      00007ffd3610c000(4000:1000) Size: 0x1000 (4096) bytes.
  ResolveHeap:     00007ffd36136000(3a000:1000) Size: 0x1000 (4096) bytes.
  DispatchHeap:    00007ffd36110000(26000:1000) Size: 0x1000 (4096) bytes.
  CacheEntryHeap:  00007ffd36106000(6000:1000) Size: 0x1000 (4096) bytes.
Total size:        Size: 0xe000 (57344) bytes.
--------------------------------------
Domain 1:          000001f2dc4e95e0
LowFrequencyHeap:  00007ffd36060000(3000:2000) 00007ffd36170000(10000:10000) 00007ffd36210000(10000:10000) 00007ffd36230000(10000:b000) Size: 0x2d000 (184320) bytes total, 0x1000 (4096) bytes wasted.
HighFrequencyHeap: 00007ffd36063000(a000:a000) 00007ffd36200000(10000:10000) 00007ffd36220000(10000:e000) Size: 0x28000 (163840) bytes.
StubHeap:          00007ffd3606d000(3000:3000) Size: 0x3000 (12288) bytes.
Virtual Call Stub Heap:
  IndcellHeap:     00007ffd36070000(4000:1000) Size: 0x1000 (4096) bytes.
  LookupHeap:      00007ffd3607b000(2000:1000) Size: 0x1000 (4096) bytes.
  ResolveHeap:     00007ffd360ac000(54000:2000) Size: 0x2000 (8192) bytes.
  DispatchHeap:    00007ffd3607d000(2f000:1000) Size: 0x1000 (4096) bytes.
  CacheEntryHeap:  00007ffd36074000(7000:1000) Size: 0x1000 (4096) bytes.
Total size:        Size: 0x5e000 (385024) bytes total, 0x1000 (4096) bytes wasted.
--------------------------------------
Jit code heap:
LoaderCodeHeap:    0000000000000000(0:0) Size: 0x0 (0) bytes.
Total size:        Size: 0x0 (0) bytes.
--------------------------------------
Module Thunk heaps:
Module 00007ffd91721000: Size: 0x0 (0) bytes.
Module 00007ffd36064120: Size: 0x0 (0) bytes.
Module 00007ffd85931000: Size: 0x0 (0) bytes.
Module 00007ffd36066ea8: Size: 0x0 (0) bytes.
Module 00007ffd911b1000: Size: 0x0 (0) bytes.
Module 00007ffd84cd1000: Size: 0x0 (0) bytes.
Module 00007ffd36207f08: Size: 0x0 (0) bytes.
Module 00007ffd91011000: Size: 0x0 (0) bytes.
Module 00007ffd88901000: Size: 0x0 (0) bytes.
Total size:              Size: 0x0 (0) bytes.
--------------------------------------
Module Lookup Table heaps:
Module 00007ffd91721000: Size: 0x0 (0) bytes.
Module 00007ffd36064120: Size: 0x0 (0) bytes.
Module 00007ffd85931000: Size: 0x0 (0) bytes.
Module 00007ffd36066ea8: Size: 0x0 (0) bytes.
Module 00007ffd911b1000: Size: 0x0 (0) bytes.
Module 00007ffd84cd1000: Size: 0x0 (0) bytes.
Module 00007ffd36207f08: Size: 0x0 (0) bytes.
Module 00007ffd91011000: Size: 0x0 (0) bytes.
Module 00007ffd88901000: Size: 0x0 (0) bytes.
Total size:              Size: 0x0 (0) bytes.
--------------------------------------
Total LoaderHeap size:   Size: 0x7a000 (499712) bytes total, 0x1000 (4096) bytes wasted.
=======================================
Number of GC Heaps: 1
generation 0 starts at 0x000001f47e9e0898
generation 1 starts at 0x000001f47e8f9aa0
generation 2 starts at 0x000001f2dd171000
ephemeral segment allocation context: none
         segment             begin         allocated              size
000001f2dd170000  000001f2dd171000  000001f2ed16e468  0xfffd468(268424296)
000001f2c8fd0000  000001f2c8fd1000  000001f2d8fcffa0  0xfffefa0(268431264)
000001f355880000  000001f355881000  000001f36587fd80  0xfffed80(268430720)
000001f3b6430000  000001f3b6431000  000001f3c642fc68  0xfffec68(268430440)
000001f417210000  000001f417211000  000001f42720feb8  0xfffeeb8(268431032)
000001f471150000  000001f471151000  000001f47f150c18  0xdfffc18(234880024)
Large object heap starts at 0x000001f2ed171000
         segment             begin         allocated              size
000001f2ed170000  000001f2ed171000  000001f2ed259ac8  0xe8ac8(953032)
Total Size:              Size: 0x5e0e1388 (1577980808) bytes.
------------------------------
GC Heap Size:            Size: 0x5e0e1388 (1577980808) bytes.

Objects on GC Heap

0:000> !dumpheap -stat
Statistics:
              MT    Count    TotalSize Class Name
00007ffd91e4be98        1           24 System.Collections.Generic.GenericEqualityComparer`1[[System.String, mscorlib]]
00007ffd91e4bdc8        1           24 System.Collections.Generic.GenericEqualityComparer`1[[System.Int32, mscorlib]]
00007ffd91e455c0        1           24 System.Reflection.__Filters
00007ffd91e45218        1           24 System.Collections.Generic.ObjectEqualityComparer`1[[System.RuntimeType, mscorlib]]
00007ffd91e42518        1           24 System.Resources.FastResourceComparer
00007ffd91e41ca8        1           24 System.Collections.Generic.ObjectEqualityComparer`1[[System.Object, mscorlib]]
00007ffd91e40c38        1           24 System.DefaultBinder
00007ffd91e3a410        1           24 System.Text.DecoderExceptionFallback
00007ffd91e3a398        1           24 System.Text.EncoderExceptionFallback
00007ffd91e36130        1           24 System.Security.Permissions.ReflectionPermission
00007ffd91e347f0        1           24 System.IntPtr
00007ffd91e31e88        1           24 System.WeakReference
00007ffd91e31740        1           24 System.Reflection.Missing
00007ffd91e315f8        1           24 System.__Filters
00007ffd91e2efc8        1           24 System.Collections.Generic.ObjectEqualityComparer`1[[System.Type, mscorlib]]
00007ffd91e1e190        1           24 System.Runtime.Remoting.Activation.ActivationListener
00007ffd91e1e088        1           24 System.Runtime.Remoting.Activation.LocalActivator
00007ffd91e1dfc8        1           24 System.Runtime.Remoting.Proxies.ProxyAttribute
00007ffd91e1dd50        1           24 System.Runtime.Remoting.Lifetime.LeaseLifeTimeServiceProperty
00007ffd91e0cce8        1           24 System.Collections.Generic.GenericEqualityComparer`1[[System.Char, mscorlib]]
00007ffd91e0c968        1           24 System.Reflection.RuntimeEventInfo[]
00007ffd91e04000        1           24 System.Collections.Comparer
00007ffd91e03930        1           24 System.Attribute[]
00007ffd91e02808        1           24 System.LocalDataStoreHolder
00007ffd91e02600        1           24 System.Collections.Generic.GenericArraySortHelper`1[[System.UInt64, mscorlib]]
00007ffd91e011a8        1           24 System.Collections.Generic.GenericComparer`1[[System.Int32, mscorlib]]
00007ffd91dfd848        1           24 System.Reflection.CerHashtable`2[[System.Reflection.RuntimeMethodInfo, mscorlib],[System.Reflection.RuntimeMethodInfo, mscorlib]]
00007ffd91dbfd70        1           24 System.Collections.Generic.IEnumerable`1[[System.Security.Claims.Claim, mscorlib]][]
00007ffd91dbfcf8        1           24 System.Security.Claims.Claim[]
00007ffd91dbf830        1           24 System.Threading.ThreadPoolWorkQueue+SparseArray`1[[System.Threading.ThreadPoolWorkQueue+WorkStealingQueue, mscorlib]]
00007ffd91dbe2d8        1           24 System.AppDomainPauseManager
00007ffd910483d0        1           24 System.ServiceProcess.Res
00007ffd3622d5e8        1           24 SvcGuest.ServiceInterface.Supervisor+<>c
00007ffd3622aac8        1           24 SvcGuest.ProgramWrappers.ProgramWrapper+<>c
00007ffd36228480        1           24 SvcGuest.Config+<>c
00007ffd36227ba0        1           24 SvcGuest.ExecConfig[]
00007ffd36227770        1           24 SvcGuest.Logging.ConsoleLogger
00007ffd36227628        1           24 SvcGuest.Logging.DebugLogger
00007ffd362257b8        1           24 SvcGuest.Logging.LogMuxer
00007ffd36223968        1           24 System.Lazy`1+Boxed[[SvcGuest.Program, SvcGuest]]
00007ffd362237d0        1           24 System.Lazy`1+<>c[[SvcGuest.Program, SvcGuest]]
00007ffd36222510        1           24 McMaster.Extensions.CommandLineUtils.Conventions.DefaultHelpOptionConvention
00007ffd36221e28        1           24 McMaster.Extensions.CommandLineUtils.Conventions.ConstructorInjectionConvention+<>c__5`1[[SvcGuest.Program, SvcGuest]]
00007ffd36220488        1           24 McMaster.Extensions.CommandLineUtils.Conventions.ConstructorInjectionConvention+<>c
00007ffd3620fb18        1           24 McMaster.Extensions.CommandLineUtils.CommandLineApplication+<>c__DisplayClass126_0
00007ffd3620f370        1           24 McMaster.Extensions.CommandLineUtils.Conventions.SubcommandAttributeConvention+<>c
00007ffd3620b0f0        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.ValueParserProvider+<>c
00007ffd3620a388        1           24 McMaster.Extensions.CommandLineUtils.CollectionParserProvider
00007ffd362094e0        1           24 McMaster.Extensions.CommandLineUtils.Validation.IOptionValidator[]
00007ffd36207e80        1           24 McMaster.Extensions.CommandLineUtils.CommandOptionTypeMapper
00007ffd36206288        1           24 McMaster.Extensions.CommandLineUtils.Conventions.SubcommandAttributeConvention
00007ffd36206188        1           24 McMaster.Extensions.CommandLineUtils.Conventions.ArgumentAttributeConvention
00007ffd36205d48        1           24 McMaster.Extensions.CommandLineUtils.Conventions.OptionAttributeConvention
00007ffd36205af8        1           24 McMaster.Extensions.CommandLineUtils.Conventions.HelpOptionAttributeConvention
00007ffd362055c8        1           24 McMaster.Extensions.CommandLineUtils.Conventions.VersionOptionAttributeConvention
00007ffd36205310        1           24 McMaster.Extensions.CommandLineUtils.Conventions.VersionOptionFromMemberAttributeConvention
00007ffd36205248        1           24 McMaster.Extensions.CommandLineUtils.Conventions.CommandAttributeConvention
00007ffd36205180        1           24 McMaster.Extensions.CommandLineUtils.Conventions.AttributeConvention
00007ffd362050a0        1           24 McMaster.Extensions.CommandLineUtils.Conventions.ConstructorInjectionConvention
00007ffd36204f68        1           24 McMaster.Extensions.CommandLineUtils.Conventions.ValidationErrorMethodConvention
00007ffd36204ea0        1           24 McMaster.Extensions.CommandLineUtils.ValidateMethodConvention
00007ffd36204dd8        1           24 McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention
00007ffd36204ce0        1           24 McMaster.Extensions.CommandLineUtils.Conventions.ParentPropertyConvention
00007ffd36204c18        1           24 McMaster.Extensions.CommandLineUtils.Conventions.SubcommandPropertyConvention
00007ffd36204b50        1           24 McMaster.Extensions.CommandLineUtils.Conventions.RemainingArgsPropertyConvention
00007ffd36204a88        1           24 McMaster.Extensions.CommandLineUtils.Conventions.AppNameFromEntryAssemblyConvention
00007ffd36203dc0        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.UriValueParser
00007ffd36203ba8        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.DoubleValueParser
00007ffd36203990        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.FloatValueParser
00007ffd36203778        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.UInt64ValueParser
00007ffd36203560        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.UInt32ValueParser
00007ffd36203348        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.UInt16ValueParser
00007ffd36203130        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.Int64ValueParser
00007ffd36202f18        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.Int32ValueParser
00007ffd36202d00        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.Int16ValueParser
00007ffd36202ae8        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.ByteValueParser
00007ffd362028d0        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.BooleanValueParser
00007ffd36202638        1           24 McMaster.Extensions.CommandLineUtils.Abstractions.StringValueParser
00007ffd36201840        1           24 McMaster.Extensions.CommandLineUtils.CommandLineApplication[]
00007ffd362013a8        1           24 McMaster.Extensions.CommandLineUtils.Validation.ICommandValidator[]
00007ffd36200d10        1           24 McMaster.Extensions.CommandLineUtils.CommandLineApplication+<>c
00007ffd3606b140        1           24 McMaster.Extensions.CommandLineUtils.CommandLineApplication`1+<>c[[SvcGuest.Program, SvcGuest]]
00007ffd3606b058        1           24 McMaster.Extensions.CommandLineUtils.HelpText.DefaultHelpTextGenerator
00007ffd36069e88        1           24 McMaster.Extensions.CommandLineUtils.CommandLineApplication+Builder
00007ffd36068b80        1           24 McMaster.Extensions.CommandLineUtils.PhysicalConsole
00007ffd91e2f460        1           32 System.Security.Policy.AssemblyEvidenceFactory
00007ffd91e2f318        1           32 Microsoft.Win32.SafeHandles.SafePEFileHandle
00007ffd91e240b0        1           32 Microsoft.Win32.SafeHandles.SafeLsaPolicyHandle
00007ffd91e05800        1           32 System.Security.PermissionTokenKeyComparer
00007ffd91e03268        1           32 System.Diagnostics.Tracing.ActivityTracker
00007ffd91e02970        1           32 System.LocalDataStore
00007ffd91e027a8        1           32 System.LocalDataStoreElement
00007ffd91de99e0        1           32 System.Runtime.InteropServices.NativeBuffer+EmptySafeHandle
00007ffd91dccff0        1           32 Microsoft.Win32.SafeHandles.SafeLsaLogonProcessHandle
00007ffd91db73e0        1           32 System.Threading.TimerQueue+AppDomainTimerSafeHandle
00007ffd91047278        1           32 System.ServiceProcess.ServiceBase[]
00007ffd8893aeb0        1           32 System.Management.WbemDefPath
00007ffd85d4b8b0        1           32 Microsoft.Win32.SafeHandles.SafeEventLogWriteHandle
00007ffd36227930        1           32 SvcGuest.Logging.LegacyEventLogger
00007ffd36225f00        1           32 SvcGuest.Config
00007ffd3620fa40        1           32 McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention+<>c__DisplayClass0_0
00007ffd3620f5f8        1           32 System.SZArrayHelper+SZGenericArrayEnumerator`1[[McMaster.Extensions.CommandLineUtils.SubcommandAttribute, McMaster.Extensions.CommandLineUtils]]
00007ffd36201148        1           32 McMaster.Extensions.CommandLineUtils.Conventions.ConventionContext
00007ffd36200ff8        1           32 McMaster.Extensions.CommandLineUtils.Abstractions.ValueParserProvider
00007ffd91e43600        1           40 System.TimeZoneInfo+OffsetAndRule
00007ffd91e37d00        1           40 System.Collections.Stack
00007ffd91e35268        1           40 System.Reflection.CerHashtable`2+Table[[System.String, mscorlib],[System.Reflection.RuntimePropertyInfo[], mscorlib]]
00007ffd91e05ab8        1           40 System.Reflection.CerHashtable`2+Table[[System.String, mscorlib],[System.Reflection.RuntimeFieldInfo[], mscorlib]]
00007ffd91e03b88        1           40 System.Reflection.CerHashtable`2+Table[[System.String, mscorlib],[System.Reflection.RuntimeMethodInfo[], mscorlib]]
00007ffd91e03a30        1           40 System.WeakReference[]
00007ffd91e02728        1           40 System.LocalDataStoreSlot
00007ffd91dfd8b8        1           40 System.Reflection.CerHashtable`2+Table[[System.Reflection.RuntimeMethodInfo, mscorlib],[System.Reflection.RuntimeMethodInfo, mscorlib]]
00007ffd91deeab0        1           40 System.Runtime.InteropServices.SafeHeapHandleCache
00007ffd91de9358        1           40 System.Runtime.InteropServices.StringBuffer
00007ffd91dd87b8        1           40 Microsoft.Win32.SafeHandles.SafeLsaReturnBufferHandle
00007ffd91dc4bb0        1           40 System.Runtime.InteropServices.SafeHeapHandle
00007ffd91dbf5c0        1           40 System.Threading.ThreadPoolWorkQueue
00007ffd91dbe6a0        1           40 Microsoft.Win32.Win32Native+InputRecord
00007ffd91dbe4b0        1           40 System.IO.Stream+NullStream
00007ffd917335c0        1           40 System.Collections.Generic.List`1[[System.WeakReference, mscorlib]]
00007ffd91733370        1           40 System.Collections.Generic.List`1[[System.LocalDataStore, mscorlib]]
00007ffd36226fd0        1           40 System.Collections.Generic.List`1[[SvcGuest.Logging.Logger, SvcGuest]]
00007ffd36225cd8        1           40 SvcGuest.ServiceInterface.Supervisor
00007ffd3620a930        1           40 System.Collections.Generic.List`1[[System.Action`1[[McMaster.Extensions.CommandLineUtils.Abstractions.ParseResult, McMaster.Extensions.CommandLineUtils]], mscorlib]]
00007ffd36204908        1           40 System.Lazy`1[[SvcGuest.Program, SvcGuest]]
00007ffd36200630        1           40 System.Collections.Generic.List`1[[McMaster.Extensions.CommandLineUtils.CommandLineApplication, McMaster.Extensions.CommandLineUtils]]
00007ffd36200038        1           40 System.Collections.Generic.List`1[[McMaster.Extensions.CommandLineUtils.CommandArgument, McMaster.Extensions.CommandLineUtils]]
00007ffd3606c7e8        1           40 System.Collections.Generic.List`1[[McMaster.Extensions.CommandLineUtils.CommandOption, McMaster.Extensions.CommandLineUtils]]
00007ffd3606bd90        1           40 System.Collections.Generic.List`1[[McMaster.Extensions.CommandLineUtils.Validation.ICommandValidator, McMaster.Extensions.CommandLineUtils]]
00007ffd3606b700        1           40 System.Collections.Generic.List`1[[McMaster.Extensions.CommandLineUtils.Conventions.IConvention, McMaster.Extensions.CommandLineUtils]]
00007ffd36068f98        1           40 McMaster.Extensions.CommandLineUtils.Internal.DefaultCommandLineContext
00007ffd36054960        1           40 System.Lazy`1[[System.IServiceProvider, mscorlib]]
00007ffd91e47bb8        1           48 System.SharedStatics
00007ffd91e422c0        2           48 System.Resources.ManifestBasedResourceGroveler
00007ffd91e42260        2           48 System.Resources.ResourceManager+ResourceManagerMediator
00007ffd91e404a0        1           48 System.RuntimeType+ActivatorCache
00007ffd91e3b368        1           48 System.Text.ASCIIEncoding
00007ffd91e35e70        1           48 System.Threading.ManualResetEvent
00007ffd91e32770        1           48 System.Threading.AutoResetEvent
00007ffd91e30938        1           48 System.Text.UTF8Encoding+UTF8EncodingSealed
00007ffd91e2e658        1           48 System.OperatingSystem
00007ffd91e2b0e0        2           48 System.OrdinalComparer
00007ffd91e1eb78        1           48 System.Runtime.Remoting.RemotingConfigHandler+RemotingConfigInfo
00007ffd91e1dc28        1           48 System.Runtime.Remoting.Channels.ChannelServicesData
00007ffd91e00c10        1           48 System.Environment+ResourceHelper
00007ffd91dc4230        2           48 Microsoft.Win32.Win32Native+LUID
00007ffd91db7388        1           48 System.Threading.TimerQueue
00007ffd91db7308        2           48 System.Threading.TimerHolder
00007ffd85d32d98        1           48 System.Diagnostics.EventLog
00007ffd362016b8        2           48 McMaster.Extensions.CommandLineUtils.CommandArgument[]
00007ffd36065f78        1           48 SvcGuest.Program
00007ffd91e43bb8        1           56 System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.Reflection.RuntimeFieldInfo, mscorlib]]
00007ffd91e350d0        1           56 System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.Reflection.RuntimePropertyInfo, mscorlib]]
00007ffd91e327f0        1           56 System.Collections.Queue
00007ffd91e2dce0        1           56 System.Security.PermissionTokenFactory
00007ffd91e0c8f8        1           56 System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.Reflection.RuntimeEventInfo, mscorlib]]
00007ffd91e03190        1           56 System.Diagnostics.Tracing.EtwSession[]
00007ffd91e02900        1           56 System.LocalDataStoreMgr
00007ffd91e02088        1           56 System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.RuntimeType, mscorlib]]
00007ffd91dbf398        1           56 System.Text.UTF8Encoding+UTF8Encoder
00007ffd91e42ed0        1           64 System.TimeZoneInfo+CachedData
00007ffd91e42778        2           64 System.Resources.ResourceReader+TypeLimitingDeserializationBinder
00007ffd91e42200        2           64 System.Resources.ResourceManager+CultureNameResourceSetPair
00007ffd91e38d38        1           64 System.UnhandledExceptionEventHandler
00007ffd91e35f00        1           64 System.Threading.WaitCallback
00007ffd91e32fa8        2           64 Microsoft.Win32.SafeHandles.SafeWaitHandle
00007ffd91e32910        2           64 System.Threading.Timer
00007ffd91e2f3c0        1           64 System.Security.Policy.PEFileEvidenceFactory
00007ffd91e2bad8        2           64 System.CultureAwareComparer
00007ffd91e2acc8        1           64 System.ResolveEventHandler
00007ffd91e03ea0        1           64 System.CtorDelegate
00007ffd91e034a8        1           64 Microsoft.Win32.UnsafeNativeMethods+ManifestEtw+EtwEnableCallback
00007ffd910479b8        1           64 System.ServiceProcess.NativeMethods+ServiceMainCallback
00007ffd91047790        1           64 System.ServiceProcess.NativeMethods+ServiceControlCallback
00007ffd910476d8        1           64 System.ServiceProcess.NativeMethods+ServiceControlCallbackEx
00007ffd88a36c30        1           64 System.Management.WmiNetUtilsHelper+Initialize
00007ffd88a36b78        1           64 System.Management.WmiNetUtilsHelper+GetErrorInfo
00007ffd8893ec58        1           64 System.Management.WmiNetUtilsHelper+GetMethodOrigin
00007ffd8893eb58        1           64 System.Management.WmiNetUtilsHelper+GetPropertyHandle
00007ffd8893e520        1           64 System.Management.WmiNetUtilsHelper+QualifierSet_GetNames
00007ffd8893e260        1           64 System.Management.WmiNetUtilsHelper+QualifierSet_Next
00007ffd8893e148        1           64 System.Management.WmiNetUtilsHelper+VerifyClientKey
00007ffd8893e090        1           64 System.Management.WmiNetUtilsHelper+EndEnumeration
00007ffd8893d648        1           64 System.Management.WmiNetUtilsHelper+QualifierSet_Put
00007ffd8893d018        1           64 System.Management.WmiNetUtilsHelper+GetObjectText
00007ffd8893cca8        1           64 System.Management.WmiNetUtilsHelper+BlessIWbemServices
00007ffd8893c950        1           64 System.Management.WmiNetUtilsHelper+Next
00007ffd8893c580        1           64 System.Management.WmiNetUtilsHelper+CompareTo
00007ffd8893c368        1           64 System.Management.WmiNetUtilsHelper+GetCurrentApartmentType
00007ffd8893bec0        1           64 System.Management.WmiNetUtilsHelper+SpawnDerivedClass
00007ffd8893bba0        1           64 System.Management.WmiNetUtilsHelper+SpawnInstance
00007ffd8893b900        1           64 System.Management.WmiNetUtilsHelper+EndMethodEnumeration
00007ffd8893b728        1           64 System.Management.WmiNetUtilsHelper+BlessIWbemServicesObject
00007ffd8893b610        1           64 System.Management.WmiNetUtilsHelper+SetSecurity
00007ffd8893b488        1           64 System.Management.WmiNetUtilsHelper+BeginMethodEnumeration
00007ffd8893b350        1           64 System.Management.WmiNetUtilsHelper+CloneEnumWbemClassObject
00007ffd8893a8f8        1           64 System.Management.WmiNetUtilsHelper+WritePropertyValue
00007ffd8893a488        1           64 System.Management.WmiNetUtilsHelper+DeleteMethod
00007ffd8893a1a0        1           64 System.Management.WmiNetUtilsHelper+PutInstanceWmi
00007ffd88939a50        1           64 System.Management.WmiNetUtilsHelper+GetMethodQualifierSet
00007ffd88939880        1           64 System.Management.WmiNetUtilsHelper+Delete
00007ffd88939720        1           64 System.Management.WmiNetUtilsHelper+ConnectServerWmi
00007ffd88939668        1           64 System.Management.WmiNetUtilsHelper+GetDemultiplexedStub
00007ffd88939398        1           64 System.Management.WmiNetUtilsHelper+QualifierSet_Get
00007ffd88939110        1           64 System.Management.WmiNetUtilsHelper+CreateInstanceEnumWmi
00007ffd88938f98        1           64 System.Management.WmiNetUtilsHelper+CreateClassEnumWmi
00007ffd88938e20        1           64 System.Management.WmiNetUtilsHelper+InheritsFrom
00007ffd88938778        1           64 System.Management.WmiNetUtilsHelper+Get
00007ffd889386c0        1           64 System.Management.WmiNetUtilsHelper+GetMethod
00007ffd88938410        1           64 System.Management.WmiNetUtilsHelper+ExecQueryWmi
00007ffd88938358        1           64 System.Management.WmiNetUtilsHelper+GetNames
00007ffd88938210        1           64 System.Management.WmiNetUtilsHelper+PutClassWmi
00007ffd88937ed8        1           64 System.Management.WmiNetUtilsHelper+QualifierSet_BeginEnumeration
00007ffd889378c0        1           64 System.Management.WmiNetUtilsHelper+GetPropertyQualifierSet
00007ffd889377a8        1           64 System.Management.WmiNetUtilsHelper+GetQualifierSet
00007ffd889374b0        1           64 System.Management.WmiNetUtilsHelper+GetPropertyOrigin
00007ffd88937170        1           64 System.Management.WmiNetUtilsHelper+Put
00007ffd88936ef0        1           64 System.Management.WmiNetUtilsHelper+ExecNotificationQueryWmi
00007ffd88936e38        1           64 System.Management.WmiNetUtilsHelper+QualifierSet_Delete
00007ffd88936b78        1           64 System.Management.WmiNetUtilsHelper+ResetSecurity
00007ffd88936ac0        1           64 System.Management.WmiNetUtilsHelper+BeginEnumeration
00007ffd88936948        1           64 System.Management.WmiNetUtilsHelper+NextMethod
00007ffd88936778        1           64 System.Management.WmiNetUtilsHelper+PutMethod
00007ffd88936118        1           64 System.Management.WmiNetUtilsHelper+QualifierSet_EndEnumeration
00007ffd85d69068        1           64 System.LocalAppContext+TryGetSwitchDelegate
00007ffd3622d698        1           64 System.Func`2[[SvcGuest.ProgramWrappers.ProgramWrapper, SvcGuest],[System.Boolean, mscorlib]]
00007ffd36228530        1           64 System.Func`2[[System.String, mscorlib],[SvcGuest.ExecConfig, SvcGuest]]
00007ffd36227dc8        1           64 SvcGuest.ServiceInterface.Supervisor+SupervisorQuitHandler
00007ffd36200dc0        1           64 System.Func`2[[System.ComponentModel.DataAnnotations.ValidationResult, System.ComponentModel.DataAnnotations],[System.Int32, mscorlib]]
00007ffd36058068        1           64 System.Func`2[[System.Int32, mscorlib],[System.Int32, mscorlib]]
00007ffd36055b40        1           64 System.Func`2[[System.Reflection.ConstructorInfo, mscorlib],[System.Int32, mscorlib]]
00007ffd36055980        1           64 System.Func`1[[System.Threading.Tasks.Task`1[[System.Int32, mscorlib]], mscorlib]]
00007ffd36054840        1           64 System.Func`1[[System.IServiceProvider, mscorlib]]
00007ffd91e48950        1           72 System.Security.Policy.Evidence
00007ffd91e1e6d0        1           72 System.Runtime.Remoting.Metadata.RemotingTypeCachedData
00007ffd91e24140        2           80 Microsoft.Win32.SafeHandles.SafeLsaMemoryHandle
00007ffd91e1e890        1           80 System.Runtime.Remoting.Metadata.SoapTypeAttribute
00007ffd91e1dbc8        1           80 System.Runtime.Remoting.DomainSpecificRemotingData
00007ffd91e029d0        2           80 System.LocalDataStore[]
00007ffd9173b458        1           80 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Globalization.CultureData, mscorlib]]
00007ffd9173b298        1           80 System.Collections.Generic.Dictionary`2[[System.RuntimeType, mscorlib],[System.RuntimeType, mscorlib]]
00007ffd9173ab08        1           80 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.TimeZoneInfo, mscorlib]]
00007ffd91739e10        1           80 System.Collections.Generic.Dictionary`2[[System.Type, mscorlib],[System.Security.Policy.EvidenceTypeDescriptor, mscorlib]]
00007ffd91739cd8        1           80 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.AppContext+SwitchValueState, mscorlib]]
00007ffd917334a0        1           80 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.LocalDataStoreSlot, mscorlib]]
00007ffd36227a18        2           80 SvcGuest.Logging.Logger[]
00007ffd36226728        2           80 SvcGuest.ProgramWrappers.ProgramWrapper[]
00007ffd36226120        2           80 System.Collections.Generic.List`1[[SvcGuest.ProgramWrappers.ProgramWrapper, SvcGuest]]
00007ffd36201c58        1           80 System.Collections.Generic.Dictionary`2[[System.Type, mscorlib],[McMaster.Extensions.CommandLineUtils.Abstractions.IValueParser, McMaster.Extensions.CommandLineUtils]]
00007ffd36056c90        1           80 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[System.String, mscorlib]], mscorlib]], mscorlib]]
00007ffd91e40370        1           88 System.Boolean[]
00007ffd91e03330        1           88 System.Diagnostics.Tracing.EventSource+OverideEventProvider
00007ffd91e4c070        1           96 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Globalization.CultureData, mscorlib]][]
00007ffd91e4ba28        3           96 System.Version
00007ffd91e4ae00        2           96 System.Text.UTF8Encoding
00007ffd91e438b8        1           96 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.String, mscorlib]][]
00007ffd91e43490        1           96 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.TimeZoneInfo, mscorlib]][]
00007ffd91e40578        2           96 System.RuntimeType+ActivatorCacheEntry
00007ffd91e321b0        4           96 System.DateTime
00007ffd91e31f28        4           96 System.TimeSpan
00007ffd91dbe900        2           96 System.IO.TextWriter+SyncTextWriter
00007ffd360574e8        1           96 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[System.String, mscorlib]], mscorlib]], mscorlib]][]
00007ffd91e1e400        1          104 System.Runtime.Remoting.Contexts.Context
00007ffd91e4aa18        1          112 System.IO.StreamWriter
00007ffd91e4a550        2          112 System.Text.UnicodeEncoding
00007ffd91e41260        2          112 System.Text.UTF8Encoding+UTF8Decoder
00007ffd91e352d8        1          112 System.Reflection.RuntimePropertyInfo[][]
00007ffd91e2dc08        2          112 System.Security.Util.TokenBasedSet
00007ffd91e2a4e8        2          112 System.Reflection.RuntimePropertyInfo[]
00007ffd91e03bf8        1          112 System.Reflection.RuntimeMethodInfo[][]
00007ffd85d5ef38        2          112 System.IO.Compression.HuffmanTree
00007ffd3620af28        2          112 System.Action`1[[McMaster.Extensions.CommandLineUtils.Abstractions.ParseResult, McMaster.Extensions.CommandLineUtils]][]
00007ffd91e1dc88        2          120 System.Runtime.Remoting.Contexts.IContextProperty[]
00007ffd3620a898        3          120 McMaster.Extensions.CommandLineUtils.Conventions.OptionAttributeConventionBase`1+<>c__DisplayClass0_1[[McMaster.Extensions.CommandLineUtils.OptionAttribute, McMaster.Extensions.CommandLineUtils]]
00007ffd92903798        2          128 System.Func`1[[System.Int32, mscorlib]]
00007ffd91e48ae8        2          128 System.Security.PermissionSet
00007ffd91e48380        1          128 System.AppDomainSetup
00007ffd91e45660        2          128 System.Reflection.TypeFilter
00007ffd91e355c8        2          128 System.Threading.ContextCallback
00007ffd91e320c8        2          128 System.Threading.TimerCallback
00007ffd91e2f860        2          128 System.Type[]
00007ffd91e2e738        2          128 System.Globalization.CompareInfo
00007ffd91e024a0        4          128 System.Enum+ValuesAndNames
00007ffd8893b0c0        2          128 System.Management.WmiNetUtilsHelper+Clone
00007ffd85d68998        2          128 System.Timers.ElapsedEventHandler
00007ffd3606b3c0        2          128 System.Func`1[[SvcGuest.Program, SvcGuest]]
00007ffd91e42d70        2          144 System.TimeZoneInfo
00007ffd91e420a0        2          144 System.Resources.RuntimeResourceSet
00007ffd91e38660        2          144 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
00007ffd91e273a8        2          144 System.IO.BinaryReader
00007ffd91e40500        1          152 System.RuntimeType+ActivatorCacheEntry[]
00007ffd85d45e38        1          152 System.Diagnostics.EventLogInternal
00007ffd91e4bb58        1          160 System.Globalization.CalendarData
00007ffd91e4a968        5          160 System.Text.DecoderReplacementFallback
00007ffd91e4a8d8        5          160 System.Text.EncoderReplacementFallback
00007ffd91e479c8        1          160 System.ExecutionEngineException
00007ffd91e47950        1          160 System.StackOverflowException
00007ffd91e478d8        1          160 System.OutOfMemoryException
00007ffd91e476f0        1          160 System.Exception
00007ffd91e2db58        5          160 System.Security.PermissionToken
00007ffd91e2d750        1          160 System.Security.PermissionToken[]
00007ffd91e05b28        1          160 System.Reflection.RuntimeFieldInfo[][]
00007ffd91dbf630        4          160 System.Threading.ThreadPoolWorkQueue+QueueSegment
00007ffd9173ae18        2          160 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String, mscorlib]]
00007ffd9173a8c8        2          160 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Resources.ResourceLocator, mscorlib]]
00007ffd9173a7a8        2          160 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Resources.ResourceSet, mscorlib]]
00007ffd9173a698        2          160 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Boolean, mscorlib]]
00007ffd9172e9b0        2          160 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Reflection.PropertyInfo, mscorlib]]
00007ffd36056568        2          160 System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[System.String, mscorlib]], mscorlib]]
00007ffd91e407b0        3          168 System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.Reflection.RuntimeConstructorInfo, mscorlib]]
00007ffd91e03758        2          176 System.Globalization.TextInfo
00007ffd91db72a8        2          176 System.Threading.TimerQueueTimer
00007ffd36201530        2          176 McMaster.Extensions.CommandLineUtils.CommandOption[]
00007ffd91e42878        2          192 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Resources.ResourceSet, mscorlib]][]
00007ffd91e41800        1          192 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Boolean, mscorlib]][]
00007ffd91e32510        6          192 System.Guid
00007ffd91e316b0        3          192 System.Reflection.MemberFilter
00007ffd91e30768        3          192 System.Threading.ReaderWriterLock
00007ffd91e2d688        1          192 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.AppContext+SwitchValueState, mscorlib]][]
00007ffd91e2b398        1          192 System.Diagnostics.Tracing.FrameworkEventSource
00007ffd85d68830        2          192 System.Timers.Timer
00007ffd362253b0        1          192 SvcGuest.ServiceInterface.Service
00007ffd3620a808        8          192 McMaster.Extensions.CommandLineUtils.ReflectionHelper+<>c__DisplayClass0_1
00007ffd36057878        2          192 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Collections.Generic.List`1[[System.String, mscorlib]], mscorlib]][]
00007ffd91e408d8        3          200 System.Reflection.RuntimeConstructorInfo[]
00007ffd91e4af78        2          208 System.IO.UnmanagedMemoryStream
00007ffd91e309c8        1          208 System.Globalization.CalendarData[]
00007ffd91e47c78        1          216 System.AppDomain
00007ffd36229280        1          224 SvcGuest.ProgramWrappers.NativeProgramWrapper
00007ffd91e02420        4          256 System.UInt64[]
00007ffd91dc00c0       11          264 System.StubHelpers.CleanupWorkList
00007ffd91e41fc8        2          272 System.Resources.ResourceReader
00007ffd3606a728        1          280 McMaster.Extensions.CommandLineUtils.CommandLineApplication`1[[SvcGuest.Program, SvcGuest]]
00007ffd91e450e0        1          288 System.Collections.Generic.Dictionary`2+Entry[[System.RuntimeType, mscorlib],[System.RuntimeType, mscorlib]][]
00007ffd91e2d960        9          288 Microsoft.Win32.SafeHandles.SafeRegistryHandle
00007ffd91e35a78        2          304 System.Resources.ResourceManager
00007ffd36201220        2          304 McMaster.Extensions.CommandLineUtils.Conventions.IConvention[]
00007ffd91e47a40        2          320 System.Threading.ThreadAbortException
00007ffd91e326b8        5          320 System.EventHandler
00007ffd3620a4c0        8          320 McMaster.Extensions.CommandLineUtils.Conventions.OptionAttributeConventionBase`1+<>c__DisplayClass0_0[[McMaster.Extensions.CommandLineUtils.OptionAttribute, McMaster.Extensions.CommandLineUtils]]
00007ffd91e43c28        9          352 System.Reflection.RuntimeFieldInfo[]
00007ffd91dc0130       11          352 System.StubHelpers.CleanupWorkListElement
00007ffd3622d8a0        9          360 System.Collections.Generic.List`1+Enumerator[[SvcGuest.ProgramWrappers.ProgramWrapper, SvcGuest]]
00007ffd36208dd8        9          360 System.Collections.Generic.List`1[[McMaster.Extensions.CommandLineUtils.Validation.IOptionValidator, McMaster.Extensions.CommandLineUtils]]
00007ffd91e429e0        2          368 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Resources.ResourceLocator, mscorlib]][]
00007ffd91e4b100        3          384 System.Globalization.CultureInfo
00007ffd91df2a28        2          384 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Reflection.PropertyInfo, mscorlib]][]
00007ffd91e2df10        7          392 Microsoft.Win32.RegistryKey
00007ffd91e4c148        2          432 System.Globalization.NumberFormatInfo
00007ffd91e30700        1          432 System.Collections.Generic.Dictionary`2+Entry[[System.Type, mscorlib],[System.Security.Policy.EvidenceTypeDescriptor, mscorlib]][]
00007ffd91dbf988       11          440 System.Threading.QueueUserWorkItemCallback
00007ffd9172cec0       11          440 System.Collections.Generic.List`1[[System.StubHelpers.CleanupWorkListElement, mscorlib]]
00007ffd85d5b888       20          480 System.Diagnostics.NtProcessManager+ValueId
00007ffd91e4a388        9          504 System.Reflection.RuntimeAssembly
00007ffd91e35d38       21          504 System.Security.Permissions.SecurityPermission
00007ffd91e345e0        8          512 System.Reflection.RuntimeModule
00007ffd3620a220        8          512 System.Action`1[[McMaster.Extensions.CommandLineUtils.Abstractions.ParseResult, McMaster.Extensions.CommandLineUtils]]
00007ffd36209ef8        8          512 McMaster.Extensions.CommandLineUtils.SetPropertyDelegate
00007ffd91e02888        1          536 System.LocalDataStoreElement[]
00007ffd36204048        1          576 System.Collections.Generic.Dictionary`2+Entry[[System.Type, mscorlib],[McMaster.Extensions.CommandLineUtils.Abstractions.IValueParser, McMaster.Extensions.CommandLineUtils]][]
00007ffd91e45e28       11          616 System.RuntimeType+RuntimeTypeCache+MemberInfoCache`1[[System.Reflection.RuntimeMethodInfo, mscorlib]]
00007ffd91dbfe78       12          640 System.StubHelpers.CleanupWorkListElement[]
00007ffd9173ac88       16          640 System.Collections.Generic.List`1[[System.String, mscorlib]]
00007ffd91e04230        9          720 System.Reflection.RtFieldInfo
00007ffd91e21098       19          760 System.Collections.Generic.List`1+Enumerator[[System.Int32, mscorlib]]
00007ffd362268a0       19          760 System.Collections.Generic.List`1[[SvcGuest.ExecConfig, SvcGuest]]
00007ffd3606c758        9          792 McMaster.Extensions.CommandLineUtils.CommandOption
00007ffd91e34ea8        8          832 System.Reflection.RuntimePropertyInfo
00007ffd91e2b9e0       41         1128 System.RuntimeType[]
00007ffd91e2ea48       13         1144 System.Collections.Hashtable+SyncHashtable
00007ffd8893ee58       39         1248 System.Management.WbemLocator
00007ffd92908b88        1         1304 System.Runtime.InteropServices.SafeHeapHandle[]
00007ffd3622ade0       28         1568 System.Linq.OrderedEnumerable`2[[System.Int32, mscorlib],[System.Int32, mscorlib]]
00007ffd91e4b460        3         1608 System.Globalization.CultureData
00007ffd91e396e8       11         1760 System.NullReferenceException
00007ffd91e31180       16         1792 System.Reflection.RuntimeConstructorInfo
00007ffd3622d398       28         1792 System.Linq.OrderedEnumerable`1+<GetEnumerator>d__1[[System.Int32, mscorlib]]
00007ffd91e40970       16         1920 System.Reflection.RuntimeParameterInfo
00007ffd88a36eb8       61         1952 System.Management.IWbemClassObject_DoNotMarshal[]
00007ffd85d41120       95         2280 System.Diagnostics.EventLogEntryType
00007ffd91e42ca8        3         2316 System.UInt32[]
00007ffd88938a38       74         2368 System.Management.SecuredIWbemServicesHandler
00007ffd91e347a8       19         3040 System.RuntimeType+RuntimeTypeCache
00007ffd91e31558       38         3040 System.Signature
00007ffd91e00cb8       95         3040 System.Runtime.InteropServices.GCHandle[]
00007ffd88a36f30       99         3168 System.Management.IWbemClassObjectFreeThreaded[]
00007ffd85d22a48      124         3968 System.Collections.Specialized.NameObjectCollectionBase+NameObjectKeysEnumerator
00007ffd91e42bc8        6         3984 System.Int16[]
00007ffd8893b7d0      134         4288 System.Management.SecuredIEnumWbemClassObjectHandler
00007ffd91e35de8       28         4480 System.InvalidCastException
00007ffd91e4c768      113         4863 System.Byte[]
00007ffd8893ba08      207         4968 System.Management.SecuredConnectHandler
00007ffd91e05dc0       95         5320 System.Runtime.Serialization.SafeSerializationManager
00007ffd889390a0      135         5400 System.Management.SecurityHandler
00007ffd8893ad80       99         5544 System.Management.ManagementObjectCollection+ManagementObjectEnumerator
00007ffd91e3bb10      189         6048 System.Diagnostics.StackTrace
00007ffd85d6f320      190         6080 System.Security.Permissions.ResourcePermissionBaseEntry
00007ffd85d2f8f8      190         6080 System.Diagnostics.EventLogPermissionEntry
00007ffd91e3bdf0       56         8960 System.Runtime.InteropServices.COMException
00007ffd85d2c890      190        10640 System.Diagnostics.EventLogPermission
00007ffd91e49358      220        12320 System.RuntimeType
00007ffd85d41248      819        19656 System.Timers.ElapsedEventArgs
00007ffd91e47aa0      831        19944 System.Object
00007ffd91e49e10     1051        25224 System.Int32
00007ffd91e00c70      462        25872 System.Environment+ResourceHelper+GetResourceStringUserData
00007ffd9172cc10      809        25888 System.Collections.ObjectModel.Collection`1[[System.Collections.Generic.IEnumerable`1[[System.Security.Claims.Claim, mscorlib]], mscorlib]]
00007ffd91e18898      189        28728 System.Diagnostics.StackFrameHelper
00007ffd91dc21a8      189        29312 System.Diagnostics.StackFrame[]
00007ffd91e28170      462        29568 System.Runtime.CompilerServices.RuntimeHelpers+CleanupCode
00007ffd91e280b8      462        29568 System.Runtime.CompilerServices.RuntimeHelpers+TryCode
00007ffd91e21298      792        31680 System.Collections.Generic.List`1[[System.Int32, mscorlib]]
00007ffd91e2a0f0      808        32320 System.Security.Principal.WindowsImpersonationContext
00007ffd91e163d0      809        32360 System.Threading.CompressedStack
00007ffd9172cd28      809        32360 System.Collections.Generic.List`1[[System.Collections.Generic.IEnumerable`1[[System.Security.Claims.Claim, mscorlib]], mscorlib]]
00007ffd9172cae0      809        32360 System.Collections.Generic.List`1[[System.Security.Claims.Claim, mscorlib]]
00007ffd91e40af0      951        34584 System.Reflection.ParameterInfo[]
00007ffd91e40d18      809        38832 System.Security.SecurityContext
00007ffd91e2dde0      808        71104 System.Security.FrameSecurityDescriptor
00007ffd91e33820      810        71280 System.Threading.ExecutionContext
00007ffd91e2f788      884        76128 System.String[]
00007ffd91e47b38      595        85552 System.Object[]
00007ffd91dbe330      306        86832 System.SByte[]
00007ffd91e023b8      662        90976 System.IntPtr[]
00007ffd91e4bbc8     2007        96336 System.Text.StringBuilder
00007ffd91e039a8     3111       100176 System.Reflection.RuntimeMethodInfo[]
00007ffd91e29080     3097       173432 System.Diagnostics.StackFrame
00007ffd91e3a040      809       174744 System.Security.Principal.WindowsIdentity
00007ffd91e353d8     3096       297216 System.RuntimeMethodInfoStub
00007ffd91e45b20     3171       355152 System.Reflection.RuntimeMethodInfo
00007ffd91e36418    13250       424000 System.Random
00007ffd91dbf8a0        1       524312 System.Threading.ThreadPoolWorkQueue+WorkStealingQueue[]
00007ffd91dbf750    13250       530000 System.Threading.ThreadPoolWorkQueueThreadLocals
00007ffd91dbf7d0    13250       636000 System.Threading.ThreadPoolWorkQueue+WorkStealingQueue
00007ffd91e48610     2076      1378152 System.Char[]
00007ffd8893e2f0   115928      2782272 System.Management.IWbemClassObjectFreeThreaded
00007ffd91e49da8    14605      3406408 System.Int32[]
00007ffd91dbf690    13254      3718288 System.Threading.IThreadPoolWorkItem[]
00007ffd91e488a0    86368      8291328 System.Threading.Thread
00007ffd8893d4d8   115674      8328528 System.Management.ManagementBaseObject
00007ffd8893b3f8   242765      9710600 System.Management.ObjectQuery
00007ffd8893ac40   219409     10531632 System.Management.ManagementObjectCollection
00007ffd91e3efe8   471702     15094464 System.__ComObject
00007ffd91dbfdd0   386562     15462480 Microsoft.Win32.SafeHandles.SafeLocalAllocHandle
00007ffd88938b18   242726     15534464 System.Management.ManagementObjectSearcher
00007ffd88937610   502560     20102400 System.Management.ManagementPath
00007ffd91e2a000   774748     24791936 Microsoft.Win32.SafeHandles.SafeAccessTokenHandle
00007ffd8893bd00   462155     25880680 System.Management.EnumerationOptions
00007ffd8893df88   502559     28143304 System.Management.ManagementScope
00007ffd91e474c0   249042     34750254 System.String
00007ffd91e31c08   933823     37352920 System.Collections.ArrayList
00007ffd8893c4e0   502598     48249408 System.Management.ConnectionOptions
00007ffd85d2f978   230332     64492960 System.Diagnostics.Process
00007ffd91e4aeb0   934034     74722720 System.Collections.Hashtable
00007ffd8893a0a0   933822     82176336 System.Management.ManagementNamedValueCollection
00007ffd91e2f0f0   934034     89668368 System.Collections.Hashtable+bucket[]
00007ffd88936cf0  1946515    124576960 System.Management.IdentifierChangedEventHandler
000001f2dc4db220  1826531    820929100      Free
Total 12717379 objects
Fragmented blocks larger than 0.5 MB:
            Addr     Size      Followed by
000001f2e24c5148    0.7MB 000001f2e256d730 System.Management.ManagementScope
000001f2e29f6b90    0.6MB 000001f2e2a8c7a0 Microsoft.Win32.SafeHandles.SafeLocalAllocHandle
000001f2e2c02d38    0.7MB 000001f2e2cb19f8 Microsoft.Win32.SafeHandles.SafeAccessTokenHandle
000001f2e2cdb428    0.7MB 000001f2e2d860e0 System.Threading.Thread
000001f47eecc948    0.8MB 000001f47ef8d900 System.Management.ManagementObjectCollection+ManagementObjectEnumerator
000001f47f0ca4d0    0.5MB 000001f47f150bc0 System.Management.ManagementObjectCollection+ManagementObjectEnumerator

Implement `User=`

Problem:

  • You can't Process.Start() inside WindowsIdentity.Impersonate() (the process will be created using the original identity).
  • CreateProcessAsUser allows you to achieve this, but stdout/stderr redirection and events doesn't work

Solution:

  1. Use CreateProcessAsUser to run another instance of SvcGuest.exe
  2. The new instance starts our object program using Process.Start()

There are currently no logon servers available to service the logon request.

Service cannot be started. System.Security.SecurityException: There are currently no logon servers available to service the logon request.

   at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn, SafeAccessTokenHandle& safeTokenHandle)
   at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
   at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
   at SvcGuest.SupervisorService.OnStart(String[] args)
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
The Zone of the assembly that failed was:
MyComputer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.