(0)| 9/30/2021 4:34 AM | |
|
Joined: 7/24/2019 Last visit: 1/14/2026 Posts: 5 Rating:
|
Hello bg2492 All Windows groups the user belongs to as VARIANT. The VARIANT contains a SAFEARRAY of BSTR (vt = VT_ARRAY| VT_BSTR). Each BSTR contains a domain\name or computer\name. according to the manual. It is of data type variant, and I am unfamiliar with how to handle it even after reading the scripting manual. I keep getting a data type error, or object does not exist error. Can you give an example of how to get the name of the group from p_pvarGroupNames and for example write it in an internal tag? ( i was able to get the domain name, user name etc which are of BSTR type) Thank you in advance.
------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 09/30/2021 13:13:48New subject after splitting |
|
| 9/30/2021 1:46 PM | |
|
Joined: 10/10/2014 Last visit: 12/8/2025 Posts: 1725 Rating:
|
Hi AutoGen_9903548, For examples lock at follow FAQ: How can you verify a logged on user at runtime when using SIMATIC Logon (as from V1.3)? https://support.industry.siemens.com/cs/ww/en/view/24458155 To get the group yon can use also tie ODK function PWGENEnumGroups() Best regards schufri |
Follow us on