If WScript.Arguments.length =0 Then Set objShell = CreateObject("Shell.Application") 'Pass a bogus argument with leading blank space, say [ uac] objShell.ShellExecute "wscript.exe", Chr(34) & _ WScript.ScriptFullName & Chr(34) & " uac", "", "runas", 1 Else Set objShell = WScript.CreateObject("WScript.Shell") ss= objShell.RegRead ("HKEY_CURRENT_USER\Software\Skype\Phone\SkypePath") ss= """" + ss + """" 'Add Block rule objShell.run "netsh advfirewall firewall add rule name=""SkypeBlockTCP"" dir=out action=block program=" + ss + " enable=yes protocol=any profile=any" 'Add Allow rule objShell.run "netsh advfirewall firewall add rule name=""SkypeAllowToProxy"" dir=out action=allow program=" + ss + " enable=yes remoteip=127.0.0.1" 'Turn On firewall objShell.run "Netsh advfirewall set allprofiles state on" msgbox "Skype Is Patched Successfully." End If