PSKill не работает из VbScript

Могла быть проблема MTU о клиенте PPPoE.

Страница справочника pppoe предлагает использовать-m опцию зафиксировать размер сегмента TCP к 1412:

-m MSS

Causes pppoe to clamp the TCP maximum segment size at the specified value. Because of PPPoE overhead,
the maximum segment size for PPPoE is smaller than for normal Ethernet encapsulation. This could cause
problems for machines on a LAN behind a gateway using PPPoE. If you have a LAN behind a gateway, and the
gateway connects to the Internet using PPPoE, you are strongly recommended to use a -m 1412 option. This
avoids having to set the MTU on all the hosts on the LAN.
1
задан 2 June 2012 в 01:49
2 ответа

Попробуйте поменять местами строку. Это заставит его показывать процесс в собственном окне и ждать его завершения.

WshShell.Run "PSKill.exe " & W3WP.ProcessId, 1, true

Конечно, если это пойдет слишком быстро, вам, возможно, повезет, и вы подключите его к файлу журнала.

WshShell.Run "PSKill.exe " & W3WP.ProcessId & ">> log.txt"

Похоже, он должен работать с мне. VBScript работает под учетной записью пользователя с разрешениями на завершение задачи?

0
ответ дан 4 December 2019 в 01:05

Try running it in the script with '-accepteula' as a command line argument. These tools pop up the EULA on their first run, and if there's nobody to click accept they tend to just hang.

1
ответ дан 4 December 2019 в 01:05

Теги

Похожие вопросы