Solved

Where is a batch program being triggered from at logon

Posted on 2016-10-18
9
38 Views
Last Modified: 2016-10-25
Hello:

I am in the process of removing printers from our older Print Server and adding printers from our new Print Server.  I have a script that executes the removeprinters.bat file and then another script that adds the printers from the addprinters.bat file, that are triggered at logon from our Group Policy.  The add/remove printer process is working just fine.

The problem is that I have 1 user that logs on to a laptop and he always wanted to have 1 specific printer to be his default printer.  About 1.5 years ago, I created a batch program that specifies that network printer to be his default as he logs on to that specific laptop.  I put the batch file in the user' C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup - folder.  Since I am now removing the older printers and adding the new printer I needed to change this locally stored batch program to reflect the new printer name (new printer server).

The problem is that I cannot find that batch program right now to edit/remove it.  But, that program is still being triggered at logon.  
If I navigate to the C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup - folder that batch program is not in there.  Nor is that batch program in the C:\Windows\Start Menu\Programs\Startup - folder of that laptop.  But the funny thing is that the batch program still is triggered because the user and I see it executing at logon.  The batch program brings up a DOS windows and attempts to designate the printer on the older printer server as the default printer.  Since the older printer is not longer installed on that laptop an error message comes up instead.  The user simply clicks the 'OK' button and proceeds with his day.

How can I find the batch file that is being triggered on the laptop at logon?  perhaps I should do a search on the computer for that file name?  i do not see any reference listed in the registry (Computer\HKey Local Machine\Software\Microsoft\windows\current version\Run .

I will have a chance to look at this laptop tomorrow.
0
Comment
Question by:Pkafkas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 22

Assisted Solution

by:Joseph Moody
Joseph Moody earned 167 total points
ID: 41848610
Have you checked the logon script attribute in the users AD properties?
0
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 167 total points
ID: 41848614
Examine the addprinters.bat. Maybe it's called from there.  Or the users AD profile has a batch that runs?
0
 
LVL 62

Assisted Solution

by:☠ MASQ ☠
☠ MASQ ☠ earned 166 total points
ID: 41848629
Addprinters.bat is a good idea
you might also find it with Autoruns
https://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
0
Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

 
LVL 1

Author Comment

by:Pkafkas
ID: 41848722
To answer teh above questions:

The local batch program which sets a default printer, is not run from the login script.

The local batch program which sets a default printer, is not run from the addprinters batch file (group policy).
0
 
LVL 1

Author Comment

by:Pkafkas
ID: 41850271
right away when this user logs on, the following batch program executes.  And then then error comes up.

logon
I will see if this error comes up for other users as well.  I am conducting searches for the batch file.  It may be important to mention that local group policy does not trigger anything at start up.
0
 
LVL 1

Accepted Solution

by:
Pkafkas earned 0 total points
ID: 41850291
I found it from a search.

screen2
0
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 167 total points
ID: 41850304
Glad you solved it, Pkafkas
0
 
LVL 1

Author Comment

by:Pkafkas
ID: 41852425
I figured out the actual problem on my own, I simoply was looking in the incorrect start up folder; however, being able to discuss the problem helped me bring some much needed clarity to figure it out.
0
 
LVL 1

Author Closing Comment

by:Pkafkas
ID: 41858258
I figured it out myself.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question