Run command line with another account with credentials from a variables_

Unanswered Run command line with another account with credentials from a variables_

  • Saturday, January 19, 2013 1:01 PM
     
      Has Code

    Hi!

    I would like to run a Command line as a domain user with the credentials that i have defined in variables in CS.ini. Does this work in MDT? I know it does in SCCM but i can't get it to work.
    Example, CS.ini:

    [Settings]
    Priority=SetVariables, Default
    Properties=cPassword, cUsername
    
    [Default]
    BitsPerPel=32
    VRefresh=60
    XResolution=1600
    YResolution=900
    
    [SetVariables]
    cUsername=Yoda
    cPassword=PassW0rd

    Understand how i mean? The above does not really work but maybe there is another way i can accomplish this?


All Replies

  • Sunday, January 20, 2013 3:04 PM
     
     

    What exactly are you rying to do?

    BTW, the "normal" command is /domain:domain_name\Yoda passW0rd, son you can just do runas

  • Monday, January 21, 2013 10:18 AM
     
     
    I am trying to set up a dynamic task sequence which means that i can change domain name and password in CS.ini and it will be changed everywhere :)