Batch file ' Run' waarschuwing weghalen - Hoe?

Pagina: 1
Acties:

  • Lau
  • Registratie: Oktober 2002
  • Niet online

Lau

There can be only one...

Topicstarter
Beste Tweakers,

Binnen de Windows omgeving op mijn werk moet ik regelmatig batch files laten runnen (bv voor het remote runnen van programmas). Echter wanneer ik een batch file remote op een computer start vraagt Windows eerst of ik de batch echt wil runnen of niet (Run of Cancel).

Plaatje:

Afbeeldingslocatie: http://www.xs4all.nl/~mawief/warning.JPG

Nu is mijn vraag aan jullie hoe ik ervoor kan zorgen dat .bat files automatisch uitgevoerd worden, zonder waarschuwing?

Microsoft Knowledge Database heb ik al geprobeerd maar dit leverde weinig op. Google ook geprobeerd, maar ik kan niets vinden dat antwoord geeft op mijn vraag.

Hopelijk dat iemand hier het wel weet :)

Alvast bedankt.

Lau


  • Clueless
  • Registratie: Juli 2001
  • Laatst online: 03-03 16:43
De allereerste hit op Google.nl:

http://windowsxp.mvps.org/networkfile.htm
Symptom
When you run a script, batch file or an executable directly from a network share, the Open file - Security warning dialog may appear as shown in the figure.

Afbeeldingslocatie: http://windowsxp.mvps.org/images/networkfileopen.JPG

To prevent this prompt from appearing, use one of the methods listed in this article.

Resolution

Method 1
Enable the Include all network paths (UNCs) setting in Internet Options applet.

Click Start, Run and type INETCPL.CPL
Select the Security tab, Local intranet
Click Sites button
Put a checkmark near the following option:
Include all network paths (UNCs)

Here is a description of the above setting:

Network paths (for example, \\local\file.txt) are typically used for local network content that should be included in the Local Intranet zone. If there are network paths that should not be in the Local Intranet zone, you should clear this option and use other options to designate files that are assigned to the Local Intranet zone.

Note: If you've installed Internet Explorer 7 Beta, you may need to first uncheck the option Automatically detect intranet network option in Local intranet zone settings.

Method 2
Add the IP or the FQDN of the network computer to your Local Intranet or Trusted sites zone in Internet Explorer.

Click Start, Run and type INETCPL.CPL
Select the Security tab, Trusted sites
Click Sites button
Add the IP address / FQDN of the remote computer to the list
(You can also add the network shares to the Local Intranet zone.)
Uncheck Require server verification (https:) for all sites in this zone and click Close
Click OK, OK and close the dialog

Afbeeldingslocatie: http://windowsxp.mvps.org/images/networkfileopen2.JPG

If the Sites button is grayed out, see this page for resolution.

I Don't Know, So Don't Shoot Me


  • Lau
  • Registratie: Oktober 2002
  • Niet online

Lau

There can be only one...

Topicstarter
Bedankt Clueless, maar ik had die zelf ook al gevonden en die oplossing werkt niet.

Ik heb momenteel het volgende gedaan :

gpedit.msc - > User Configuration\Administrative Templates\Windows Components\Attachment Manager\Inclusion List For Low File Types -> enable -> .bat toevoegen

Zo werkt het wel, maar dit is natuurlijk niet helemaal veilig. Tevens moet er nu op elke pc handmatig deze setting ingevoerd worden.

Is er een manier om dit via een domein policy te pushen? Afaik pushed die deze niet mee.

Alvast bedankt

Lau


  • alt-92
  • Registratie: Maart 2000
  • Niet online

alt-92

ye olde farte

Lau schreef op maandag 02 april 2007 @ 11:59:
Zo werkt het wel, maar dit is natuurlijk niet helemaal veilig. Tevens moet er nu op elke pc handmatig deze setting ingevoerd worden.

Is er een manier om dit via een domein policy te pushen? Afaik pushed die deze niet mee.
Eerst zeg je dat het niet veilig is, en dan wil je het ook nog over het hele domain uitrollen?

(als je het al wil doen, gpmc gebruiken trouwens).

ik heb een 864 GB floppydrive! - certified prutser - the social skills of a thermonuclear device