- May
- 13,193
- 180
On Win10, some services, I imagine those which need user-specific instances, are created on the fly (maybe at login?). The names of those services have a "suffix" which I suppose identifies the user ... like these (just to name a few).
I want to get that suffix. I can do it somewhat crudely like this.
Does anyone have any better ideas?
Code:
AarSvc_646c6
BcastDVRUserService_646c6
BluetoothUserService_646c6
CaptureService_646c6
I want to get that suffix. I can do it somewhat crudely like this.
Code:
v:\> function svcsuffix `%@word["_",1,%@execstr[wmiquery /a . "select Name from Win32_Service" | ffind /k /m /e"_[0-9a-f]+$"]]`
v:\> echo %@svcsuffix[]
646c6
Does anyone have any better ideas?