By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

can I create a batch file & run it on user's PC?

P: n/a
A user runs a .NET application that authenticates them against active
directory (they're coming in over VPN so they don't log on to the network
normally). Once they log in, I want to take their user id, & run a batch
file on their PC with that user id actually inside the batch file.

(The objective here is to map a user to a drive on the network when they
come in thru VPN -- and that can only be done with a batch file we have,
customized with their network user id in the file).

1. I'm not sure whether to do this in asp.net or C#.NET (c/s).
2. Actually the first thing I need to know is: how do I authenticate a
user against active directory? I mean, I give them a username & password.
They type it in. Can I somehow go against AD and verify if this is them.
3. How do I dynamically run a batch file on the user's PC ?

TY,
Jason Shohet
Nov 15 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
That sounds do-able. What you are wanting to create is a
logon script. You should be able to create a generic
batch file that will find the user information. Once you
have your batch file working correctly, attach it the VPN
connection. There should be a section in it just for
logon scripts.
-----Original Message-----
A user runs a .NET application that authenticates them against activedirectory (they're coming in over VPN so they don't log on to the networknormally). Once they log in, I want to take their user id, & run a batchfile on their PC with that user id actually inside the batch file.
(The objective here is to map a user to a drive on the network when theycome in thru VPN -- and that can only be done with a batch file we have,customized with their network user id in the file).

1. I'm not sure whether to do this in asp.net or C#.NET (c/s).2. Actually the first thing I need to know is: how do I authenticate auser against active directory? I mean, I give them a username & password.They type it in. Can I somehow go against AD and verify if this is them.3. How do I dynamically run a batch file on the user's PC ?
TY,
Jason Shohet
.

Nov 15 '05 #2

P: n/a
The first part i'm missing, is how to do a logon, that hits ActiveDirectory
on our network. Should I just search around the ng? (ie, its a common
thing)?

I wonder if .NET has a function, like.... callADlogon( ); that
automatically brings up the network logon control, validates against AD and
returns a boolean true or false :) ?? wishful thinking?
Nov 15 '05 #3

P: n/a
Unfortunately, I do not enough of AD to be any use to you
there.

-----Original Message-----
The first part i'm missing, is how to do a logon, that hits ActiveDirectoryon our network. Should I just search around the ng? (ie, its a commonthing)?

I wonder if .NET has a function, like.... callADlogon ( ); thatautomatically brings up the network logon control, validates against AD andreturns a boolean true or false :) ?? wishful thinking?
.

Nov 15 '05 #4

P: n/a
search MDSN or TechNet for:
longon script.
there is somewhere an example that does exactly what you want. I also have
it somewhere. If I find I will post it here.

To assing a longon script for a group of users the best way is to create a
group policy for that. Your network Admin must know how to do that.

"Jeremy Ames" <an*******@discussions.microsoft.com> wrote in message
news:67****************************@phx.gbl...
Unfortunately, I do not enough of AD to be any use to you
there.

-----Original Message-----
The first part i'm missing, is how to do a logon, that

hits ActiveDirectory
on our network. Should I just search around the ng?

(ie, its a common
thing)?

I wonder if .NET has a function, like.... callADlogon

( ); that
automatically brings up the network logon control,

validates against AD and
returns a boolean true or false :) ?? wishful thinking?
.

Nov 15 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.