Finding a Process Which Sporadically Locks the Workstation

Published Apr 29 2021 07:02 AM 3,725 Views
Microsoft

Hi all,

 

A customer of mine recently reported an issue that some workstations sporadically lock while the user is working and asked if we could figure out the culprit. Here is the story.

 

First let me mention that Konstantin Chernyi, a Microsoft CE colleague from Russia, contributed greatly here. So credits also go to him (thanks, Konstantin).

 

Before we start you need to understand a few basics. A workstation is usually locked by calling the User32.dll function User32dll!LockWorkStation (https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-lockworkstation). There may be other options but most applications rely on this function. LockWorkStation creates the LogonUI.exe process to display the Logon Screen and the Lock Screen (if configured). It’s also important to know the Lock events can be traced using the Microsoft-Windows-WinLogon provider. You can get a list of all installed providers by running the command

 

 

 

XPerf.exe -providers i

 

 

 

XPerf is a good choice to narrow down this type of sporadic issue. It supports circular file mode, which means it can overwrite old events to keep the file size at a specified maximum (important for long runs). It can also capture the stack to support stackwalking, so we can see functions that processes call (if symbols are loaded). XPerf is part of the Windows Performance Toolkit, which in turn is part of the Windows Assessment and Deployment Kit (Windows ADK). You can download the ADK here: https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install.

 

In Windows 10, Windows Performance Recorder (wpr.exe) is built-in and could be an alternative to XPerf (https://docs.microsoft.com/en-us/windows-hardware/test/wpt/author-a-custom-recording-profile). In this blog, however, I’m going with XPerf.

 

1. Create the trace

 

I asked the customer to run the following command in an elevated command prompt on a client that was affected by the sporadic locks:

 

 

 

xperf -on proc_thread+loader+profile+interrupt+dpc+dispatcher+cswitch -stackwalk profile+cswitch+readythread -buffersize 1024 -minbuffers 256 -maxbuffers 256 -maxfile 256 -filemode circular -start wl -on microsoft-windows-winlogon -buffersize 1024 -minbuffers 256 -maxbuffers 256 -maxfile 32 -filemode circular

 

 

 

This starts two ETW sessions: A kernel trace with some kernel providers to capture process and thread creation, image load and unload events, CPU samples, and the stack. The output file should stay at 256 MB (-maxfile, -filemode circular). The second trace captures events of the Microsoft-Windows-WinLogon provider which includes the Lock event.

 

After that the customer created a scheduled task, which triggers on the lock workstation event (luckily, we have this predefined trigger) with a delay of 3 seconds. This task runs the command to stop the trace and merge the trace files.

 

 

 

XPerf -stop -stop wl -d %TEMP%\Lock.etl

 

 

 

Note that the two subsequent “-stop” are not a mistake. Remember that we created two ETW sessions?

 

2. Analyze the trace

 

To open the Lock.etl file, I use Windows Performance Analyzer (WPA).  I originally worked with the Lock.etl file uploaded by the customer, but for this blog post I simulated this issue to avoid posting screenshots with customer data. The simulation was done by calling RunDLL32.exe User32.dll,LockWorkStation, which makes RunDLL32.exe the “evil” process.

 

In WPA, I started with the Generic Events graph. Here we can find the event providers we traced next to the kernel trace (in our case the Microsoft-Windows-Winlogon provider).

 

hewagen_0-1619704396128.png

 

Taking a closer look, we can see that the Lock event is also part of the trace (Yeah, we caught the fish).  Now, as we learned earlier, we know that a workstation lock triggers the LogonUI.exe process so I tried to find the start of this process in WPA.  For this, I needed another graph: Lifetime by Process.

 

hewagen_1-1619704396149.png

 

The image shows the LoginUI.exe process in the timeline. The call to the LockWorkStation function must have happened shortly before the LogonUI.exe process was created. To get rid of unnecessary information we Zoom to the area starting at approx. 3 seconds before and ending about a second after the start of LogonUI.exe. I highlighted those 4 seconds in the graph, right-clicked in the highlighted section and selected “Zoom”.

 

hewagen_2-1619704396153.png

 

Somewhere in this section the call to LockWorkStation happens. The “Transient” process list showed five processes were started within those 4 seconds. But it’s possible that a process started earlier than this zoomed-in-view made the call to User32!LockWorkStation. The processes started before the beginning of the zoomed area, are grouped into the “Permanent” Lifetime.

 

hewagen_3-1619704396164.png

 

To finally find the caller to LockWorkStation I need to search the stack of all running processes (Permanent and Transient) for the expression LockWorkStation. To do this, I added another graph to view the stack: CPU Usage (Sampled). This new graph automatically adopts to the zoomed timeline and only displays processes running in those 4 seconds.

 

hewagen_4-1619704396188.png

 

Now it’s time to load the debug symbols to. Otherwise we cannot search for the function name. I made sure that my PC had an Internet connection and, in the menu bar of the Windows Performance Analyzer, I clicked Trace -> Load Symbols. It could take a while when symbols are first loaded. 

 

hewagen_5-1619704396193.png

 

I highlighted the first line of the process table in the CPU Usage (Sampled) graph (to make sure to search all processes) and clicked on the small magnifier icon to open the search dialog. After that I clicked the three dots to expand the dialog and typed “LockWorkStation” into the field after “contains” (the query is constructed automatically so this box can be left empty).

 

hewagen_6-1619704396215.png

 

Clicking “Find All” unmasked our culprit.

 

hewagen_7-1619704396240.png

 

Rundll32.exe was quickly identified as the calling process. Handcuffs, conduct under escort. Case closed.

 

 

2 Comments
Microsoft

Very useful blog, thank much

Senior Member

Very interesting, thanks for sharing! It would be interesting or perhaps even helpful to know the nature of the process you found that was making LockWorkStation call: was it an MDM product? Antivirus/antimalware? Some proprietary line of business app?

%3CLINGO-SUB%20id%3D%22lingo-sub-2306834%22%20slang%3D%22en-US%22%3EFinding%20a%20Process%20Which%20Sporadically%20Locks%20the%20Workstation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2306834%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20customer%20of%20mine%20recently%20reported%20an%20issue%20that%20some%20workstations%20sporadically%20lock%20while%20the%20user%20is%20working%20and%20asked%20if%20we%20could%20figure%20out%20the%20culprit.%20Here%20is%20the%20story.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%20let%20me%20mention%20that%20Konstantin%20Chernyi%2C%20a%20Microsoft%20CE%20colleague%20from%20Russia%2C%20contributed%20greatly%20here.%20So%20credits%20also%20go%20to%20him%20(thanks%2C%20Konstantin).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBefore%20we%20start%20you%20need%20to%20understand%20a%20few%20basics.%20A%20workstation%20is%20usually%20locked%20by%20calling%20the%20User32.dll%20function%20User32dll!LockWorkStation%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinuser%2Fnf-winuser-lockworkstation%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fapi%2Fwinuser%2Fnf-winuser-lockworkstation%3C%2FA%3E).%20There%20may%20be%20other%20options%20but%20most%20applications%20rely%20on%20this%20function.%20LockWorkStation%20creates%20the%20LogonUI.exe%20process%20to%20display%20the%20Logon%20Screen%20and%20the%20Lock%20Screen%20(if%20configured).%20It%E2%80%99s%20also%20important%20to%20know%20the%20Lock%20events%20can%20be%20traced%20using%20the%20Microsoft-Windows-WinLogon%20provider.%20You%20can%20get%20a%20list%20of%20all%20installed%20providers%20by%20running%20the%20command%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3EXPerf.exe%20-providers%20i%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EXPerf%20is%20a%20good%20choice%20to%20narrow%20down%20this%20type%20of%20sporadic%20issue.%20It%20supports%20circular%20file%20mode%2C%20which%20means%20it%20can%20overwrite%20old%20events%20to%20keep%20the%20file%20size%20at%20a%20specified%20maximum%20(important%20for%20long%20runs).%20It%20can%20also%20capture%20the%20stack%20to%20support%20stackwalking%2C%20so%20we%20can%20see%20functions%20that%20processes%20call%20(if%20symbols%20are%20loaded).%20XPerf%20is%20part%20of%20the%20Windows%20Performance%20Toolkit%2C%20which%20in%20turn%20is%20part%20of%20the%20Windows%20Assessment%20and%20Deployment%20Kit%20(Windows%20ADK).%20You%20can%20download%20the%20ADK%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fget-started%2Fadk-install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fget-started%2Fadk-install%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20Windows%2010%2C%20Windows%20Performance%20Recorder%20(wpr.exe)%20is%20built-in%20and%20could%20be%20an%20alternative%20to%20XPerf%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Ftest%2Fwpt%2Fauthor-a-custom-recording-profile%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Ftest%2Fwpt%2Fauthor-a-custom-recording-profile%3C%2FA%3E).%20In%20this%20blog%2C%20however%2C%20I%E2%80%99m%20going%20with%20XPerf.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CU%3E1.%20Create%20the%20trace%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20asked%20the%20customer%20to%20run%20the%20following%20command%20in%20an%20elevated%20command%20prompt%20on%20a%20client%20that%20was%20affected%20by%20the%20sporadic%20locks%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Experf%20-on%20proc_thread%2Bloader%2Bprofile%2Binterrupt%2Bdpc%2Bdispatcher%2Bcswitch%20-stackwalk%20profile%2Bcswitch%2Breadythread%20-buffersize%201024%20-minbuffers%20256%20-maxbuffers%20256%20-maxfile%20256%20-filemode%20circular%20-start%20wl%20-on%20microsoft-windows-winlogon%20-buffersize%201024%20-minbuffers%20256%20-maxbuffers%20256%20-maxfile%2032%20-filemode%20circular%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20starts%20two%20ETW%20sessions%3A%20A%20kernel%20trace%20with%20some%20kernel%20providers%20to%20capture%20process%20and%20thread%20creation%2C%20image%20load%20and%20unload%20events%2C%20CPU%20samples%2C%20and%20the%20stack.%20The%20output%20file%20should%20stay%20at%20256%20MB%20(-maxfile%2C%20-filemode%20circular).%20The%20second%20trace%20captures%20events%20of%20the%20Microsoft-Windows-WinLogon%20provider%20which%20includes%20the%20Lock%20event.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20that%20the%20customer%20created%20a%20scheduled%20task%2C%20which%20triggers%20on%20the%20lock%20workstation%20event%20(luckily%2C%20we%20have%20this%20predefined%20trigger)%20with%20a%20delay%20of%203%20seconds.%20This%20task%20runs%20the%20command%20to%20stop%20the%20trace%20and%20merge%20the%20trace%20files.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3EXPerf%20-stop%20-stop%20wl%20-d%20%25TEMP%25%5CLock.etl%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%20that%20the%20two%20subsequent%20%E2%80%9C-stop%E2%80%9D%20are%20not%20a%20mistake.%20Remember%20that%20we%20created%20two%20ETW%20sessions%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CU%3E2.%20Analyze%20the%20trace%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20open%20the%20Lock.etl%20file%2C%20I%20use%20Windows%20Performance%20Analyzer%20(WPA).%26nbsp%3B%20I%20originally%20worked%20with%20the%20Lock.etl%20file%20uploaded%20by%20the%20customer%2C%20but%20for%20this%20blog%20post%20I%20simulated%20this%20issue%20to%20avoid%20posting%20screenshots%20with%20customer%20data.%20The%20simulation%20was%20done%20by%20calling%20RunDLL32.exe%20User32.dll%2CLockWorkStation%2C%20which%20makes%20RunDLL32.exe%20the%20%E2%80%9Cevil%E2%80%9D%20process.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20WPA%2C%20I%20started%20with%20the%20Generic%20Events%20graph.%20Here%20we%20can%20find%20the%20event%20providers%20we%20traced%20next%20to%20the%20kernel%20trace%20(in%20our%20case%20the%20Microsoft-Windows-Winlogon%20provider).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hewagen_0-1619704396128.png%22%20style%3D%22width%3A%20989px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276754i72B7A5AC9A3E2251%2Fimage-dimensions%2F989x586%3Fv%3Dv2%22%20width%3D%22989%22%20height%3D%22586%22%20role%3D%22button%22%20title%3D%22hewagen_0-1619704396128.png%22%20alt%3D%22hewagen_0-1619704396128.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETaking%20a%20closer%20look%2C%20we%20can%20see%20that%20the%20Lock%20event%20is%20also%20part%20of%20the%20trace%20(Yeah%2C%20we%20caught%20the%20fish).%20%26nbsp%3BNow%2C%20as%20we%20learned%20earlier%2C%20we%20know%20that%20a%20workstation%20lock%20triggers%20the%20LogonUI.exe%20process%20so%20I%20tried%20to%20find%20the%20start%20of%20this%20process%20in%20WPA.%26nbsp%3B%20For%20this%2C%20I%20needed%20another%20graph%3A%20Lifetime%20by%20Process.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hewagen_1-1619704396149.png%22%20style%3D%22width%3A%20974px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276756i334835BBAA149FF5%2Fimage-dimensions%2F974x577%3Fv%3Dv2%22%20width%3D%22974%22%20height%3D%22577%22%20role%3D%22button%22%20title%3D%22hewagen_1-1619704396149.png%22%20alt%3D%22hewagen_1-1619704396149.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20image%20shows%20the%20LoginUI.exe%20process%20in%20the%20timeline.%20The%20call%20to%20the%20LockWorkStation%20function%20must%20have%20happened%20shortly%20before%20the%20LogonUI.exe%20process%20was%20created.%20To%20get%20rid%20of%20unnecessary%20information%20we%20Zoom%20to%20the%20area%20starting%20at%20approx.%203%20seconds%20before%20and%20ending%20about%20a%20second%20after%20the%20start%20of%20LogonUI.exe.%20I%20highlighted%20those%204%20seconds%20in%20the%20graph%2C%20right-clicked%20in%20the%20highlighted%20section%20and%20selected%20%E2%80%9CZoom%E2%80%9D.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hewagen_2-1619704396153.png%22%20style%3D%22width%3A%20552px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276755iB5EB5ABDF4D8BB02%2Fimage-dimensions%2F552x335%3Fv%3Dv2%22%20width%3D%22552%22%20height%3D%22335%22%20role%3D%22button%22%20title%3D%22hewagen_2-1619704396153.png%22%20alt%3D%22hewagen_2-1619704396153.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESomewhere%20in%20this%20section%20the%20call%20to%20LockWorkStation%20happens.%20The%20%E2%80%9CTransient%E2%80%9D%20process%20list%20showed%20five%20processes%20were%20started%20within%20those%204%20seconds.%20But%20it%E2%80%99s%20possible%20that%20a%20process%20started%20earlier%20than%20this%20zoomed-in-view%20made%20the%20call%20to%20User32!LockWorkStation.%20The%20processes%20started%20before%20the%20beginning%20of%20the%20zoomed%20area%2C%20are%20grouped%20into%20the%20%E2%80%9CPermanent%E2%80%9D%20Lifetime.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hewagen_3-1619704396164.png%22%20style%3D%22width%3A%20977px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276758i6160E9BB5B544F71%2Fimage-dimensions%2F977x316%3Fv%3Dv2%22%20width%3D%22977%22%20height%3D%22316%22%20role%3D%22button%22%20title%3D%22hewagen_3-1619704396164.png%22%20alt%3D%22hewagen_3-1619704396164.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20finally%20find%20the%20caller%20to%20LockWorkStation%20I%20need%20to%20search%20the%20stack%20of%20all%20running%20processes%20(Permanent%20and%20Transient)%20for%20the%20expression%20LockWorkStation.%20To%20do%20this%2C%20I%20added%20another%20graph%20to%20view%20the%20stack%3A%20CPU%20Usage%20(Sampled).%20This%20new%20graph%20automatically%20adopts%20to%20the%20zoomed%20timeline%20and%20only%20displays%20processes%20running%20in%20those%204%20seconds.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hewagen_4-1619704396188.png%22%20style%3D%22width%3A%20977px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276759iB6D86C611C91820A%2Fimage-dimensions%2F977x579%3Fv%3Dv2%22%20width%3D%22977%22%20height%3D%22579%22%20role%3D%22button%22%20title%3D%22hewagen_4-1619704396188.png%22%20alt%3D%22hewagen_4-1619704396188.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20it%E2%80%99s%20time%20to%20load%20the%20debug%20symbols%20to.%20Otherwise%20we%20cannot%20search%20for%20the%20function%20name.%20I%20made%20sure%20that%20my%20PC%20had%20an%20Internet%20connection%20and%2C%20in%20the%20menu%20bar%20of%20the%20Windows%20Performance%20Analyzer%2C%20I%20clicked%20Trace%20-%26gt%3B%20Load%20Symbols.%20It%20could%20take%20a%20while%20when%20symbols%20are%20first%20loaded.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hewagen_5-1619704396193.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276757i3C9B89AFF76E8AAC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hewagen_5-1619704396193.png%22%20alt%3D%22hewagen_5-1619704396193.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20highlighted%20the%20first%20line%20of%20the%20process%20table%20in%20the%20CPU%20Usage%20(Sampled)%20graph%20(to%20make%20sure%20to%20search%20all%20processes)%20and%20clicked%20on%20the%20small%20magnifier%20icon%20to%20open%20the%20search%20dialog.%20After%20that%20I%20clicked%20the%20three%20dots%20to%20expand%20the%20dialog%20and%20typed%20%E2%80%9CLockWorkStation%E2%80%9D%20into%20the%20field%20after%20%E2%80%9Ccontains%E2%80%9D%20(the%20query%20is%20constructed%20automatically%20so%20this%20box%20can%20be%20left%20empty).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hewagen_6-1619704396215.png%22%20style%3D%22width%3A%20975px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276760iA858B3F3FC69600B%2Fimage-dimensions%2F975x412%3Fv%3Dv2%22%20width%3D%22975%22%20height%3D%22412%22%20role%3D%22button%22%20title%3D%22hewagen_6-1619704396215.png%22%20alt%3D%22hewagen_6-1619704396215.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClicking%20%E2%80%9CFind%20All%E2%80%9D%20unmasked%20our%20culprit.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hewagen_7-1619704396240.png%22%20style%3D%22width%3A%20972px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276761i1042C8E2CB214929%2Fimage-dimensions%2F972x532%3Fv%3Dv2%22%20width%3D%22972%22%20height%3D%22532%22%20role%3D%22button%22%20title%3D%22hewagen_7-1619704396240.png%22%20alt%3D%22hewagen_7-1619704396240.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERundll32.exe%20was%20quickly%20identified%20as%20the%20calling%20process.%20Handcuffs%2C%20conduct%20under%20escort.%20Case%20closed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2306834%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20blog%20post%20is%20about%20how%20to%20approach%20a%20sporadical%20workstation%20lock.%20I'm%20using%20tools%20like%20XPerf%20and%20Windows%20Performance%20Analyzer%20and%20explain%20how%20to%20use%20them%20for%20this%20particular%20scenario.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2306834%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHelmutWagensonner%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2331920%22%20slang%3D%22en-US%22%3ERe%3A%20Finding%20a%20Process%20Which%20Sporadically%20Locks%20the%20Workstation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2331920%22%20slang%3D%22en-US%22%3E%3CP%3EVery%20useful%20blog%2C%20thank%20much%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2399635%22%20slang%3D%22en-US%22%3ERe%3A%20Finding%20a%20Process%20Which%20Sporadically%20Locks%20the%20Workstation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2399635%22%20slang%3D%22en-US%22%3E%3CP%3EVery%20interesting%2C%20thanks%20for%20sharing!%20It%20would%20be%20interesting%20or%20perhaps%20even%20helpful%20to%20know%20the%20nature%20of%20the%20process%20you%20found%20that%20was%20making%20LockWorkStation%20call%3A%20was%20it%20an%20MDM%20product%3F%20Antivirus%2Fantimalware%3F%20Some%20proprietary%20line%20of%20business%20app%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Apr 29 2021 02:46 PM
Updated by: