User on the system Start up

Discussion in 'Scripting' started by G Aranda, Nov 13, 2008.

  1. G Aranda

    G Aranda Guest

    Hi everyone,

    I want to know wich user is executing the code that we put on a server on
    the "Machine Configuration" to be executed on the start up (WSF). I have a
    problem on the Windows XP registry, because I'm unable to change somes
    values from this user.

    Thanks in advance to evyone,
    G Aranda
    G Aranda, Nov 13, 2008
    1. Advertisements

  2. The environmental variable %UserName% tells you the current user.
    Pegasus \(MVP\), Nov 13, 2008
    1. Advertisements

  3. G Aranda

    G Aranda Guest

    Ok... the trouble, is that when I put something on the start up "Machine
    Configuration" from the OU Policies, there is no user loged on the
    machine... the machine is starting.
    G Aranda, Nov 14, 2008
  4. G Aranda

    \RemS Guest

    What is key you like to edit?
    Have you already tried to accomplish this with a logonscript at User
    or is there a special reason for linking a user configuration script to a
    group of computers independent which users logon? Then you could use loopback
    processing or, you could extend the user logonscript code so it is able to
    determine the computer and the OU that computer is in.

    \RemS, Nov 14, 2008
  5. G Aranda

    G Aranda Guest

    I found the trouble. I'm trying to change a value at
    HKLM\System\CurrentControlSet\Print\Printers and the key Printers don't
    appears until the service "Printer queue" is started. I'm going to try to
    start this service first and ask for the key until the access is granted. If
    somebody have another method... this will be wellcome!!!

    G Aranda
    G Aranda, Nov 14, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.