From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 1 of 3
(3,664 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,624 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,613 Views)