Add the user to the users group in the Users.ini file using c#

Hello

Using a c# application, we strive to add/remove a user from the TestStand Users.ini file.

The CreateDeleteUsers.seq file in the samples of TestStand is used as a reference.

We have seen that we are able to add the user to the list of user help file

engine. UsersFile.UserList.SetPropertyObjectByOffset (0, 0 x 1, newUser.AsPropertyObject ());

However, when we try to add the user to the user group, the sample file CreateDeleteUsers.seq said

RunState.Engine.GetUserGroup (Locals.GroupName). Members.SetPropertyObjectByOffset (0, 0 x 1, Locals.User.AsUser.LoginName)

If we try to replicate this in c#, the API seeks the last parameter (which is LoginName in the CreateDeleteUsers.seq file) as an object of property

engine. GetUserGroup (this.) GroupName). Members.SetPropertyObjectByOffset (0, 0 x 1, newUser.AsPropertyObject ());

This causes an exception of object reference when we run the application.

Please advise on how to proceed.

Thank you

Advertisement

Arun-

The members property is an array of string, so the 3rd parameter to SetPropertyObjectByOffset requires a string property object, IE. the user name and not of the user object. From the will of the user object error with '-17308; Specified value is not the expected type. ». The example should really be using SetValStringByOffset to be clearer so that you only specify the user name of the actual string.

Tags: NI Software

Similar Questions

  • I have a subscription to creative cloud (at least) but I would like to add another user, who will use a Mac... is there a way I can do this?

    I have a subscription to creative cloud (at least) but I would like to add another user, who will use a Mac... is there a way I can do this?

    Hello

    You can have the creative cloud installed and signed in on two computers as long as you don't use it on one at a time. Download and install as you did on the first computer, sign in to your Adobe account on the Adobe using your Adobe ID website, download the desktop app from clouds, then download the software. Sign on a computer that should not be used: log in and log out of the desktop Adobe Creative Cloud application

    You can download the installer for Creative Cloud from here:
    Creative cloud help | Creative cloud desktop.

    After you install the creative Cloud desktop application, you will need to sign in with a login password and Adobe. Then you can install applications. This link provides more information and step by step instructions, if you need: CC help | Download, install, update or uninstall applications

  • How to add the external css file to the _edge.js file

    I tried to add in the html page, but when I save the edge project it deletes.

    I'm able to add the external js file in scripts: [] in the _edge.js file

    We can add inside resources: []?

    And is it possible to add an external css in files of edge except in page html and javascript?

    CSS:

    Please put this in scene/creationComplete (file name change to your file name and path)

    $(" ",{"rel":"stylesheet","type":"text/css","href":"css/finename.css"}).append ("#Sta ge»);"})

    Add! important in CSS file properties.

    js files should be loaded with the upload script Panel on the right side of your user interface.

  • Cannot add the new log file for the 11g database.

    Salvation of DBA

    I'm not able to add the log file, I receive the error message when the database is added.

    SQL > alter database add logfile group 3 ('/ oracle/DEV/db/apps_st/data/log03a.dbf','/oracle/DEV/db/apps_st/data/log03a.dbf') Re-use of size of 50 m;
    alter database add logfile group 3 ('/ oracle/DEV/db/apps_st/data/log03a.dbf','/oracle/DEV/db/apps_st/data/log03a.dbf') Re-use of 50 m of size
    *
    ERROR on line 1:
    ORA-01505: Error adding log files
    ORA-01577: cannot add the log file ' / oracle/DEV/db/apps_st/data/log03a.dbf'-fichier
    already a part of the database

    SQL > select a.group #, a.status, a member of the journal of v$ a, v$ logfile b where a.group # order of b.group = # 1;

    GROUP # MEMBER STATUS
    ---------- ---------------------------------------- ----------
    1 ACTIVE /oracle/DEV/db/apps_st/data/log01a.dbf
    1 ACTIVE /oracle/DEV/db/apps_st/data/log01b.dbf
    /Oracle/DEV/db/apps_st/data/log02a.dbf CURRENT 2
    /Oracle/DEV/db/apps_st/data/log02b.dbf CURRENT 2

    Kindly help me to add the new log file to my database.

    Thank you
    SG

    PGO

    Please see (how can redo log group be dropped when it ever becomes inactive?) [ID] 730827.1).

    Thank you
    Hussein

  • XP pro do not start after changing the Boot.ini file

    The problem is that my C: partition Windows 7
    D: has XP Pro

    These should be considered right resp. partitions 1 and 2?

    I wanted to first XP pro to start the default partition.

    A few days ago, I made a change to the boot.ini file. But since XP Pro was not starting at all.

    I tried XP Pro to start first that the default partition.

    Given that XP Pro and my D: drive have not been starting, I consulted the boot.ini file in C:, Windows 7 partition and I changed the order (i.e. partition No.) in the boot.ini file and saved it to the required location, i.e. D:/WINDOWS/pss.
    through my drive C: of work, i.e. the partition of Windows 7, but it still does not work because apparently even though I save here, the actual values and the paths of the partition are not actually be changed on the system. I confirmed this by going into the CMD shell switching to D: and by running the command D: > bootcfg.
    Apparently any values I save in the boot.ini file that I save as a text file or "All files" in D:/WINDOWS/pss/it does not actually change in the system because whenever I run the command bootfg values are remaining still and not able to be changed, because apparently it is not saved in XP Pro and the D : partition. No matter what I do and what I put in the boot.ini file to access the values through the windows 7 partition, the values that bootcfg returns me are always the same and he refuses to change the name of path or anything else. No matter what orders, I also put in bootcfg himself.

    These are the values that bootcfg gives me:
    default: multi (0) disk (0) rdisk (0) partition (1) \WINDOWS

    Boot entries:
    Boot entry ID: 1
    Friendly name of operating system: MS Windows XP Professional
    Path: multi (0) disk (0) rdisk (0) partition (1) \WINDOWS
    The operating system load options: / noexecute = OPTIN/FASTDETECT/usepmtimer

    My XP Pro partition is simply not booting, and it of my main partition and has all my work. It is imperative that it starts.

    My Windows CD is also not start because apparently my DVD drive does not work properly, I had the anti malware threatfire (ThreatFire) installed on my XP D:Windows program disk but have uninstalled just in case it was blocking my changes to the system.

    On C:Win7, I put the default operating system option in the Advanced tab for Win7 and the D:XP Pro to XP Pro, when he was the starter and work. Now I can only access my files D:XP Pro Player C:Win7. But XP is not just start. What shd - I do? Thks.

    I don't have a very practical windows CD but my CD/DVD drive is not read and does not properly.

    Looks like your original post stated that your cd/dvd does not work.

    Respectfully, you will continue these hap hazard patches and your computer will not start at all. I'll try to help you once again. Please follow closely.

    Start your computer by loading Windows 7. Click HERE and download EasyBCD. Install the software in trial version. Once installation is complete open EasyBCD. You will see an interface like the image below. Click Add a new entry.

    A new screen appears as in the image below. Use the drop down menu to select Windows NT / 2 k/XP / 2 k 3 as described below. Type the name of the operating system in the box below. Of course, it will be Windows Xp (you can add the home or Pro to the name if you want). Make sure now that there is a check mark in the box "automatically detect the correct player. Once you have completed these steps click on 'add an entry '. That's all! You are finished. If all goes well, and if you have followed these steps carefully, there, now you have a system dual boot.

    You can now start working on your cd/dvd problem.

  • Access to the php.ini file

    Hello

    I tried to get access to the php.ini file. But I always get the answer: 404 the/etc/php/apache2 requested URL was not found on this server.

    The path is: https://192.168.1.101/etc/php/apache2

    ReadyNAS-102, SSH is enabled, OS 6.2.5

    With witch tool and how do I open the path to the php.ini file?

    Thank you

    Thomas

    Thank you for your help.

    I made this way, but I suggest to use WinSCP instead of PuTTY. WinSCP is also free and much more comfortable than the PuTTY.

  • When I start my system, some notifications invites to the top of their own and I still see the desktop.ini file in my documents/files please what this means?

    Every time I start my system, the Lync appears, a modem exe shortcut. files also appears, how can I stop this?

    I want to know the meaning of desktop.ini, I remove cause it's to show in most of my documents?

    Your thread was started successfully in the forum comments, so I moved it to the windows 'Repair and recovery' forum where is is more on the subject.  You must return to your topic and we tell which version of Windows you are using.

    Look in your startup folder to see if you see Lync and modem.exe shortcuts in this folder.  If so, remove them and you should no longer see these pop-ups when you connect.

    You can get rid of him, but it can return.  Desktop.ini is usually a file hidden, so you must have the display of hidden files and folders active if you do not see it.  Desktop.ini is a file that is present in many files and it is used by the process to "customize the folder.  It allows you to specify multiple behaviors to a folder and what desired icon displayed for a folder.  See http://msdn.microsoft.com/en-us/library/windows/desktop/cc144102(v=vs.85).aspx for a more in-depth explanation of the desktop.ini file.  For certain folders such as My Documents, you should probably leave it alone.  It won't hurt anything especially if you do remove it, but the folder will then behave like any other folder, you can create.

  • the Boot.ini file is missing

    Miss me the boot.ini file, but I don't have a disc of xp files because windows xp is installed.  Should I buy windows xp to resolve this problem?

    First of all, make sure that you have not left a CD/DVD in a drive that is checked for an operating system before the system partition of the hard drive. If there's nothing there, you should be able to repeat your BOOT. INI file.

    XP BOOT. INI file resides in the root directory of the drive system (usually c :)). This is a simple text file, but marked as hidden. If you have another computer, you can create or copy one from a computer with a similar setup to yours (for example boot from C:, Windows XP files in c:\Windows, etc.).

    The following can be copied into Notepad and saved to create a simple BOOT. INI file.
    [boot loader]
    timeout = 30
    default = multi (0) disk (0) rdisk (0) partition (1) \WINDOWS
    [operating systems]
    "multi (0) disk (0) rdisk (0) partition (1) \WINDOWS="Microsoft Windows XP Professional "/ fastdetect
    If you have access to another computer, consider mount the hard drive broke as a slave and creation/copy of a BOOT. INI file in the root.
  • cannot rebuild the layout.ini file

    I deleted all the files in my prefetch folder and now can not rebuild the layout.ini file

    Make sure that registry prefetcher and superfetch settings are enabled.

    Now run this command (create a cmd file and execute it):

    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks
    %windir%\System32\rundll32.exe advapi32.dll, ProcessIdleTasks

    Defrag % lecteur_systeme % b
    Defrag % lecteur_systeme % b
    Defrag % lecteur_systeme % b
    Defrag % lecteur_systeme % b

    This will create the files again.

    André

    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • How to edit the boot.ini file in windows 7?

    I currently have windows xp 7 and added o/s. How can I change the boot.ini file?

    Type MSCONFIG in the start menu to run the System Configuration utility.

    On the Boot tab, set your options, and the operating system you want to run.  Changes will be automatically written to the boot files.
    Click OK to save your changes.
  • How to remove the entry for Hot Standby node in the odbc.ini file in Windows 7

    Although I could see the file odbc.ini under c: Windows, there is nothing specific to hot standby node in the file. I use windows 64-bit computer and I have issues with my odbc DSNS when connecting to another application, I need to delete the entry for Hot Standby node in the odbc.ini file based on what I had as a solution to solve the problem. My mistake was "communication error with the connection process. Find target processes while they waiting for answer', when I tried to pull a few tables to a data source by using the ODBC DSN.

    Hi Jay,

    Thanks for posting your question in the Microsoft Community.

    The question you posted would be better suited in the MSDN Forums.

    I would recommend posting your query in the link below.

    General Windows Forms:

    http://social.msdn.Microsoft.com/forums/en-us/WinForms/threads

    I hope that the information above helps you.

    In the future if you fall on any question relating to Windows, please do not hesitate to post your request here on Microsoft Community, we will be more than happy to help you.

  • Form complete TNA in the NQSConfig.ini file.

    Hello Experts,

    Out of curiosity, I want to know the complete form TNA in the NQSConfig.ini file.

    Kind regards

    Mohammed

    Published by: Mohammed_owb on March 30, 2010 05:54

    Published by: Mohammed_owb on March 30, 2010 05:57

    OK so time for a bit of history...

    (1) Nquire gives a software called "nquire suites. nQuire launched its range nQuire of products at the end of 1999 to monitor and provide information in real time based on any factual problem or opportunity by launching an e-mail message or a page on any device, like a computer laptop, pager, mobile phones, PDAS, RIM, Americans and Europeans.
    (2) Siebel purchases Nquire for $65 million at the end of 2001 (http://www.internetnews.com/ent-news/article.php/894791) and rename it as "Siebel Analytics"
    (3) oracle buys Siebel in 2005 and renamed it as "Oracle Business Intelligence" in 2007.

    So basically, NQSconfig is the acronym of Nquire Server Config...

    -Vinay

  • How to add the JSON.jar file in bb OS 4.5?

    Hi all

    I have a problem in the analysis of a json file in BlackBerry os 4.5 and 5.0. I added the JSON.jar file in my project. I am trying to execute that project throws "Eception Exception: java.lnag.NoClassDefFound Error". I think that the jar file does not work correctly. How to solve this problem?

    Thank you

    Yes, add org folder to the source of your application.

  • Can Adobe Pro automatically add the numbers of files?

    In our hospital, we went from Nuance PDF Pro to Adobe Acrobat IX.  The largest surface that we cannot defeat is defining the Adobe as our default printer and sequencing automatically files.  In the PDF of Nuance (DocuCom and ScanSoft) printer drivers, we have been able to change the properties to automatically add flight numbers.  We spent many hours with our support technical (we are a huge institution in many States and countries) and they do not have a solution.  We travel options, is there a way for Adobe Acrobat Pro, put on the numbers that we run PDF print multiple files?  We have not found anything in the literature or by trial and error.

    I assume you mean the creation of PDFs by printing to the Adobe PDF, PostScript printer driver instance, correct?

    If Yes, this instance of printer driver creates a default file to PDF on the base name of the %% Title line comment placed in the PostScript file by the Windows PostScript driver. You can of course change this to what you want in the dialog box file presented to you for the location for the placement of the PDF file.

    What being doesn't say, there is no possibility of embedding to create numbers end automatic or in the case of duplicate file names, either unconditionally.

    If you have an application of your own which is printing with the PostScript driver, programmatically, you can probably force a new name with continuously moving numbers when calling GDI to start the printing process.

    -Dov

  • How to add the fragment in jsf using page add tag to jdeveloper

    Hi all
    Can you tell me wat is use the syntax: tag .or how to add the fragment in the jsf page...

    Published by: 947228 on July 18, 2012 05:01

    Hello

    Why do you do this?

    Check [url https://blogs.oracle.com/jheadstart/entry/avoid_use_of_jspinclude_where] this out before continuing.

    BTW, always mention your version JDev, varnish usecase for assistance.

    Arun-

Maybe you are looking for

  • Could not open the iso file on El captain

    Hello I have wan´t to burn an iso file to a DVD but I can´t opened using disk utility, as it should. When I click to open the file, nothing happens. I also tried to mount the iso image using the terminal, and it says that it is impossible to mount th

  • Send an email to some non-visible personal folders {solution}

    A search for this problem led me to https://support.mozilla.org/en-US/questions/1002714 , but the solutions proposed in this thread do not work. An update of XP (outlook express) to 8.1 Win. On old machine imported Outlook Express with success in TB,

  • How to disable the Portege M700 touch screen?

    I have a Portege M700 tablet.I would like to disable the installation of the touch screen on it (but not writing or drawing ability activated by the stylus). Is this possible?

  • When I go to open a file a box comes up to choose what program I want to open with.

    When I go to open a file a box comes up to choose what program I want to open with.  At the bottom of this box is a place where I'm supposed to be able to check who always says "use this program to open this file" I can't check this box.  I open offi

  • Email to Smartphones blackBerry device takes a long time - help?

    Hello I have my curve from AT & T put in place to receive emails from work using personal with Outlook Web Access BIS account settings.  Today, I received an e-mail in Outlook on my PC at 07:50, but he has not got my phone for more than 37 minutes. W