Giter Site home page Giter Site logo

buscseik / wifitools Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 7.0 1.93 MB

A set of tools that can simplify handle Wi-Fi profiles, connection. Also additional tools that closely related to networking and Wi-Fi.

Home Page: HomePage

License: MIT License

PowerShell 47.46% C# 52.54%

wifitools's People

Contributors

buscseik avatar kevinmarquette avatar sitiom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wifitools's Issues

Get-PublicIP does not work since the API it uses is no longer available: ipv4bot.whatismyipaddress.com

Calling 'Get-PublicIP' results in an exception (see error record below).

Module used 1.8.3
Platform used: Windows PowerShell 5.1 running on Win10 64-bit 21H2

Exception : System.Net.WebException: The remote name could not be resolved: 'ipv4bot.whatismyipaddress.com' at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request) at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord() TargetObject : System.Net.HttpWebRequest CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at Get-PublicIP, C:\Program Files\WindowsPowerShell\Modules\WifiTools\1.8.3\WifiTools.ps1: line 258 at <ScriptBlock>, <No file>: line 1 PipelineIterationInfo : {} PSMessageDetails :

See WhatIsMyIPAddress's explanation for the removal of their API service(s): https://whatismyipaddress.com/api

Error importing on Powershell 7

Running Install-Module wifitools -scope currentuser gives:

Install-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9685
Line |
9685 |  … talledPackages = PackageManagement\Install-Package @PSBoundParameters
     |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The following commands are already available on this system:'Join-String'. This module 'WifiTools' may
     | override the existing commands. If you still want to install this module 'WifiTools', use -AllowClobber
     | parameter.

I don't see any reference to Join-String in your script, so maybe this is a powershell bug, but I thought I'd start here.

Connect-WiFi(): It does not connect to all WiFi Profiles

Good evening

Thank you very much for your work and Tools!,
it's a real shame that M$ is not supporting you / is not offering this kind of Library.

Connect-WiFi(): It does not connect to all WiFi Profiles

If we use Get-WifiProfiles() to list all Profiles, then we get two Profiles listed.
But Connect-WiFi() connects only to one profile, on the other, it displays an Argument Validation Exception:

Connect-WiFi : Cannot validate argument on parameter 'ProfileName'. 
The argument "xxx" does not belong to the set "yyy" specified by the ValidateSet attribute. 
Supply an argument that is in the set and then try the command again.
+ Connect-WiFi -ProfileName xxx
+                           ~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Connect-WiFi], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Connect-WiFi

It would be very useful if Connect-WiFi() could be used to connect to all available WiFi profiles.

Thanks a lot, kind regards,
Thomas

Can't script connection to profile created with module

Running Win10 22H2, PowerShell 5.1.

2023-06-15_17:07:18 -06:00 [kurt.buff @ ITKURT2LT] C:\scripts

create-wifiprofile -wlanname MyWifi -passwd -wpa

Profile MyWifi is added on interface LaptopWi-Fi.

2023-06-15_17:07:43 -06:00 [kurt.buff @ ITKURT2LT] C:\scripts

connect-wifi -profilename MyWifi -interfacename laptopwi-fi

The network specified by profile "MyWifi" is not connectible.
Reason: Capability matching failed at profile (auth not found).

2023-06-15_17:08:01 -06:00 [kurt.buff @ ITKURT2LT] C:\scripts

connect-wifi -profilename MyWifi

There is no such wireless interface on the system.

2023-06-15_17:09:01 -06:00 [kurt.buff @ ITKURT2LT] C:\scripts
list-wifiprofiles

Profiles on interface LaptopWi-Fi:

Group policy profiles (read only)

<None>

User profiles

All User Profile     : MyWifi

I tried creating and connecting to profiles on both Meraki and Cambium WAPs, with the same result each time.

If I manually make the connection in the GUI, I can use connect-wifi to disconnect and reconnect with the profile.

I also tried disabling and enabling the interface, but that didn't change the outcome.

Am I missing a switch, or using any of the commands incorrectly?

Thanks,
Kurt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.