NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change user password programmatically?

Hi,

I'm preparing LabVIEW based User Manager (becouse as far I know I cannot run TS User Manager in custom OI). Currently I'm trying to create User Properties Window in which password could be set or changed. To copy the behavior of oryginal properties window I need to unscramble the password. Is there any way to do this or I need to do it differently?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 3
(3,890 Views)

Hi, bienieck,
You can use property of User.Password, which is wirtable.At last, please save Users File using method SaveFileIfModified().
Please refer to the example shipped with TestStand: TestStand API\Creating & Deleting Users Using API\Creating & Deleting Users Using API.seq 

 

Hope I can help you.            

0 Kudos
Message 2 of 3
(3,850 Views)

You can use the built in dialog to edit users by calling the DisplayPropertiesDialog method.  Read about it in the TestStand Help.  Here is a screenshot of some LabVIEW code that does it.

 

Unfortunately I cannot share the entire VI with you as it has some proprietary stuff in it.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 3
(3,839 Views)