![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
Map Drive Networkthis thread has 6 replies and has been viewed 930 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||
|
||||||||
|
Hi All
I create Bat file but i need to check permission via user if user don't access to folder no display Drive if user have permission to access to folder can display. How to edit Quote:
|
|
#2
|
||||||||||
|
||||||||||
|
Can't think how to do it in a batch file but a slightly different way would be with KIXtart like this:
IF INGROUP ("USERGROUP1") USE U: \\servername.\domain.local\share or you could use group policy which applies based on group membership.
__________________
cheers Andy Please read this before you post: http://support.microsoft.com/kb/555375 Quis custodiet ipsos custodes? |
|
#3
|
||||||||
|
||||||||
|
I don't have permission on DC
|
|
#4
|
||||||||||
|
||||||||||
|
Why bother?
If users do not have permission, they may see the drive but won't get into it (or ask your network admin to set things up on the domain for you)
__________________
Tom Jones MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+ PhD, MSc, FIAP, MIITT IT Trainer / Consultant Ossian Ltd Scotland ** Remember to give credit where credit is due and leave reputation points where appropriate ** |
|
#5
|
||||||||||
|
||||||||||
|
try this:
Code:
@echo off :: Disconnect drives for %%$ in (s: p: i:) do net.exe use %%$ /D /Y :: Map drives only if user has at least Read permissions there call:MapDrv s: "\\172.16.80.4\Public$" /P:N call:MapDrv p: "\\172.16.80.4\PM" /P:N call:MapDrv i: "\\172.16.80.4\System_Support" /P:N echo done.... :end of batch GOTO:EOF ---- Map drive routine ---- :MapDrv if exist "%~2\*" (net.exe use %*) exit /b 0
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. __________________ ** Remember to give credit where credit's due ** and leave Reputation Points for meaningful posts |
|
#6
|
||||||||
|
||||||||
|
what is the net.exe
Quote:
|
|
#7
|
||||||||||
|
||||||||||
|
There is a very helpful, but apparently unknown, web site called
You type in a question and it gives you a list of sites which can answer it. In your case (using exactly what you posted) there are 23 million results that took approximately 10 seconds to find. Here, I've saved you those 10 seconds of your life http://www.google.co.uk/#hl=en&sclie...w=1489&bih=799
__________________
Tom Jones MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+ PhD, MSc, FIAP, MIITT IT Trainer / Consultant Ossian Ltd Scotland ** Remember to give credit where credit is due and leave reputation points where appropriate ** |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| USB drive mapping as network drive for domain users | rajeevsharma | Windows Server 2000 / 2003 | 6 | 11th October 2009 11:02 |
| Network Drive | pbedorf | Windows Server 2000 / 2003 | 1 | 5th June 2007 19:44 |
| Network Drive | Dragonslayer | Windows Server 2000 / 2003 | 9 | 1st May 2007 21:36 |
| Help in creating mapped network drive (was:Network Drive) | Qman46 | Windows Server 2000 / 2003 | 4 | 4th September 2006 20:12 |
| Map network drive - GPO | pardal51 | GPO | 3 | 6th September 2005 12:59 |