Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

File download message box when I run the logon script

Posted on 2003-10-24
13
Medium Priority
?
162 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
[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
  • 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
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

670 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