home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.internet.wireless      Fun with wireless Internet access      55,960 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 54,301 of 55,960   
   lifewoutmilk to Bram van den Heuvel   
   Re: Switching between Internet connectio   
   11 Jul 17 18:10:19   
   
   XPost: alt.comp.os.windows-10, sci.electronics.repair   
   From: lifewoutmilk@distraction.x10host.com   
      
   Bram van den Heuvel wrote on 7/11/2017 11:45 AM:   
   > Given , lifewoutmilk   
   >  wrote:   
   >   
   >>    
   >>   
   >> You could change it with a PowerShell, create two scripts, one to prefer   
   >> wired, one to prefer wireless.   
   >>   
   >> The PowerShell command to set the metric is:   
   >>   
   >>       Set-NetIPInterface -InterfaceIndex INDEX -InterfaceMetric VALUE   
   >>   
   >> To get the INDEX for the adapter, run 'Get-NetAdapter' and look at the   
   >> ifIndex column.   
   >   
   > I do not understand what a "power shell" is.   
   > I do understand what a "command line" is, so the "netsh" commands working   
   > at a command line make sense to me.   
   >   
   > But how do I get to a "power shell command line"?   
   > Googling, I found out I can do this:   
   >   Start -> Run -> powershell   
   > But is that an "admin" power shell?   
   >   
   > I really don't understand at all why a second command line even exists.   
   > Can you give me a sentence or two on why I would use powershell over the   
   > command line?   
   >   
      
   It's more consistent than the command line and related utilities in   
   Windows for one. Also, instead of manipulating text output, PowerShell   
   handles objects. So for instance, a pipe command:   
      
   Get-NetAdapter | where {$_.Name -eq 'Ethernet'}   
      
   Unlike cmd.exe the output from Get-NetAdapter is a list of objects, not   
   just a bunch of text output. The default output from the above command   
   would be a table, however, because the output is an object, you can do   
   something like:   
      
   Get-NetAdapter | where {$_.Name -eq 'Ethernet'} | fl   
      
   Which gives the same output but in a list format instead. (The 'fl' is   
   an alias for Format-List.)   
      
   Some of Microsoft's own GUI tools are actually running PowerShell behind   
   the scenes (Active Directory Administration Tool for example). Well   
   worth learning in my opinion.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca