EPDM User Change

Hello

Our connection to the EPDM server is automatic and is linked to the WINDOWS username, so that the connection is automatic when the PC starts.

image

I would like to be able to switch users quickly.

image

Currently when I disconnect, I am disconnected, but when I click on reconnect, it directly puts the normal user back without asking me anything.

Would it be possible to keep the auto connection at startup as currently but when I deco once I start be able to choose the user.

because currently I am forced to go to the EPDM administration and change the connection settings to be able to log out and choose the user, and once finished, go back to the administration and put back the default settings

Hello
No, not possible, it's one or the other.
For my part, I'm not in auto connection to be able to slip when I need to on another account to have the same settings as the users.

1 Like

Hello

Thank you for the answer.

There would be no way to automate this?

Not to my knowledge.

1 Like

Hello

To automate, you have to create either a vba macro or a standalone program (there are examples on the API help).
I don't have Visual Studio so I can't create an executable program.
Stays macro in SW or Excel as you choose

Hello

Just like @Cyril_f for the same reasons.

If it's to manage the admin account, a trick would be to have this account connected on another machine (typically one of the EPDM servers). With the automatic remote connection (it can remember the MDPs), this would avoid the daily entry of identifiers.

Hello, thank you for your answers.

I saw that when in the EPDM administrator I uncheck the automatic connection, the value in the " AutoLogin " registry goes to 0 and when I check it it goes to 1.

I found a script to disable the auto connection and one to reactivate it:

Deactivate:

# Script 1 - Desactiver connexion auto et forcer saisie utilisateur
$coffre = "PDM"
$regPath = "HKCU:\Software\SolidWorks\Applications\PDMWorks Enterprise\Vaults\$coffre"

Set-ItemProperty -Path $regPath -Name AutoLogin -Value 0
Set-ItemProperty -Path $regPath -Name DisableAutoLoginPrompt -Value 0

Write-Host "Connexion auto desactivee pour $coffre. Reconnexion manuelle possible."
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 2
Start-Process explorer.exe
pause

Reactivate:

# Script 2 - Reactiver connexion auto
$coffre = "PDM"
$regPath = "HKCU:\Software\SolidWorks\Applications\PDMWorks Enterprise\Vaults\$coffre"

Set-ItemProperty -Path $regPath -Name AutoLogin -Value 1
Set-ItemProperty -Path $regPath -Name DisableAutoLoginPrompt -Value 1

Write-Host "Connexion auto reactivee pour $coffre."
pause

My value in the register is well taken into account and changes well.
but when I look in the administration it doesn't change him, he's the one who takes over and therefore puts my 0 to 1 back when I want to log in again :confused:

I think the setting is not only on HKCU but surely on the system keys

I can't find anything matching on the HKLM :confused:

Hello

Last question, when you connect to the registry is it under your user account?
If not, you need to find the ID of the targeted user account. On the other hand, it seems to me that this parameter is not related to the session but to the workstation (it's a global setting)

Hello

Yes, I am under my user account.
And yes you're right in the EPDM administration the automatic connection is a global setting for everyone, it's not linked to a user

So there must be keys in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SolidWorks
\Application\PDMWorks Enterprise\ or directly in HKEY_LOCAL_MACHINE\SOFTWARE\SolidWorks\Application\PDMWorks
Enterprise\

1 Like

I've gone through everything, I don't see anything that could correspond to that :confused:

Hello
via the PDM administration tool

image

  • Go to Settings
  • Use an automatic connection
  • Leave the user and password blank

image