Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Credentials scripting

Status
Not open for further replies.

anth1977

Programmer
Mar 17, 2002
5
US
I'm trying to run an application both using login scripts, and it writes files to a directory that the user (who is a
local administrator) doesn't have permissions to write to.

Does anyone know how to script a way around this. RUNAS I looked into,
but that prompts the user for a password. I'm looking for a way to
script to say "run this app using these credentials."
 
You didnt specify the OS, but you may want to check out the SU utility in the Win2K resource kit.

Alternatively, you could create a VB component that wraps the WinAPI functionality you need, then use that component in your VBS.

In what context are you referring to the RUNAS you looked into? I'm familiar with it's use under Services and DCOM configurations, but both of those allow you to establish the password when you set the username. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top