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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using VBScript to log onto a server with a specific username/password 1

Status
Not open for further replies.

adamrobert

Programmer
Oct 15, 2003
5
GB
Hi,

Apologies for my incompetence but I am having difficulty using VBScript to automatically log onto a server from a networked workstation with a specified username and password.

I have been allocated a service account on two servers but am struggling to generate the required code.

The VBScript I currently possess is executed remotely and therefore the username and password submission needs to be handled appropriately.

Any help would be greatly appreciated.

Cheers.
 
If you are trying to map a drive try this;

set objNet=Server.CreateObject("WScript.Network")
objNet.MapNetworkDrive "Z:","\\myserver\myshare",false,"myuser","mypassword"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top