|
|
Question : vbscript, domain authentication for non-domain computer
|
|
HI, I'm looking for a VB script that will send domain login information to the server, from a computer that is not on a domain.
We have an outside HR rep that has several clients, including us. So we can't set her computer to log on to our domain, because i changes too much stuff for her ad she freaks out. So what I'd like to do is have a script that will send her domain name and password to the server, so her computer can be authenticated and she can use the domain printers and access the dfs. Right now the only was for her to do that is for her to access a dfs folder and enter her information when it prompts her. I would prefer to automate that process, as its cumbersome when she only needs to print documents.
|
Answer : vbscript, domain authentication for non-domain computer
|
|
You could easily write a batch file to connect her printers and network shares. She will be asked once for the password when starting the bat file.
for printer type this line in the batch file net use lpt1: \\server\sharedprintername /USER:domain\ /Persistent:NO
for file share this one: NET USE N: \\Server\Share /USER:domain\ /Persistent:NO
its also good practice to delete the required drive letters and printer ports first. so put something like at the beginning of the batch file:
net use lpt: /del /y net use N: /del /y
|
|
|
|
|