• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 457
  • Last Modified:

where to supply password for user1 in logonscript

Could anyone let us know where to supply the password in the following statement?

net use e: \\appsvr\D$ /user:appsvr\user1

Thanks
0
mei_liu
Asked:
mei_liu
1 Solution
 
Irwin SantosComputer Integration SpecialistCommented:
Use this

net use x: \\server\share /user:username *

Where * = password

0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Why are you trying to connect to an administrative share in a logon script?

This is not the correct way of doing things.

If you need to, reshare the root as something else, then you won't need to administratively connect
0
 
Rob WilliamsCommented:
net  use  e:  \\appsvr\D$  password   /user:domainame\user1
or
net  use  e:  \\appsvr\D$  password   /user:user1@doaminname.xyz

I agree I wouldn't share the root

0
Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
mei_liuAuthor Commented:
Both Leew and RobWill have a very valid point. This is a ts enviornment, and we have some customized code that uses drive E:\ on the old app server. When we moved the application to a new TS server, we couldn't customize it since we don't have the source code, but we needed to map d: to e: which would make our application to work properly.

Since RobWill's statement works, we will give him the points.

Thanks all!
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Why not just use SUBST instead of mapping back to a drive?
0
 
Rob WilliamsCommented:
Thanks mei_liu,
--Rob
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now