打开 dfs 共享出来的bat文件时,会出现如截图的安全警告

%3CLINGO-SUB%20id%3D%22lingo-sub-2723838%22%20slang%3D%22zh-CN%22%3EWhen%20you%20open%20a%20bat%20file%20that%20dfs%20share%2C%20a%20security%20warning%20such%20as%20a%20screenshot%20appears%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2723838%22%20slang%3D%22zh-CN%22%3E%3CP%3EWhen%20you%20open%20a%20bat%20file%20shared%20by%20dfs%2C%20a%20security%20warning%20such%20as%20a%20screenshot%20appears.%3C%2FP%3E%3CP%3EFor%20example%2C%20open%20it%20this%20way%3A%20the%20.bat%20of%20the%20.domain%2Fdfs.mvp%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20the%20same%20file%2C%20if%20shared%20directly%20through%20the%20file%20server%20and%20opened%2C%20will%20not%20jump%20out%20of%20the%20file's%20security%20warning.%3C%2FP%3E%3CP%3EFor%20example%2C%20open%20it%20this%20way%3A%20the%20.bat%20of%20the%20server01%5Csharefolder%2Fmvp%3C%2FP%3E%3CP%3EWhy%20is%20that%3F%20Is%20there%20a%20way%20to%20adjust%20to%20not%20have%20a%20security%20warning%3F%20It%20should%20not%20be%20a%20client%20issue.%3C%2FP%3E%3CP%3EThe%20screenshot%20of%20the%20warning%20is%20as%20follows%3A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E5%AE%89%E5%85%A8%E8%AD%A6%E5%91%8A.jpg%22%20style%3D%22width%3A%20468px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308267i5F0B7E9DA094FAF4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22%E5%AE%89%E5%85%A8%E8%AD%A6%E5%91%8A.jpg%22%20alt%3D%22The%20safety%20warning%20.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2723838%22%20slang%3D%22zh-CN%22%3E%3CLINGO-LABEL%3EDFS%20Services%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2726141%22%20slang%3D%22en-US%22%3ERe%3A%20%E6%89%93%E5%BC%80%20dfs%20%E5%85%B1%E4%BA%AB%E5%87%BA%E6%9D%A5%E7%9A%84bat%E6%96%87%E4%BB%B6%E6%97%B6%EF%BC%8C%E4%BC%9A%E5%87%BA%E7%8E%B0%E5%A6%82%E6%88%AA%E5%9B%BE%E7%9A%84%E5%AE%89%E5%85%A8%E8%AD%A6%E5%91%8A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2726141%22%20slang%3D%22en-US%22%3E%3CP%3EI%20certainly%20cannot%20read%20any%20of%20that%20but%20try%20adding%20the%20namespace%20to%20trusted%20sites.%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3EUser%20Configuration%5CPolicies%5CAdministrative%20Templates%5CWindows%20Components%5CInternet%20Explorer%5CInternet%20Control%20Panel%5CSecurity%20Page%5CSite%20to%20Zone%20Assignment%20List%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2726740%22%20slang%3D%22zh-CN%22%3ERe%3A%20When%20you%20open%20a%20bat%20file%20shared%20by%20dfs%2C%20a%20security%20warning%20such%20as%20a%20screenshot%20appears%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2726740%22%20slang%3D%22zh-CN%22%3E%3CP%3EHELLO%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F51719%22%20target%3D%22_blank%22%3E%40Dave%20Patrick%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhere%20it%20is%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CSTRONG%3EUser%20Configuration%5CPolicies%5CAdministrative%20Templates%5CWindows%20Components%5CInternet%20Explorer%5CInternet%20Control%20Panel%5CSecurity%20Page%5CSite%20to%20Zone%20Assignment%20List%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eunder%20IE%20settings%20or%20GPEDIT%3F%20or%20regedit%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2726751%22%20slang%3D%22en-US%22%3ERe%3A%20%E6%89%93%E5%BC%80%20dfs%20%E5%85%B1%E4%BA%AB%E5%87%BA%E6%9D%A5%E7%9A%84bat%E6%96%87%E4%BB%B6%E6%97%B6%EF%BC%8C%E4%BC%9A%E5%87%BA%E7%8E%B0%E5%A6%82%E6%88%AA%E5%9B%BE%E7%9A%84%E5%AE%89%E5%85%A8%E8%AD%A6%E5%91%8A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2726751%22%20slang%3D%22en-US%22%3E%3CP%3Eeither%20domain%20policy%20or%20locally%20gpedit.msc%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

打开 由dfs 共享出来的bat文件时,会出现如截图的安全警告。

例如这样打开:\\domain\dfs\mvp.bat 

 

但同样的文件,如果直接通过文件服务器共享出来后打开,就不会跳出该文件的安全警告。

例如这样打开:\\server01\sharefolder\mvp.bat

这是为什么呢?有办法调整为不出现安全警告吗?应该不是客户端的问题。

警告截图如下:安全警告.jpg

11 Replies

I certainly cannot read any of that but try adding the namespace to trusted sites.

User Configuration\Policies\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Security Page\Site to Zone Assignment List

 

 

HELLO @Dave Patrick 

 

where it is? 

 

User Configuration\Policies\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Security Page\Site to Zone Assignment List

 

under IE settings or GPEDIT? or regedit?

either domain policy or locally gpedit.msc

 

 

@Dave Patrick

dfscn.jpg 

 

the setting as above? 

but it's not working.

i translate to en about my issue:

When opening the BAT file shared by DFS, a security warning is displayed, as shown in the screenshot.
For example: \\domain\ DFS \mvp.bat

However, if the same file is directly shared through the file server and opened, the security warning of the file will not be displayed.
For example: \\server01\ shareFolder \ Mvp.bat

Why is that? Is there a way to adjust so that there are no security warnings? It should not be a client problem.

Sorry, no clue. Can't read that

Sounds like the location needs to be added to trusted location or trusted sites.

 

 

 

already set the trust site.

HankLiujh_0-1630980687312.png

 

 

Sounds good. Could be that I still don't understand the problem. The screenshots are of no use to me since I cannot read them.

 

 

 

 

@Dave Patrick 

 

any chinese reader can assist us :cry:

it's still open。。。 。。。