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.