473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
4 2096
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Herb Stevenson | last post by:
Hello all. I need to set up a batch file to work w/ the Visual Studio.NET 2003 command prompt. However, when I run the batch file it uses the standard command prompt. Is there a way to...
15
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
14
by: Mark C. | last post by:
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run... in an asp script. Naturally, I can get the script to work from a command...
3
by: Keith Wilby | last post by:
I have some code in my app that updates data by interrogating data from Artemis. It works fine, but I wondered if I'd be able to write a batch file which, at a predetermined time each day, would...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
3
by: emman_54 | last post by:
Hi every one, I am trying to run a batch file using my asp.net application. I am using the Process class to run the batch file. When I run my web application, In the task manager, i could see...
1
by: abcd | last post by:
I am using Python to create a process on another computer. Both computers are on the same domain with admin privileges. On computer B I have a batch script which starts a python script. From...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
14
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.