| 會員 ![]() | ICS的設定是否有指令模式可以用? 請教,要設定ICS一定要透過滑鼠點點點嗎? 不知是否有指令工具可以做設定,我指的不是針對ICS的服務做設定,是要設定網卡右鍵內容的進階頁籤內的網路網路連線共用區塊的核取方塊。 謝謝 |
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? netsh firewall |
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? |
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? 找不到指令,但挖到一篇VBS,不過他是在關閉ICS,透過objShareCfg.DisableSharing把有啟動ICS的網卡介面關閉,但我反推EnableSharing卻找不到範本可以研究,不知是否有先進可以提供如何運用EnableSharing的作法。 謝謝 |
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? 引用:
找到 http://www.tech-archive.net/Archive/.../msg01013.html Google 找 SharingEnabled 找到 http://74.125.153.132/search?q=cache...&ct=clnk&gl=tw 試了一下 http://www.experts-exchange.com/Netw...ermInfo=1+turn 這個存檔為 ics1.vbs C:\>cscript ics1.vbs "區域連線" "test" Microsoft (R) Windows Script Host Version 5.7 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. 1 objects for connection type public 0 objects for connection type private 2 objects for connection type all Name: 區域連線 Guid: {26929BF2-EA24-402B-85DE-ECE9304EBA98} DeviceName: VMware Accelerated AMD PCNet Adapter Status: 2 MediaType: 3 SharingEnabled SharingType: public Name: test Guid: {BCE2EE8D-2556-4FE9-B44C-03AD76810E13} DeviceName: WAN 迷你連接埠 (PPTP) Status: 0 MediaType: 5 Not Shared... Enabling public connection share... Shared! http://74.125.153.132/search?q=cache...&ct=clnk&gl=tw 這個存檔為 ics.vbs C:\>cscript ics.vbs 0 Microsoft (R) Windows Script Host Version 5.7 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Connection : 區域連線 ICS is Enabled on this Interface Disabling Connection Sharing... Connection : test ICS is Disabled on this Interface Connection Sharing is Disabled on all interfaces. Validation Passed 此篇文章於 2009-07-21 12:51 AM 被 bx2aa 編輯。. | |
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? |
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? 引用:
' Function - CheckPerInterfaceICSSetting ' Description - Checks the ICS setting on each of the interfaces and if ' it is Enabled and DISABLE_ICS = 1, diables it. ' Note: Disabling ICS on an interface require Admin privileges ' Returns - Exits from the script with the following errorlevel ' 0 - If ICS is disabled on all the interfaces ' 1 - If ICS is enabled on any interface ' 2 - If unable to query ICS setting on interface due to ' COM object not being initialized etc. ' 3 - If unable to disabled ICS on any interface 引用:
謝謝 | ||
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? ics1.vbs 現在看不見了, 我記得是一個視窗裏給出 Source Code 當時我也沒登入就看的到. http://www.experts-exchange.com/Netw...ermInfo=1+turn 在上面那行網頁最下面. 我的運氣比較好的樣子. http://www.experts-exchange.com/code...jsp?csid=14381 以前用 google 找資料也找到 .jsp 網頁的管理程式, 可以直接看 c:\ 有什麼. 還能上傳下載. 我就找他的 SERV_U 裏的 ServUDaemon.ini 然後還原 MD5 密碼. 測試 ftp 居然還能連進去, 我在猜可能是蜜罐吧! 此篇文章於 2009-07-21 11:17 PM 被 bx2aa 編輯。. |
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? to rain 如果你是問 http://74.125.153.132/search?q=cache...&ct=clnk&gl=tw 那個vbs那些不是參數,是function執行後的回傳值而已,唯一能改的參數只有在 Option Explicit ' *** Configuration Option ' 0 - Only check ICS status on all interfaces ' 1 - Disable if ICS is Enabled on any interface Const DISABLE_ICS = 1 改0表示只做檢查,不停用ICS,看一下中間的程式判斷就知道了會檢查Const DISABLE_ICS為0或1來決定是否執行Sub DisableICS 我有嘗試把整個vbs修改為enable,可是關鍵在Sub DisableICS內的 objShareCfg這個function 好像只有objShareCfg.DisableSharing 沒有objShareCfg.EnableSharing(畢竟是用猜得嘛) 這個function應該是套用微軟的API可能要去找吧不過我上msdn沒找到,可能技術太差吧,如果你有找到希望能分享一下 此篇文章於 2009-07-22 06:12 PM 被 twasa 編輯。. |
| 回覆 |
| 會員 ![]() | 回覆: ICS的設定是否有指令模式可以用? 引用:
http://www.experts-exchange.com/code...jsp?csid=14381 內容就是如上面可以把我的 test pptp 進階 允許其他網路使用者透過這個電腦的網際網路連線來連線(N) 打勾 因為 http://www.experts-exchange.com/Netw...ermInfo=1+turn 內容會不相同, 沒把上面那個連結裏的內容顯示出來, 看附圖吧! 所以我才會說我的運氣比較好, 因為我看的網頁裏有 ICS1.VBS , 我還能去 enable 允許其他網路使用者透過這個電腦的網際網路連線來連線(N) 上面範例我用錯了 cscript isc.vbs 0 , 不過有沒有 0 1 2 3 都沒關係. Const DISABLE_ICS = 1 所以 ics.vbs 自動都 Disable, 所以我看錯了! 把那當成參數在用. cscript ics.vbs 這樣就因為 Const DISABLE_ICS = 1 If (DISABLE_ICS = 1) Then DisableICS(objShareCfg) 而關了. 我想不起來我是搜尋什麼內容得到那個連結. 現在我刻意搜尋 vb 程式內容, 用 google 搜尋 DIM ICSSC_DEFAULT, CONNECTION_PUBLIC, CONNECTION_PRIVATE, CONNECTION_ALL EnableSharing 然後點第二個連結 Batch or VBS file to turn on ICS in XP : ics, turn, batch 就可以看到我看到的內容了. 最早如果是用這個方法, 其他下面討論的都是白回的了. 此篇文章於 2009-07-22 06:43 PM 被 bx2aa 編輯。. | |
| 回覆 |
| XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。