Solved

File download message box when I run the logon script

Posted on 2003-10-24
13
158 Views
Last Modified: 2010-04-13
Hi,
I have a batch file runing as a logon script, and the file is in \\Mainserver\Netlogon
The script connect a network printer to workstation according to room where the user is.
When a user logon, there is a file download message box saying that the file can hamr your computer .... OPEN or CANCEL
What can I do to avoid this message box if possible by using group policy.
0
Comment
Question by:ilungachris
  • 5
  • 3
  • 2
  • +1
13 Comments
 
LVL 11

Expert Comment

by:adonis1976
ID: 9615366
run the batch scriot in a silent mode. i guess you need to use some switch for it. if i'm not wrong, it is something like,

something.bat -i

where somethin.bat is ur batch file and -i will disable the interactivity.

so it will be : somethin.bat(space)-i
0
 

Author Comment

by:ilungachris
ID: 9615748
it doesn't work. I think i have that message box because of the fact that the file i WANT to run in not a local so the message comes before the program runs and i can only either run it by clicking on open or cancel
0
 
LVL 2

Expert Comment

by:sqwasi
ID: 9615985
Could you post your script you are using?
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 11

Expert Comment

by:adonis1976
ID: 9616004
0
 

Author Comment

by:ilungachris
ID: 9616127
The fact is any file located in the Netlogon folder I try to run comes with a warning message telling me .. some files can harm your computer. if the file information below looks sucpiciousm or you do not fully trust the source do not open or save the file.

I do not want to see this message.

here is the batch file :

@echo off

IF %COMPUTERNAME%.==LIBRARY1. GOTO library
IF %COMPUTERNAME%.==LIBRARY2. GOTO library
IF %COMPUTERNAME%.==LIBRARY3. GOTO library
IF %COMPUTERNAME%.==LIBRARY4. GOTO library
IF %COMPUTERNAME%.==LIBRARY5. GOTO library
IF %COMPUTERNAME%.==LIBRARY6. GOTO library
IF %COMPUTERNAME%.==LIBRARY7. GOTO library
IF %COMPUTERNAME%.==LIBRARY8. GOTO library
IF %COMPUTERNAME%.==LIBRARY9. GOTO library
IF %COMPUTERNAME%.==LIBRARY10. GOTO library
IF %COMPUTERNAME%.==LIBRARY11. GOTO library
IF %COMPUTERNAME%.==LIBRARY12. GOTO library
IF %COMPUTERNAME%.==HSLAB1. GOTO hslab
IF %COMPUTERNAME%.==HSLAB2. GOTO hslab
IF %COMPUTERNAME%.==HSLAB3. GOTO hslab
IF %COMPUTERNAME%.==HSLAB4. GOTO hslab
IF %COMPUTERNAME%.==HSLAB5. GOTO hslab
IF %COMPUTERNAME%.==HSLAB6. GOTO hslab
IF %COMPUTERNAME%.==HSLAB7. GOTO hslab
IF %COMPUTERNAME%.==HSLAB8. GOTO hslab
IF %COMPUTERNAME%.==HSLAB9. GOTO hslab
IF %COMPUTERNAME%.==HSLAB10. GOTO hslab
IF %COMPUTERNAME%.==HSLAB11. GOTO hslab
IF %COMPUTERNAME%.==HSLAB12. GOTO hslab
IF %COMPUTERNAME%.==HSLAB13. GOTO hslab
IF %COMPUTERNAME%.==HSLAB14. GOTO hslab
IF %COMPUTERNAME%.==HSLAB15. GOTO hslab
IF %COMPUTERNAME%.==HSLAB16. GOTO hslab
IF %COMPUTERNAME%.==HSLAB17. GOTO hslab
IF %COMPUTERNAME%.==LABSERVER. GOTO hslab
GOTO out

:library
rundll32 printui.dll,PrintUIEntry /dn  /n \\LIBRARY11\HPDeskje /q
rundll32 printui.dll,PrintUIEntry /y /in  /n \\LIBRARY11\HPDeskje /q
GOTO out



:hslab
rundll32 printui.dll,PrintUIEntry /dn  /n \\hslab2\hp5550 /q
rundll32 printui.dll,PrintUIEntry /y /in  /n\\hslab2\hp5550 /q
GOTO out
0
 
LVL 11

Expert Comment

by:adonis1976
ID: 9616139
did that link help you at all?
0
 

Author Comment

by:ilungachris
ID: 9616155
Thanks for hte link.
I read the it but in that case  the batch file is saved on the systemroot i am dealing with a network location that's why I am having this message.
0
 
LVL 2

Expert Comment

by:sqwasi
ID: 9616365
Can you give us a little more information?  Are these all windows 2000 workstations?  The message that says the file is harmful, can you describe the error more?  Is the error coming from Windows, virus scanner, etc?  You might also try running it from the command prompt and see if you get the same error.  As well as logging in as an administrator and running it from the command prompt.  Also, you could try running rundll32 without the printui.dll or load another dll to verify if it is the rundll32 causing the problem or if it is the printui.dll causing the problem.
0
 

Author Comment

by:ilungachris
ID: 9623158
The server is a DC win 2003 with AD
Workstations are xp pro
The file works fine in command prompt
But every time I try to run it I have that confirmation message before it runs. The message is not from an antivirus it's a windows message.
I think i can find something in the folder options. i am still looking...
But I would like to do it with GP
thanks
0
 

Author Comment

by:ilungachris
ID: 10042398
I am doing the same thing with a vb script and I don't have the problem anymore.
Thanks any way
This question will be closed
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 10088791
PAQed, with points refunded (500)

PashaMod
Community Support Moderator
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cursor typing problems 5 50
How to NTBackup if SQL Server running? 6 913
P2V Windows Server 2000 - Network Issue 14 57
Get process CPU use Win2000 server in visual basic 12 159
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

685 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