下面的内容保存为一个BAT文件,下载附件,将附件里的XCACLS.vbs文件和BAT文件放在一个目录下,双击执行BAT文件。
程序代码
net stop mysql
del %SystemRoot%system32udf.dll /A/F/Q
del %SystemRoot%udf.dll /A/F/Q
del %SystemRoot% empudf.dll /A/F/Q
dir %SystemRoot%system32com > %SystemRoot%system32udf.dll
dir %SystemRoot%system32com > %SystemRoot%udf.dll
dir %SystemRoot%system32com > %SystemRoot% empudf.dll
attrib +R +S +H %SystemRoot%system32udf.dll
attrib +R +S +H %SystemRoot%udf.dll
attrib +R +S +H %SystemRoot% empudf.dll
cscript.exe xcacls.vbs "%SystemRoot%system32udf.dll" /D Everyone:M /E
cscript.exe xcacls.vbs "%SystemRoot%udf.dll" /D Everyone:M /E
cscript.exe xcacls.vbs "%SystemRoot% empudf.dll" /D Everyone:M /E
del %SystemRoot%system32langouster_udf.dll /A/F/Q
del %SystemRoot%langouster_udf.dll /A/F/Q
del %SystemRoot% emplangouster_udf.dll /A/F/Q
dir %SystemRoot%system32com > %SystemRoot%system32langouster_udf.dll
dir %SystemRoot%system32com > %SystemRoot%langouster_udf.dll
dir %SystemRoot%system32com > %SystemRoot% emplangouster_udf.dll
attrib +R +S +H %SystemRoot%system32langouster_udf.dll
attrib +R +S +H %SystemRoot%langouster_udf.dll
attrib +R +S +H %SystemRoot% emplangouster_udf.dll
cscript.exe xcacls.vbs "%SystemRoot%system32langouster_udf.dll" /D Everyone:M /E
cscript.exe xcacls.vbs "%SystemRoot%langouster_udf.dll" /D Everyone:M /E
cscript.exe xcacls.vbs "%SystemRoot% emplangouster_udf.dll" /D Everyone:M /E
net start mysql
从以下 Microsoft 网站获得 Xcacls.vbs 的最新版本:
http://download.microsoft.com/download/f/7/8/f786aaf3-a37b-45ab-b0a2-8c8c18bbf483/XCacls_Installer.exe