• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

"cannot find the file '/idlist,:0:????,\\%domaincontroller%\Policies\{F91B8F0F-D94F-45F0-8665-494DED465225}\User\Scripts\Logon\login.bat".

I put the Group Policy in the OU that I belong to and when I login to the domain
I get the pop up error "cannot find the file
'/idlist,:0:????,\\%domaincontroller%\Policies\{F91B8F0F-D94F-45F0-8665-494DED465225}\User\Scripts\Logon\login.bat".  

The location of the script is below
\\%domaincontroller%\Policies\{F91B8F0F-D94F-45F0-8665-494DED465225}\User\Scripts\Logon\login.bat".
I also have ismember.exe in directory.  below is the script.

:helpdesk
ifmember helpdesk_Global
if not errorlevel 1 goto next
echo Connecting to Helpdesk
net use o:\\server\admin\

:next



Basically from what I can tell it is not finding the path to the script file.

0
Cveselka
Asked:
Cveselka
  • 12
  • 12
1 Solution
 
robrandonCommented:
Do you have any replication errors in your event logs?

0
 
CveselkaAuthor Commented:
Yes,

Following is the summary of warnings and errors encountered by File Replication Service while polling the Domain Controller cflpdc.CFL for FRS replica set configuration information.
 
 Could not find computer object for this computer. Will try again at next polling cycle.





0
 
robrandonCommented:
I had a recent problem where I ran out of space on the dc and it screwed up the gp replications through FRS.  I had to make a registry change and restart the service - then everything was ok.  Let me see if I can find the article.

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
robrandonCommented:
Sorry, couldn't find it.  Do you have an event ID for the error messages?  
0
 
CveselkaAuthor Commented:
I starting to think that the person that setup the domain before me set it up wrong.  First Event ID is below

Event ID 5506


I'm also getting these errors

Event ID 5781

Dynamic registration or deregistration of one or more DNS records failed because no DNS servers are available.

And this is the one that is really confusing me

Event ID: 1091

The ntdsConnection object CN=f811622d-2461-4867-aa06-f32682f33991,CN=NTDS Settings,CN=CFLPDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=CFL dictates that the local server should replicate from itself.  This is not a valid configuration and will be ignored.  Please use the Active Directory Sites and Services Manager to modify or delete this object.
0
 
robrandonCommented:
Go into Sites and Services.  Drill down to your Site, the Servers folder, and expand each Server.  Under each server, highlight the NTDS settings, then on the right hand side, make sure it is replicating with the correct servers.  

The correct settings depends on your topology.  If you want to explain to me what you have, I can give you an idea of how I would set it up.
0
 
CveselkaAuthor Commented:
I have a Primary and backup Windows 2000 Domain controllers.  Looks like the primary is trying to replicate off of itslef.  I guessing I need to delte that.  The backup is trying to replicate off of the primary.  The backup server is showing Default-First-Site-Name (from Site).  Is this correct?

The PDC shows it's replicating from the BDC and says its automatically generated.  Both are using the connection transport RPC
0
 
robrandonCommented:
Yes, it should not have itself as a replication partner.  You can change the site so it is your exact site name.  Once you have it setup, highlight NTDS settings on the left, and right-click on the server on the right - and choose replicate now.  Give it a few minutes - then check your event logs for errors.
0
 
CveselkaAuthor Commented:
OK everything is looking better I will try my group policy login script again.
0
 
CveselkaAuthor Commented:
ok that worked great I'm goiong up another 100 points if you can help me with the script.  Whenever the script runs below I get Ifmember is not a recognized command.  I downloaded it and put it in the same directory as the login.bat (script) file.  The login script does run though.

:helpdesk
ifmember helpdesk_Global
if not errorlevel 1 goto next
echo Connecting to Helpdesk
net use o:\\server\admin\

:next
0
 
robrandonCommented:
If you browse to the share on your DC that contains the script, what happens if you run it manually?  Do you get the same error?  Are the permissions on ifmember set correctly?

0
 
CveselkaAuthor Commented:
Yes it runs correctly if browse out there.  It's like it can't find the path.  Do I need to put the path to it in the script file?
0
 
robrandonCommented:
Perhaps.  I don't know what location it is running the script from - it is that location that would require the ifmember.exe file if the path isn't specified.

Is this just a batch file?  Is there a way to do it in VBScript maybe without using the ifmember external file?

Or, what about restricting the GP that runs the script to users that are in the helpdesk group.  That would probably be the best way to do it.  So your script would just be something like:
net use o:\\server\admin
and it would only run for the helpdesk users.
0
 
CveselkaAuthor Commented:
well Now I'm getting the error again on the "cannot find the file '/idlist,:0:????,\\%domaincontroller%\Policies\{F91B8F0F-D94F-45F0-8665-494DED465225}\User\Scripts\Logon\login.bat"

No errors in the event log.
0
 
CveselkaAuthor Commented:
Well I finally figured out why I got the error again.  We have Novell and domain login.  When I login to workstation only logging into the domain I get the cannot find file error.  If I login to novell and the domain my login script works.  I don't understand because novell and active directory are two different animals.  any suggestions?
0
 
robrandonCommented:
I haven't used Novell since 4.x.  Can this be a logon script that is running on the Novell side and have nothing to do with AD?  Are you using the Novell Client to logon?  Maybe that is screwing something up.



0
 
CveselkaAuthor Commented:
When I login to just the domain it is using the novell login client.  I get my drive mapping from my login script when I do login to novell but not when I login to just AD.  I just get the cannot find file error.  the path that follows is the correct path.
0
 
robrandonCommented:
Can you try it without the Novell client?  I'm just curious.
0
 
CveselkaAuthor Commented:
OK without the novell client it works.  That should be fine.  now I'm getting the IFMEMBER is not a recognized command again.  Ifmember.exe is in the same directory as the login.bat file
0
 
robrandonCommented:
Ok, so now, what about setting up the GP so it restricts it to the helpdesk group, so you don't need to use the Ifmember.exe?

0
 
CveselkaAuthor Commented:
I really don't want to maintain too many login scripts.  I would rather just have 1.  That way I could just add groups and drive mappings.
0
 
robrandonCommented:
I guess you have to specify the full path then.  You can probably use a variable to do it, it may look something like this:

:helpdesk
%domaincontroller%\Policies\{F91B8F0F-D94F-45F0-8665-494DED465225}\User\Scripts\Logon\ifmember helpdesk_Global
if not errorlevel 1 goto next
echo Connecting to Helpdesk
net use o:\\server\admin\

Not sure if that is the right path or not to your script - I copied it from the erro message above.
0
 
CveselkaAuthor Commented:
I found how to get the script to work by adding the following command in the script.  Thanks for all the help.

if not exist %systemroot%\system32\ifmember.exe copy \\server\share\ifmember.exe %systemroot%\system32
0
 
robrandonCommented:
Cool.  Glad I could help.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 12
  • 12
Tackle projects and never again get stuck behind a technical roadblock.
Join Now