Announcement

Collapse
No announcement yet.

Tough Scripting Question regarding username and password

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tough Scripting Question regarding username and password

    I need to run a script to make some changes on a user system. The current local profile does not allow the user to make these changes. So I need to add some code to the script that uses the admin username and password so the changes can be made.

  • #2
    why not running the script as a startup script.

    anyway, runas is also scriptable or you can use NTrights
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment


    • #3
      Good question. We have 20 remote users that use Exchange OWA. They are traveling and fon't really log into the domain. I need to make changes and wanted to send the script via email or dsk. The local profile does not allow the changes so I need to first add a snippet of code that uses the admin password of the local administrator.

      Thanks for response,

      Comment


      • #4
        Ron,

        Take a look at CPAU utility here: http://www.joeware.net/win32/index.html

        You can write a script that needs admin permissions and spawn the job in admin context without revealing the user/password in clear text.

        HTH
        Guy Teverovsky
        "Smith & Wesson - the original point and click interface"

        Comment


        • #5
          or create a script witch schedules the script you want to run..
          Marcel
          Technical Consultant
          Netherlands
          http://www.phetios.com
          http://blog.nessus.nl

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"

          Comment

          Working...
          X