
内蔵 3G モデム (HUAWEI Mobile Connect) を搭載したノートパソコンを持っていますが、システムにはダイヤルアップ モデムとして表示されます。インターネットに接続するには、チャーム バーを開き、設定、ネットワーク、モデム、および「接続」をクリックして、デスクトップにダイヤルアップ ダイアログを開く必要があります。何らかの理由で接続が中断された場合は、これらの手順を繰り返す必要があります。
システムの起動時にこのモデムに自動的に (できればバックグラウンドで静かに) 接続し、接続が中断された場合に自動的に復元するように Windows 8 を構成する方法はありますか?
モバイル デバイス向けに開発されたオペレーティング システムなので、常時接続の 3G 接続を何らかの方法で管理できると期待しています。
答え1
私が認識したところによると、これを行うには 2 つの方法があります。
または を指定するには、
Connections
タブを使用できます。Internet Options
Dial whenever a network connection is not present
Always dial default connection
バッチファイルを使用して、
rasdial
接続をダイヤルする場合は、ダイヤルを自動化できます。アクセスを容易にするために、そのバッチ ファイルを実行するキーボード ショートカットを設定することもできます。
答え2
エアカードまたはその他の UMTS ドングルに、Windows 7 モバイル ブロードバンド インターフェイスを実装するドライバーがあるかどうかを確認してください。そのようなドライバーが利用できる場合、Windows 7 (および Windows 8) は、追加の構成なしで自動的に接続できます。さらに、Windows は、外部アプリケーションの助けを借りずに、SMS や適切な信号強度インジケーターなどの高度な機能を処理できます。これは、パケット交換接続 (GPRS/HSPA) にのみ適用されます。回線交換接続 (CSD/HSCSD) を使用している場合は、スタートアップ項目rasdial
フォルダーに配置された自動化バッチ スクリプトと一緒に使用する必要があります。
使用している接続の種類が不明な場合は、現在の設定でダイヤルしている電話番号を確認してください。 または*99#
その変形 (*99***1#
など) の場合、これはパケット交換接続です。 従来のダイヤルアップ アクセス番号 ( など) をダイヤルしている場合は+18133860056
、回線交換データ接続です。
答え3
はい、動作しますが、Windowsタスクスケジューラによる別の回避策があります
http://www.dariancabot.com/2010/11/15/windows-startup で自動的に VPN 接続する/
タスク スケジューラでは、数時間または数分後に繰り返し実行するように設定したり、動作を変更したりできます (ラップトップでは USB 3G モデムが電力節約のために切断される傾向があるため、これが必要になる場合があります)
もう一つの詳細な方法は、
How to setup a Scheduled Task to Trigger on a VPN Disconnect
1. Click Windows8 Start and type Schedule Task (open it under Settings)
2. Click Create Task
3. Apply the following settings in the specified Tabs (italics describes each setting)
General Tab
Name: VPN Redial
For descriptive use, you can use any name you want like My Company VPN Redial....whatever.....
Select: Run whether user is logged on or not
Provided you have a password associated to your login account, this option will prevent the dos window from opening everytime the job runs. If you don't have a password, leave it and see the notes below these steps.
Triggers Tab
Click New button
To create a new trigger we will use to activate the job when the VPN connect disconnects
Begin the task: On an Event
The job will be triggered by an Application event log entry
Select: Custom
Custom gives us the flexibility of creating a more detailed query
Click New Event Filter... button
Here is where we build the query for the trigger
Click the XML tab
This tab allows us to write our own query (even more flexible)
Check Edit query manually
To start a manual edit
Copy the following query
This query will trigger on an Application Event for RasClient with an EventID of 20226 and error codes 829 (Remote Disconnect), 629 (Client Disconnect). Copy from and including <QueryList> to </QueryList>
<QueryList>
<Query Id="0" Path="Application">
<Select Path="Application">*[System[Provider[@Name='RasClient'] and (EventID=20226)]] and *[EventData[Data[4]='829' or '629']]</Select>
</Query>
</QueryList>
Click OK
Ensure Enabled is checked
Check it if it's not checked to make sure the job will be enabled
Click Ok
Actions Tab
Click New
To create an action to be performed when the job is triggered
Action: Start a program
Selection this option will allow us to start rasdial to reestablish the VPN connection
Program/script: rasdial
Should already be in path so just enter rasdial command
Add arguments (optional): "VPN Name" username password
VPN name is the name you defined for your dialup connection. Example, when you click the network icon in the system tray, the name that's listed for your VPN, make sure you enter it in exactly as displayed. Following the connect would be your username and password. Example, "MY VPN Connection" username password
Click Ok
Conditions Tab (not required unless you are using a laptop)
Uncheck: Stop if the computer switches to battery power
Settings TAB
Enable: If the task fails, restart every: 1 minute
In case there is a temporary issue re-establishing the VPN connection. You can specify whatever value you want instead of 1 minute
Attempt to restart up to: 7 times
Again in case there is a temporary issue re-establishing the VPN connection. You can specify whatever value you want instead of 7 times
Click Ok
Notes
1. Haven't really tested this much but I had configured it last night, woke up this morning to find the Event log showing 4 disconnects, and the job redialed all 4 times, VPN connection was still active.
2. In the General Tab we enabled "Run whether user is logged on or not. This is a non issue since there won't be a VPN connection when you're not logged in. What this option does since we are running a dos (rasdial) command, it prevent a dos window from opening every time the job runs so you won't be distracted if you're in the middle of something. This option only works if you have a password (which you should) associated with your account. If you don't and just allow your computer to boot to desktop, the option won't work. What I've done for people in these situations is created a little VBScript wrapper to launch the dos command to avoid the dos prompt. Not really an issue unless you're anal about it like me, you could simply deal with the Dos window opening up.
3. Again the query checks the event log for a new Entry for RasClient with an event id of 20226 containing error codes 820 or 620. you can add additional error codes by repeating the pattern. Example to also trigger on 222 and 333 you would modify the relevant part of the line as such *[EventData[Data[4]='829' or '629' or '222' or '333']]</Select>
4. I'm checking error codes because I don't want the job to be reconnected if I purposely disconnect the VPN which generates a 631 code under Event ID 20226.
Windows ログオンで同様のトリガー rasdial
In triggers>select>new> in "Begin the task"> select At log on > make sure enabled is checked and press ok Done that's it
答え4
クリックこれリンクをクリックして、ReConnect アプリケーションをダウンロードしてください。私の場合はうまくいきました。