Ifmember Map Drive script not working
So I have a script that I've used for years, but for some reason trying to use it in a new domain doesn't work. Script looks like this:
@ECHO OFF
rem NET USE J: /d
rem NET USE K: /d
%logonserver%\netlogon\software\ifmember "domain\SecurityGroup1" > nul
IF ERRORLEVEL 1 SET MAPDRV=TRUE
IF NOT DEFINED MAPDRV GOTO :NEXT
net use J: \\domain.com\dfsroot\folder1
SET MAPDRV=
:NEXT
%logonserver%\netlogon\software\ifmember "domain\SecurityGroup2" > nul
IF ERRORLEVEL 1 SET MAPDRV=TRUE
IF NOT DEFINED MAPDRV GOTO :END
net use K: \\domain.com\dfsroot\folder2
SET MAPDRV=
:END
As I said, it's been wokring for years, but trying to use it in a new test domain, and for some reason the Errorlevel never flags. I tested my ifmember and I can see the user as a member of the security group that gives the drive access and should flag
true on the ifmember lookup. The net use piece works, and the user has permissions and the ability to map to that share. So something is preventing the If Errorlevel 1 set mapdrv=true .
Any Ideas?
While working on implementing Group Policy preferences, run these commands from a Command Prompt to see what is going on:
%logonserver%\netlogon\software\ifmember "domain\SecurityGroup1"
echo ErrorLevel=%ErrorLevel%
If the user is a member of SecurityGroup1 then you should see "ErrorLevel=1" on the screen. If you don't then ifmember.exe does not work on your system.
If you can get it to work then this simplified script would work just as well:
@echo off
set IfMember=%logonserver%\netlogon\software\ifmember.exe
%IfMember% "domain\SecurityGroup1" || net use J: \\domain.com\dfsroot\folder1
%IfMember% "domain\SecurityGroup2" || net use K: \\domain.com\dfsroot\folder2
Similar Messages
-
Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a blur.
Do you have a question? This is a user to user help forum. Apple is not here only other users like yourself. You don't report problems to Apple here.
By the way, it might help if you indicated where you are located.
To complain to Apple use http://www.apple.com/feedback/ipad.html -
External hard drive is not working on airport time capsule even after 7.7.2 firmware update.
I have the latest Airpor Time capsule 2gb. I specifically bought it so that I could have an external hardrive set up to wirelessly house my itunes library and movies. When i connect the drive, all i get is that the disk needs to be repaired.
the drive can works fine when connected to the macbook pro and I have run the verify and repair features in disk utility. I have also reset the airport timecapsule as well following these changes and still no change.
The 7.7.2 update says that it addressed the usb issue of not showing the drives but there are still problems as I cannot get it to appear.
Please help.
ThanksHow is the hard drive formatted?
Have you tried using a powered USB hub with the drive when it is connected to the Time Capsule?
(The USB port on the Time Capsule is borderline as far as power is concerned....you may need to use a powered hub.....even if the hard drive has its own power supply)
If the drive is formatted correctly....and....it has ample power, it will "show up" when you open AirPort Utility, click Edit, then click the Disks tab at the top of the next window.
In the example below, my Time Capsule drive is named "Backups" and another drive named "WD Drive" is connected to the USB port on the Time Capsule.
You should see the name of your Time Capsule drive (named "Data" unless you have changed the name) and the name of the USB drive if you perform the same check.
What do you see? -
My mac book fell of my desk yesterday. All seems well, but I noticed today that the dvd drive is not working properly, it seems to want to keep ejecting the disk even when the disk is out, and it won't accept dvd's any more. Any suggestions o fellow apple users?
Back up EVERYTHING, then take it in to have them assess for any latent damage. Wouldn't want a similar "delayed reaction" from the hard disk drive, would we?
-
Satellite P25-S520 - DVD drive is not working properly
Fix DVD Drive or buy external drive
My DVD drive is not working properly, in fact it may never have been working proper. Recently I tried to back up my PC to a DVD using Norton 360. Norton did not recognize the DVD was present. I then tried writing a text file to a DVD and was unsuccessful. Both DVD+R and DVD-R media were tried (Maxwell 16X).
I could have probably lived with this however, I got a copy of Dragon NaturallySpeaking version 10 on a CD and my Toshiba would not recognize it. I tried the CD in my neighbors laptop and it was recognized.
An attempt at updating the driver was also unsuccessful.
I was able to rip a music CD last night so that at least is working correctly.
Does anybody know how I can fix this? The important part is being able to load my new program.
Searching some forums I've found that other people have had problems with the Pioneer drive. If the drive cannot be fixed I am not adverse to buying an external DVD drive. Unfortunately where I live there are no brick-and-mortar stores which sell external drives and I would prefer to avoid the hassle of getting a drive online and discovering that it does not work with my Toshiba. Can anyone suggest an external USB drive which will read and write CDs and DVDs and which is certain to be compatible with my Toshiba?
Thank you for any help,
Humbaba3000BC
Satellite P25-S520
PIONEER DVD-RW DVR-K12D
Driver Provider: Microsoft
Driver Date: 7/1/2001
Driver Version: 5.1.2535.0
Digital Signer: Microsoft Windows PublisherAny external USB CD/DVD drive will be compatible with your laptop.
However you wont be able to boot of CD's (Run Recovery for example) if you use an external drive.
So your best option would be to replace the internal drive with a Toshiba drive designed for the laptop. Call an ASP and ask for a quotation. -
My wifi driver is not working with windows 8.1 in my MBA2013?
My wifi driver is not working with windows 8.1 in my MBA2013?
i installed windows 8.1 with bootcamp, everythigs seems to be working fine except the wifi,
please help me to solve this problem,,
thanksneokenchi wrote:
hi erabbath,
Welcome to the Forums.
If you have the Intel Centrino N2230 Wireless + Bluetooth adapter, can you try to:
1. Navigate to the Control Panel (large icon view) > Devices and Printers and try to pair a bluetooth device (i.e. Bluetooth Headset) and observe if it gets detected under the device list.
2. If the Bluetooth Headset is listed but it's not working try toright click on it > choose Properties. On the bluetooth properties Window, go to the Services Tab and check all the appropriate bluetooth services.
Sample picture
Let me know your findings.
Regards
Thank you very much for your answer,
I went to Control Panel > Devices and Printers and i tried to add a new device as the bluetooth doesn't appear this is what i got. By the way the bluetooth was on.
Link to picture
And this is what i have on the Bluettoth
And it search endlessly whereas before the upgrade it was working properly,
All the drivers are up to date as well as windows updates are all installed
Thanks in advance for your help
Regards
Moderator note; picture(s) totalling >50K converted to link(s) Forum Rules -
External Hard Drive does not work with Lion
Hi
My External Hard Drive does not work with Lion this message appears:
NTFS-3G could not mount /dev/disk1s1
at /Volumes/My Passport because the following problem occurred:
/Library/Filesystems/fusefs.fs/Support/fusefs.kext failed to load - (libkern/kext) link error; check the system/kernel logs for errors or try kextutil(8).
the MacFUSE file system is not available (71)
can anyone help?Hi,
See this Discussion:
https://discussions.apple.com/thread/3191198?start=0&tstart=0
Cheers, -
I have upgraded to Lion OS only to find that my NAS (Iomega Home Media Network hard drive) does not work. It tells me that it is not configured. Are there any solutions . Have Iomega sorted out the problem?
Same issue here. Based on what I can tell, iomega still has not developed a solution to the problem. See below:
https://iomega-na-en.custhelp.com/app/answers/detail/a_id/28327/kw/Mac%20OS%20X% 20Lion -
Backing up to new external hard drive is not working
I just purchased a new 2TB FreeAgent external hard drive. I hooked it up to use as a time machine backup and in the preferences of Time Machine it said that the drive needed to be formatted. I then went to Disk Utility and erased the drive using the format "Mac OS Extended (Journaled)" and gave it a name. Once that was done I attempted to back up again through time machine but it started the "calculating changes..." at 23% and stayed there all night. I do not know if I need to reformat it differently or why it is not working.... any suggestions?
jwsand wrote:
I tried to hook up the external hard drive to a different computer (imac) and it worked without any problem.
Did you cancel the backup it was attempting to do, before disconnecting it? If not, did you eject it first?
Do you mean it ran backups? Or just that it was recognized? Those are very different.
The mac pro has 2 internal hard drives. One for the OS and the other for a tm backup.
Be sure that second drive is now excluded from TM Backups via TM Preferences > Options. If TM is trying to back up the internal disk's TM backups onto the new external, that might explain why it's confused (I know I am!)
I attempted to hook up this external drive to a second external tm back up
Do you mean you've "daisy chained" it, to yet another disk also containing TM backups?
and noted the different disk in the tm preferences.
Do the two disks have different names, and does TM Preferences show the new name? If not, the preferences file may be corrupt. In that case, do a "full reset" per #A4 in the Troubleshooting Tip.
Do you have any idea why this drive would not work on my mac pro but does work on my imac?
I'm not entirely sure that's true. Please clarify exactly what you're doing; what's connected where and how, and what's being backed-up.
On the Pro, you have 2 internals and how many externals? Which ones are being backed-up (ie, not on the exclusion list in TM Preferences > Options)? -
i have a macbook pro from 2006, my internal cd drive is not working and i'm trying to install factory definitions from an external cd drive. the problem is that when i press c nothing happens only appears an interrogation folder. or sometimes appears the apple logo and than back again to the interrogation folder... Help please!!!!
mcbsousa wrote:
hm... Is there any chance of making the bootable usb file and send it by dropbox or something like that? than put it in a pen drive and connect to the mac??
Sending by Dropbox where, To who, to what computer? As your does not start up.
You need to take at least the OS disc to a work Mac computer and create DMG from the OS install disc then restore that DMG to USB thumb drive. Then you can boot the computer from that thumb drive and install the OS. That is if your hard drive is functioning correctly.
Then you can use the App disc in the external CD/DVD drive to load up all the included Applications that come with your version of OS X. -
DVD-Drive is not working any more
My DVD-Drive is not working any more. When I enter a CD/DVD it makes a strangs bruummm for 2 or 3 times ant then ejects the CD/DVD. What can I do. I think the Drive is broken.
Here are some tips for trouble shooting slot load
http://docs.info.apple.com/article.html?artnum=88275-en
Mort -
i have my serial number. I bought this macbook pro in Cleveland Ohio, and it is still under warranty. Now I am travelling in India and my disk drive is not working. need local help. in chennai. I also need to retriwve my warranty paper online, as I am right now in chennai ad all my docs are in Cleveland.
You posted in the iPad forum instead of the MacBook Pro forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/index.jspa I'll request that Apple relocate your post.
Cheers, Tom -
hi,
I have macBook Pro and I insert small CD before a year . today I take out the DVD driver and the got the small CD. I returned back all things as it is. the problem now that DVD driver dose not work at all . the CD can't go inside.
I think there is problem in connection between DVD driver and other hardwares , or there is software problem , but i did not how to solve it.
please help me to fix it.
ThanksI solved the problem , I found that the wire between DVD driver and motherboard wasn't connected , I fix it then Resetting PRAM and NVRAM
http://support.apple.com/kb/HT1379 -
iPAD 2 ,MY iPAD IS UPDATED, BUT MAP SOFTWARE IS NOT WORKING PROPERLY ,LOCATION/ROUTE & DISTANCE ALSO...
CAN YOU GUIDE HOW TO SOLVE THIS PROBLEM....WAITING FOR SAME.
VIRAL THAKKER- INDIA.
ALSO, I HVE SOME PROBLEM IN MACBOOK SOFTWARE OPREATRING SYSTEM IS 10.6.1 AND TRY DOWNLOAD 10.6.8...BUT DON'T KNOW AFTER DOWNLOADING,I M NOT ABEL TO RUN IN MY MACHINE .
ANY BODY CAN GUIDE ME? TO SOLVE THIS PROBL.
VIRAL THAKKER INDIATry this: Open up her Home folder (house icon), click Library then Preferences. Locate com.apple.softwareupdate.plst (I don't have my Mac handy so I can't double-check the name; that should be correct) and move it to the desktop or trash, then try running Software Update again. Also try running Software Update while logged in as another administrator.
~Lyssa -
Usb drives are not working, usb drives are not working
USB drives are not working. Please help
Non of my Western Digital drives are working anymore on several different Mac computers, one Mac can still work with the drive so I am not getting it up dated to the new OS.
If they told me that all my 2 TB drives would no longer work if I got the new OS I would not have updated.
There needs to be a fix, I can't afford all new drives plus they have video on them that I need to use.
Also iPhoto and Garage Band have disapeared I can't find any trace of them???
Maybe you are looking for
-
Diff b/w group vs local currency (both curr same) in Inventry GL A/c
There is a difference b/w group vs local currency on trial balance (where both currencies are same) in Inventory GL account, which are supposed to match. Any Probable reasons...
-
Horizontal bars with SD movies
So...I'm a new ATV (2nd gen) user. We recently moved and I'm just not a 100% sure that everything is setup the way it's supposed to be... When I rent movies on my ATV, I often have a bar at the top and bottom when viewing the movie on my HDTV (Samsun
-
Activity type in routing that was pick to compute the PO date
Hello, Where in SAP could i find where does a production order pick what activity type it will pick to compute the production order finish date? Thanks Ryan
-
Receiving a "FIXMAPI 1.0 MAPI Repair Tool has stopped working" error
One of our users has Windows 7 Installed. When she emails out attachments, she right clicks it and chooses to "Sent To" and then selects "Mail Recipient". It opens and creates a new email fine. Upon pressing SEND it gives a "FIXMAPI 1.0 MAPI Repair T
-
I can't set up Thunderbird to link to my gmail pop account.
I downloaded Thunderbird to assist me in saving materials from my university email, which will cease to exist in the coming months. I'm having difficulty, however, in linking my university email to Thunderbird. I suspect the issue is it is a pop acco