|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (5 bit)
Join Date: Sep 2004
Posts: 31
|
Username login for CACLS command
I am trying to CACLS a folder on the C: drive for our users on the floor (restricted generic user account) and would like to do it in a batch file... Question is, how do I launch the batch file as a particular user? I need to run it as admin.
Any suggestions? Thanks! Andrew |
|
|
|
|
|
#2 |
|
Member (5 bit)
Join Date: Sep 2004
Posts: 31
|
I just found it... I was having a major brainfart. The command is Runas. Does anyone know the correct syntax? One that I can understand? The syntax it gives you from Microsofts website is really confusing and it makes me believe that I need to use all the parameters.
|
|
|
|
|
|
#3 |
|
Forum Administrator
Staff
Premium Member
Join Date: May 2000
Location: Joplin MO
Posts: 36,460
|
What operating system are you referring to?
|
|
|
|
|
|
#4 |
|
Member (5 bit)
Join Date: Sep 2004
Posts: 31
|
win xp
Sorry, I should have posted that. What I am trying to accomplish is to give full access to a folder called C:Barcode to 150 computers on the floor. I am using a batch file at startup for the generic user on our production floor to map drives and I want to add a CACLS command to give full access to the folder. I have figured out the syntax now I just need to figure out how to make it so it doesn't ask for the password. Does anyone know how to do this? Thanks again. Andrew |
|
|
|
|
|
#5 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
http://blogs.msdn.com/oldnewthing/ar...29/271551.aspx is a good discussion on the password prompt with runas. There are a number of considerations listed based on the level of security you're looking for.
|
|
|
|
|
|
#6 |
|
Member (5 bit)
Join Date: Sep 2004
Posts: 31
|
Good info! I ended up using Sanur for my needs. It's a little confusing but it does the job. Thanks for the help, I appreciate it!
Andrew |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Computer Acronyms | Floppyman | Computer Hardware | 156 | 06-18-2006 07:25 AM |
| Username on Login | Auriga | Windows Legacy Support (XP and earlier) | 2 | 09-04-2005 02:00 AM |
| Begining DOS help | longrawker | Windows Legacy Support (XP and earlier) | 17 | 11-13-2004 12:55 PM |
| Default login username? | MSIuser | Windows Legacy Support (XP and earlier) | 3 | 06-18-2004 08:18 AM |
| Heres some Window Secrets | Citron | Windows Tips, Tricks, and Tweaks | 22 | 01-12-2003 08:07 AM |