Created
December 3, 2016 07:27
-
-
Save yuta-imai/a09bf19c7ca68993c3cf17af218439ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (& Get-WMIObject win32_potsmodem){ C:\Windows\System32\rasphone.exe -d USBDEVICE } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can run this script when LogON with Windows TaskScheduler.
Note You have to allow your system to execute script by issuing the command:
Set-ExecutionPolicy RemoteSigned
prior to do this.