Re: Re: Can CMD.EXE be edited?

From: lforbes (UseLinkToEmail_at_WindowsForumz.com)
Date: 12/30/04


Date: 30 Dec 2004 02:30:52 -0500


"Bob I" wrote:
> The .bat file or .cmd file that is running is run in the
> CMD.EXE look
> for *.bat and *.cmd files containing "NET USE" commands.
>
> Brian wrote:
>
> > The machine is a Windows 2000 box. Every time the user logs
> on, the CMD.EXE
> > runs and is running a command to delete one of their
> essential drive
> > mappings. They have to remap the drive every time they log
> on. I need to
> > know whether or not I can edit the CMD.EXE file, and if so,
> how? If I cannot
> > edit this file, how did this command to disconnect the drive
> mapping get
> > there, and how could I change it?
> >
> > Thank you,
> > Brian
> >

Hi,

It is a logon script that is running. Don’t Delete the cmd.exe. This
will cause a lot of problems and won’t solve your problem at all..

It depends on how your user logs on. If your user logs into a domain,
you Must go to the DC and make sure the user doesn’t have a login
script or is in a OU that calls a Group Policy login script.

If your user logs in locally type Regedit at the Run Command and go to
HKCurrentUser-Software-Microsoft-Windows-CurrentVersion-Run and see if
there is anything in there but the (Default). Make sure you look at
the file before deleting it as it may have something to do with Norton
or something else.
Also check
HKLocalMachine-Software-Microsoft-Windows-CurrentVersion-Run Be
careful about deleting anything here, but look at what is running on
startup.

Also look in the STARTUP folder inside the Program Files on the start
menu and see if there is anything there.

Cheers,

Lara

-- 
http://www.WindowsForumz.com/  This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.WindowsForumz.com/General-Discussion-CMD.EXE-edited-ftopict243106.html
Visit Topic URL to contact author (reg. req'd).  Report abuse: http://www.WindowsForumz.com/eform.php?p=740445


Relevant Pages

  • Re: Logon Credentials set via logon script?
    ... If a script file is placed in the All Users' Startup folder it should always ... execute when a user logs on. ... * PLEASE post all messages and replies in the newsgroups ...
    (microsoft.public.windowsxp.network_web)
  • Re: Re: Want to run a batch file invisibly
    ... It is a logon script so it runs everytime a user logs in. ... Visit Topic URL to contact author (reg. ...
    (microsoft.public.win2000.group_policy)
  • Re: Weird script issues
    ... I also have the script as a logon script, so each time a user logs in it will ... I even get the error when a user logs in, so .UserName should not be ... It would fail at the line aUserName = Split ...
    (microsoft.public.scripting.vbscript)
  • Re: whats the best authentication library?
    ... > people must subscribe and become members, so they can log in and ... > Also when the user logs in, I want to have his datas loaded from ... > base and accessible in some php array until he leaves. ... Visit Topic URL to contact author (reg. ...
    (comp.lang.php)
  • Re: Ideas for second account and logging the actions? - Interestin
    ... user logs on, it can only write the event in event viewer. ... I have prepaired a small script that uses CDO ... admin for the boss would be OK? ... He does not want to use this account often. ...
    (microsoft.public.windows.server.active_directory)

Quantcast