Jump to content
Sign in to follow this  
Followers 0

Changing Wifi sources

11 posts in this topic

Posted

I know this sounds funny, but I was wondering if there was software that could change from a lan source to wifi at a set time.

Share this post


Link to post
Share on other sites

Posted

[quote name='Systematic' timestamp='1362162798' post='595552118']
I know this sounds funny, but I was wondering if there was software that could change from a lan source to wifi at a set time.
[/quote]

You can probably write a powershell script that will run on task scheduler, and the commands would (1) disable the LAN adapter, and (2) enabled the Wifi Adapter.

Share this post


Link to post
Share on other sites

Posted

I do not know how to make a Powershell script ><

Share this post


Link to post
Share on other sites

Posted

some quick googleing should do it, I've just started using PS and its not that hard to pick up the basics, just write it in notepad and save as a .ps1 file (think that's the right extension).

Share this post


Link to post
Share on other sites

Posted

[quote name='philcruicks' timestamp='1362163973' post='595552176']
some quick googleing should do it, I've just started using PS and its not that hard to pick up the basics, just write it in notepad and save as a .ps1 file (think that's the right extension).
[/quote]

It is.

Share this post


Link to post
Share on other sites

Posted

Well, could I adapt this to work for me?

http://saulosilva.com/2012/03/how-to-disable-enable-a-network-adapter-on-windows-with-powershell/

Have like four scripts to enable and disable each network adapter at a time?

Share this post


Link to post
Share on other sites

Posted

Does anyone else have any suggestions? I can't get the powershell scripts to work.

Share this post


Link to post
Share on other sites

Posted

You running windows 7 or 8 cause that's powershell 2 script, PS3 makes it a bit easier but is only in win 8/svr2012 (again someone correct me if I'm wrong) and from the comments in the post looks like if your on XP it's not going to work at all.

Take a look at http://technet.microsoft.com/en-us/library/jj134956.aspx that's all the cmdlets for the network adapter.

This might also help http://blogs.technet.com/b/heyscriptingguy/archive/2012/09/05/use-powershell-3-0-to-stop-network-adapters-on-windows-8.aspx
looks like you can also use the connection name I.e. Ethernet or Ethernet 2 rather than the name of the device itself TP link wireless adapter or whatever.

Hopefully those will help a bit.
1 person likes this

Share this post


Link to post
Share on other sites

Posted

I got it working!!! Thank you philcruicks!

Share this post


Link to post
Share on other sites

Posted

Well it seems it works in the editor but not in powershell. Gives a red lettered error and quits.

Share this post


Link to post
Share on other sites

Posted

Alright, found the issue! Thank you all that helped!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.