First need know or name or ID wireless connection on
computer
Connect to remote computer
C:\>PsExec.exe \\10.20.30.40 cmd
PsExec v1.98 – Execute process
remotely
Copyright © 2001-2010 Mark
Russinovich
Sysinternals – www.sysinternals.com
Microsoft Windows [Version
6.3.9600]
© 2013 Microsoft Corporation. All
rights reserved.
C:\Windows\System32
And check it
NetConnectionID this is frendly name of network adapter what
you can see on "Network Connection"
C:\> wmic nic get name, index, NetConnectionID
1..
2..
11 Intel(R) Centrino(R) Advanced-N 6205 Wireless Network Connection
11 Intel(R) Centrino(R) Advanced-N 6205 Wireless Network Connection
13..
Right now we know index wireless connection (in this case
index=11). Enable network adapter
C:\> wmic path win32_networkadapter where index=11 call enable
Executing (\\corpw7\root\cimv2:Win32_NetworkAdapter.DeviceID="11")->enable()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 5;
};
or
wmic path win32_networkadapter
where NetConnectionID="Wireless Network Connection" call enable
After enable it we can connect to wireless network
C:\>netsh wlan connect name=Wi-Fi
Connection request was completed successfully.
Connection request was completed successfully.
Check it
C:\>ipconfig
Wireless LAN adapter Wireless
Network Connection:
Connection-specific DNS Suffix .
: corp
Link-local IPv6 Address . . . . . : fe80::30bd:fcfa:abau:e13c%11
IPv4 Address. . . . . . . . . . . : 192.168.2.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1
All done
P.S. PsExec.exe part of PcSuite -https://technet.microsoft.com/en-us/sysinternals/bb842062
No comments:
Post a Comment