Solved

File download message box when I run the logon script

Posted on 2003-10-24
13
156 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
 
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
[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loss of RDP via youngzsoft.com/cn 4 225
Print Server: Problem from NT to windows 2008 server environment 3 632
VSS on host & VM 10 400
schedule script execution in windows 2000 3 125
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…
Note: This is the third blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   We’ve been talki…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now