3
Knowledge Center > Support Forums > Archived Products (includes End of Life) > MetaFrame XP Presentation Server and Components > MetaFrame XP Presentation Server > usrlogon.cmd not running Thread: usrlogon.cmd not running 0 users have this problem Back to Thread List Replies: 16 - Pages: 2 [ 1 2 | Next ] - Last Post: 11 mai 2005 11:23 Last Post By: Oliver Perrin Guest usrlogon.cmd not running Posted: 20 mars 2003 20:33 0 users found this post useful XP1 on Win2k We have a problem where an aplication is not running the usrlogon.cmd when it is started and therefore is not mapping network drives we want to map. The application is JDE Oneworld. Guest Re: usrlogon.cmd not running Posted: 20 mars 2003 22:43 in response to: Guest 0 users found this post useful Are you receiving an error when you launch the app? Or do you need these mappings on the app? Try to do another kind of test on usrlogon.cmd to check if really isn't running, and see if these commands inserted on usrlogon.cmd aren't stopping the script. Or make a script with the mappings and set to run synchronously on local GPO. Regards Cid Michael Pander Posts: 646 Re: usrlogon.cmd not running Posted: 21 mars 2003 04:23 in response to: Guest 0 users found this post useful Check your WINNT\Application Compatibility\Logon directory for missing files Stefan Vermeulen Posts: 10 285 Re: usrlogon.cmd not running Posted: 21 mars 2003 05:50 in response to: Guest 0 users found this post useful If you can't fix it, a simple workaround would be to publish a JD.bat containing: net use h: \\fileserver\sharename start c:\apps\jd.exe Guest Re: usrlogon.cmd not running Posted: 21 mars 2003 08:24 in response to: Guest 0 users found this post useful Hi, well JDE say hi from Finland, If you run windows 2000 servers, in usrlogon rem lines path set and greate usrlogn2.cmd add these file mappings there, also if you use network roaming profiles you will get mapping problems, but if posible do not add any lines in usrlogon.cmd, it just will die in login. try also delete profile from user what has the problem. all typin errors or IF lines will kill this cmd. JON HILDEBRAND Posts: 55 Re: usrlogon.cmd not running Posted: 21 mars 2003 10:20 in response to: Guest 0 users found this post useful Is it not running completely? Or just not running all the way through? --snoopj Guest Actions Guest Settings RSS Feed Forum Help Search Forums Search in: This Forum Legend Genius 4000 + pts Virtuoso 2000 - 3999 pts Master 750 - 1999 pts Scholar 250 - 749 pts Aficionado 100 - 249 pts Enthusiast 10 - 99 pts C itrix Alumni C itrix Readiness C itrite Helpful Answer Worth 2 points Correct Answer Worth 6 points Sign In KNOWLEDGE CENTER Knowledge Center eDocs Communities Support Forums Blogs

Citrix Forums _ Usrlogon.cmd Not Running

  • Upload
    sagalog

  • View
    80

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Citrix Forums _ Usrlogon.cmd Not Running

Knowledge Center > Support Forums > Archived Products (includes End of Life) > MetaFrame XP Presentation Server and Components >

MetaFrame XP Presentation Server > usrlogon.cmd not running

Thread: usrlogon.cmd not running

0 users have this problem

Back to Thread List

Replies: 16 - Pages: 2 [ 1 2 | Next ] - Last Post: 11 mai 2005 11:23 Last Post By: Oliver Perrin

Guest usrlogon.cmd not running

Posted: 20 mars 2003 20:33

0 users found this post useful

XP1 on Win2k

We have a problem where an aplication is not running the usrlogon.cmd when it is started and

therefore is not mapping network drives we want to map. The application is JDE Oneworld.

Guest Re: usrlogon.cmd not running

Posted: 20 mars 2003 22:43 in response to: Guest

0 users found this post useful

Are you receiving an error when you launch the app? Or do you need these mappings on the app?

Try to do another kind of test on usrlogon.cmd to check if really isn't running, and see if these

commands inserted on usrlogon.cmd aren't stopping the script.

Or make a script with the mappings and set to run synchronously on local GPO.

Regards

Cid

Michael Pander

Posts: 646

Re: usrlogon.cmd not running

Posted: 21 mars 2003 04:23 in response to: Guest

0 users found this post useful

Check your WINNT\Application Compatibility\Logon directory for missing files

Stefan Vermeulen

Posts: 10 285

Re: usrlogon.cmd not running

Posted: 21 mars 2003 05:50 in response to: Guest

0 users found this post useful

If you can't fix it, a simple workaround would be to publish a JD.bat containing:

net use h: \\fileserver\sharename

start c:\apps\jd.exe

Guest Re: usrlogon.cmd not running

Posted: 21 mars 2003 08:24 in response to: Guest

0 users found this post useful

Hi,

well JDE say hi from Finland,

If you run windows 2000 servers, in usrlogon rem lines path set and greate usrlogn2.cmd add these

file mappings there, also if you use network roaming profiles you will get mapping problems, but if

posible do not add any lines in usrlogon.cmd, it just will die in login. try also delete profile from user

what has the problem.

all typin errors or IF lines will kill this cmd.

JON HILDEBRAND

Posts: 55

Re: usrlogon.cmd not running

Posted: 21 mars 2003 10:20 in response to: Guest

0 users found this post useful

Is it not running completely? Or just not running all the way through?

--snoopj

Guest Actions

Guest Settings

RSS Feed

Forum Help

Search Forums

Search in:This Forum

Legend

Genius

4000 +

pts

Virtuoso

2000 -

3999 pts

Master

750 -

1999 pts

Scholar

250 - 749

pts

Aficionado

100 - 249

pts

Enthusiast

10 - 99

pts

Citrix

Alumni

Citrix

Readiness

Citrite

Helpful

Answer

Worth 2

points

Correct

Answer

Worth 6

points

Sign In

K N O W L E D G E C E N T E R

Knowledge Center eDocs Communities Support Forums Blogs

Page 2: Citrix Forums _ Usrlogon.cmd Not Running

--snoopj

Guest Re: usrlogon.cmd not running

Posted: 21 mars 2003 18:47 in response to: Guest

0 users found this post useful

With the limited info available...

My guess is that it is actually running, but encountering errors before completion. You have added

your drive mappings at the end of usrlogon.cmd and it doesn't make it that far!

Put your drive mappings at the TOP of usrlogon.cmd and I bet they will map (unless there are

mapping specific issues).

That of course does not address the real issue however. You need to determine where usrlogon.c

md is failing. I would suggest that you put a few "pause" statements in usrlogon to determine

where it is failing.

Set "@echo on" and try placing a "pause" before the following lines:

If "%_SETPATHS%" == "FAIL" Goto Done

If "A%RootDrive%A" == "AA" End.Cmd

If it exits after the first pause, you know that "setpaths" is failing - troubleshoot

If it exits after the second pause, you know rootdrv.cmd is failing - did you run chkroot.cmd and

enter a value?

Regardless of the real issue, I feel confident that moving your mappings to the top (just under

@echo off) will resolve drive mapping issue.

Good luck,

Jeff

Jorgen Bjorkman

Posts: 13

Re: usrlogon.cmd not running

Posted: 24 mars 2003 06:43 in response to: Guest

0 users found this post useful

In policies enable 'run logonscript synchronuosly' and 'run logonscript visible' while troubleshooting.

Jack Lamers

Posts: 190

Re: usrlogon.cmd not running

Posted: 24 mars 2003 06:49 in response to: Guest

0 users found this post useful

Maybe obvious, but did you check your registry at:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon entry

Appsetup should contain USRLOGON.CMD

Also check te Security on this key, check if users can read it.

Good Luck,

Jack Lamers

ISL Automatisering BV

[email protected]

Page 3: Citrix Forums _ Usrlogon.cmd Not Running

Contact Careers Legal Notice Privacy Governance Site Feedback Site Map ©1999- 2012 Citrix Sy stems, Inc. All rights reserv ed.

Guest Re: usrlogon.cmd not running

Posted: 24 mars 2003 18:37 in response to: Guest

0 users found this post useful

Thanks to everyone who has replied. I had already tried most of the suggestions (should have put

more info in, sorry). Further investigation reveals that no logon scripts are running on these servers

at all? Looks to me like someone had "tweaked" a setting, policy or something similar...any

suggestions?

Peter David

Posts: 5 728

Re: usrlogon.cmd not running

Posted: 25 mars 2003 09:23 in response to: Guest

0 users found this post useful

I have seen exactly this problem recently on two servers, and the last post describes the fix

exactly. It looks like the installation of MFXP (SP2 as far as I can tell) blitzes the:

HKLM\Software\Windows NT \CurrentVersion\Winlogon\Appsetup

...key and relaces the current value with 'cmstart.exe'. This prevents usrlogon.cmd from running.

Cant seem to find out what cmstart.exe does though!!

Guest Re: usrlogon.cmd not running

Posted: 25 mars 2003 14:49 in response to: Peter David

0 users found this post useful

This article explains why/when cmstart.exe replaces usrlogon.cmd: CTX941564

M.B. Hancock

Posts: 4

Re: usrlogon.cmd not running

Posted: 10 avr. 2003 14:44 in response to: Guest

0 users found this post useful

FIX

The real problem is the default file, usrlogon.cmd, is flawed. The line that reads If "A%RootDri

ve%A" == "AA" End.Cmd does not start the end.cmd file, instead the file ENDs. To correct this

issue, place the word CALL before the eEnd.Cmd. The resulting line will look like this -> If

"A%RootDrive%A" == "AA" Call End.Cmd .

FYI> I'm frustrated at Citrix in that this file is provided by them with their installation media. It could

create a ton of headaches.

Matt

Raymond Leung

Posts: 67

Re: usrlogon.cmd not running

Posted: 10 avr. 2003 15:02 in response to: Guest

0 users found this post useful

What does usrlogon.cmd do? How do i use it ? If anyone has a link of how to do it?

Thanks.

David Costantino

Posts: 814

Re: usrlogon.cmd not running

Posted: 10 avr. 2003 16:38

in response to: Raymond Leung

0 users found this post useful

This file is actually installed by MIcrosoft.

Editing User-Specific Information

When a user logs on to the system, Terminal Services executes a batch file called UsrLogon.cmd

in the System 32 directory. This file makes any necessary modifications to the user environment

and ensures that users can run their applications correctly. If Terminal Services modifications to

the user environment are necessary, you can make them by editing this file. Be aware that by

editing this file you might cause a problem with the application compatibility scripts that are

executed from this batch file.

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windows2000serv/

reskit/deploy/part4/chapt-16.asp

Thanks

Pages: 2 [ 1 2 | Next ] Back to Thread List