Is there a way to log out of vault view from the command line? other than tactical nuke option of killing edmserver.exe?
From the Knowledge Base:
=================================Solution Id: S-036819Product: SolidWorks Enterprise PDM 2009 CAD EditorCreated: 4/21/2009Technically Reviewed Date: 4/24/2020Area: Enterprise PDMSub-Area: Administration Enterprise
Question: Is it possible for an administrator to temporarily force a user to log off (log out) of a SOLIDWORKS® PDM file vault in order to release that license?
Answer: No. There is no administrative option to force a user log out.
A possible workaround if an administrator really needs to release a license for a user that has left for the day could be to kill that SQL connection using SQL management studio:
For SQL 2014 and newer: 1. Open the SQL management studio. 2. RMB on the SQL Server name -> Activity Monitor -> Processes 3. Sort using the "Host Name" column - this list each workstation name connected to the SQL server. 4. Find the user's workstation and RMB > Kill Process on any processes called "EdmServer.exe" on that host.
This will temporarily kill the SQL connection, but the "EdmServer.exe" from the client computer will try to reconnect. Therefore, it is important the user performs the login process immediately after the SQL connection is killed. The only method to force a user to log off the vault is to kill the "EdmServer.exe" or log out from the client computer.
To list which clients have a license in use, see KB solution S-08712.
I'm not aware of any Parameters that could be passed to EDMServer to force a log out (edmserver.exe /? doesn't return anything). Certainly killing the process as you describe will have the desired effect though. Dependent on the reason for doing this you may also want to consider killing ViewServer.exe and even restarting Explorer.exe (that's my goto after updating an Add-in I need reloading to test)
Solid Solutions Management (UK)
Wayne Marshall wrote: Hi Ben, I'm not aware of any Parameters that could be passed to EDMServer to force a log out (edmserver.exe /? doesn't return anything). Certainly killing the process as you describe will have the desired effect though. Dependent on the reason for doing this you may also want to consider killing ViewServer.exe and even restarting Explorer.exe (that's my goto after updating an Add-in I need reloading to test) Stay Safe Wayne MarshallSolid Solutions Management (UK)
Wayne Marshall wrote:
Thank you Wayne. I tried the edmserver /? as well and didn't find anything. Short of API calls I don't think there's an option.
The reason is just deleting vault view with a script. I don't know why be I seem to have to do it all too often, on other computers, where an other user added the view... Some users are remote now which makes it even more difficult because all of the screen share tools I have available to me block console as admin and reg edits. I could step the user though it while watching which I've done, but that's a pain when there are a bunch to do. I could walk the user through adding me to the RDC list so I could remote in, but I need to do that when they're not working; users all tend to either never log out or shut the pc off so orchestrating RDC with remote computer is not ideal either. I've found using script run on the network computer is working well, but there is no way to make sure the user is not logged into the vault I'm about to toss. Well, there is, I can prevent login for users then wait a day or two to be sure they've logged out... I don't see a way to "kick" a user from the Admin Tool or from the Archive Server Manager.
Thank you Jim, this is an interesting nugget of information. I am curious though, what was your search string the KB to get to that Solution?
I had been testing the script on a test PC to see issues would come up from deleting the reg keys and directory while the user is logged into the vault. Other than leaving any checked out or private files orphaned, I could not find any lingering issue, but that doesn't mean there aren't any. When I searched the processes in SQL Management Studio per the instructions from the KB Solution you posted I noticed two processes for that test PC; explorer and EdmServer. Thing is, there is no view to that vault on that machine, I removed it yesterday. The icon in system tray did not offer it to log in or out of that vault. I wonder how long would those processes run on SQL Server, for a host that no longer has a vault view to that vault?
Thanks to you for pointing this out, I can safely kill those processes because it appears that the client machine edmserver.exe is not trying to maintain a connection to SQL for that vault. It's also good to get around the users who refuse to reply to my emails requesting people to check for that old Vault.
Ben Nemec wrote: Thank you Jim, this is an interesting nugget of information. I am curious though, what was your search string the KB to get to that Solution?
Ben Nemec wrote:
force log out
Note that unlike Google (or some other respectable search tool) the Knowledge Base search tool as abysmal. Searching for either of the following will not yield results:
force log off
The search is so bad that searching for
will yield no results, but
I know a lot of people have learned to use it, and there is a lot of useful stuff in there. But as you and many others state, finding relevant content is difficult. I understand to use few words as possible. It's just good to see examples of successful searches. Thank you.
Retrieving data ...