All Questions
Tagged with command-line networking
251
questions
0
votes
0
answers
26
views
Unable to Connect to Remote Desktop on Local Network - Diagnosing with CMD/PowerShell
I've recently encountered an issue with Remote Desktop Connection that stumps me. I have two Windows computers on the same Wi-Fi network. Until recently, I could connect without problems, but now I'm ...
0
votes
0
answers
106
views
Win 10/11 Mapped drive set with net command doesn't show in Windows Explorer
I'm trying to simplify my network mapping experience in Windows.
I'm used to fstab in Linux and having to set NAS shares via a file (which I much rather prefer than gui and clicks). So instead of ...
0
votes
0
answers
84
views
Force connection to a server through 10G interface adapter, en4 instead of en0, on macOS
I have two macs (iMac and Mac mini server with attached RAID storage) that both use a 1GB LAN 192.168.10.x/255.255.255.0 for internet connection using the built in ethernet ports. They are attached to ...
0
votes
0
answers
2k
views
Kali linux 2023.3 Vmware player 17 i cant get yersinia gui to open
I've tried everything I can think of when I try to start yersinia -G as root. I'm not getting any error in the terminal. I get one error in the log file about Bluetooth device failed
I don't see why ...
2
votes
1
answer
1k
views
How to find public ip address in PowerShell from a restricted internet in windows 11
How to find public ip address of a windows 11 pc using powershell or command prompt.
Tried ipconfig and gip(powershell) both of them shows different ip compared to ip from the browser.
IPv4 displayed ...
0
votes
1
answer
1k
views
determine what time I connected to the vpn from command line
How do I find what time I connected to a vpn using powershell or cmd?
I would only be doing this when there's an active connection to the vpn and would only need the time that I established the ...
0
votes
1
answer
1k
views
How to use xcopy with /exclude in a network path with spaces?
I want to use xcopy on a network path. I actually do.
The problem is that I wanted to use an /exclude option. But the file would be in a network path. But the network path has spaces (s:\my path).
So ...
0
votes
2
answers
13k
views
Setting down and up a working interface with ip command causes it to stop working
I'm running Debian 11 and using the CLI, when bringing down and up a working interface with ip command (doing no changes at all on it's parameters) it stops working.
Steps that I follow:
Boot the ...
0
votes
1
answer
2k
views
Batch Command to Search network Folder by date modified
I am attempting to find the most recent files in a network folder using a wild card. The code within the batch file is provided below. When the .bat file is executed it returns an error
for /f %%f ...
0
votes
0
answers
780
views
View ICMP settings with Command Window (CMD)
Short question: Is there a simple 1-line command in CMD, executed locally by a user on the host, which tells whether ICMP is allowed or blocked?
Background: Some computers in the network are reachable ...
0
votes
2
answers
222
views
Querying specific devices on network
I want identify specific devices on my network.
I am on MacOS. I used the command arp -a to list the devices in my local network. Now I am presented with a list of devices, but there isn't much ...
0
votes
1
answer
426
views
Anonymous site as a result of entering the 'tracert 127.0.0.1' command
I decided to enter this command in my windows machine in cmd : tracert 127.0.0.1 When i saw this result i was surprised -->image of cmd result
So as you can see in the image it is tracing route to ...
2
votes
3
answers
5k
views
Mapped network drive resets on restart
I have a problem where my mapped network drive becomes unavailable after a restart, trying various solutions to make it persistent [/persistent:yes when re-mapping via PowerShell, etc.]:
net use Z: &...
0
votes
1
answer
272
views
WMIC to a different network
I am trying to run a command on that will execute on Server2 from Server1 using WMIC
e.g: from Server1 run the following command to execute on server2
WMIC /node:Server2 process call create "cmd....
1
vote
0
answers
132
views
How to reset the "allow pc to be discoverable on this network" prompt?
I've searched StackExchange, StackOverflow, and Google and I'm not finding any insights on how to reset the prompt when first connecting a PC to the internet. I've found oodles of articles here and ...
0
votes
1
answer
2k
views
Powershell/CMD continuous ping to file which is overwritten after X days
I've found a lot of examples of continuous ping and saving output to a file. But what i was hoping to find was how do I have the script rewrite the output file after every 7 days, thereby eliminating ...
2
votes
1
answer
8k
views
TFTP Timeout with no apparent cause
So basically I need to run a TFTP server in order to update and host firmware for a few devices in my network. From what I've read tftpd-hpa is the best option, but I have tried the older tftpd using ...
0
votes
0
answers
3k
views
SSH connection gets stuck when using jump host
At my work, we have a jump host over which I must connect to the cluster. Usually, the connection statement would be
ssh -t herp@jumphost ssh cluster
Furthermore, this connection has to be made from ...
3
votes
1
answer
1k
views
Is there a way to find the TTL start value of the pinged server
For example, if I ping www.google.com I get TTL=114, is there a way for me to find what was the initial TLL value for www.google.com
0
votes
1
answer
2k
views
How to know which Network Adapter is which Physical Port?
I have a Windows Server Core Server 2019 with 9 Network Adapters, split into 3 network cards:
[hypervisor05]: PS C:\Users\administrator\Documents> get-netadapter -physical | ft
Name ...
0
votes
1
answer
3k
views
Create virtual serial port (COM <-> TCP) via terminal on Windows 10
Context
I am working with a module built around a headless Raspberry Pi CM3+, the only form of interface with which is an ESP8266 chip (bear with me, the question isn't about either of these) which is ...
2
votes
3
answers
3k
views
Add or update firewall rule
I'm using the following command in a powershell script to add a firewall rule to open port 80 for a webserver.
netsh advfirewall firewall add rule name= "RemoteData Open Port 80 in" dir=in ...
1
vote
1
answer
563
views
Windows Admin Center (WAC) + Powershell
so I'm using a PowerShell script which runs .exe installation,
both the script and the .exe file located in the same network folder,
when I run the script directly from the pc it runs well,
but when I'...
0
votes
0
answers
262
views
Can't connect to network drive through MS-Dos
In Windows 10 we have a server that getted mapped on a virtual F: drive.
I'm trying to achieve something with the hardlink thing in MS-Dos and I have to link to a file that is on the server.
But ...
0
votes
1
answer
2k
views
Connecting to WIFI network from Command Prompt
Is there a way to use the Windows 10 CMD MS-DOS Command Prompt to connect to a Wifi Network? The parameters for such a protocol could be simply as I have the network which I want to connect to and the ...
0
votes
1
answer
929
views
Difference in network driver .inf versions
what is the difference between "netwtw" versions packaged inside a network driver .exe
Each Network Driver package appears to contain the three following versions of the driver as a .inf ...
4
votes
1
answer
647
views
Performing network connection "diagnose" / "troubleshoot" via command line in Windows
Is there a way in command line to do the steps that Windows 10 does when you right click a network connection and choose "diagnose" or when you tell it to troubleshoot a connection?
I'm ...
0
votes
0
answers
572
views
Ifconfig command doesn't show wifi adapter
I have a little problem. I have 2 wifi adapters at home (1 TP-link T2U AC600 plus and a TP-link T4U AC1300),
I installed the driver and have acces to the internet. So I think the configuration went ...
0
votes
1
answer
38
views
Copy files to other LAN computers, and create log files for failed computers
I want to create a command to copy files to the computers in the list and create a log file to know which machine copy failed.
for /f %a in (list.txt) do copy /y \\server\test\file \\%a\\c$\Intel 1>...
0
votes
2
answers
188
views
Open Up Window on One Computer from Another over Home Network
I have two Windows 10 computers connected to the same local home network, and they both have each other's credentials stored so that they can access each other. I would like to be able to use one ...
0
votes
1
answer
6k
views
Pinging the default gateway vs pinging another device in the network
Let's say you want to connect to the Internet and you pinged a.b.c.d. Because you thought it's your default gateway, but it's actually the address of another network device. How can you tell you've ...
0
votes
1
answer
515
views
How long does a nmap syn scan with the timing template set to -T1 take and is there a way to improve it's speed?
I'm entirely new / excited to learn about computers, linux and most recently port scanning . After reading about nmap in a book, I began to read the manual & website of nmap, and play around with ...
2
votes
1
answer
2k
views
Windows command line - disable all outgoing traffic
I want to be able to disable all outgoing traffic but not incoming traffic - something like netsh interface set interface "Ethernet" disable but only for outgoing traffic. How do I do that ...
1
vote
0
answers
130
views
Produce a report of all devices connected to my home network using Terminal
Using my home router's UI (Netgear Genie, accessible at www.routerlogin.com), I am able to view an HTML page showing all devices connected to my network. Information shown on this page includes:
...
1
vote
1
answer
1k
views
Batch file with Powershell command quotes
I have created a script to change my IP address/mask and VLAN ID of an interface but the problem is that in order to change the VLAN ID, I need to execute a PowerShell command. My variable containing ...
1
vote
1
answer
2k
views
How to uninstall/install the nic card, network properties protocol using powershell command or windows command line?
I need to uninstall/install the protocol list in the nic card network properties list through command or code.
I tried the below command it's list the network properties list only.
Get-...
0
votes
0
answers
2k
views
Facing " this is not applicable to your computer" error when installing KB2919442
I manually tried installing (KB2919442) on my window 8.1 PC which is a prerequisite for (KB2919355), but I get "This update is not applicable to your computer" error each time I tried to install it. ...
0
votes
2
answers
587
views
Difference between Windows GUI red cross and taskkill command (need proper process exit)
I started VLC (with NDI plugin) in the command line using this Python code:
vlc = sp.Popen(["vlc", "-", "--aout", "NDI", "--vout", "NDI", url], shell=True)
(NDI is a video streaming network ...
1
vote
0
answers
228
views
How to change VPN properties using cmd in Windows 7
With all this virus stuff, my company sent me to work at home. But when I connect to my company's VPN, I lose the internet connection. I have read on the internet that I must disable the option "Use ...
1
vote
1
answer
2k
views
Powershell Equivalent of this old bat netsh way of obtaining DNS Server and ip from dhcp?
Is there a way to do this in Powershell?
REM Stop the DNS Service...
REM (not shown here)
REM DHCP DNS Settings
netsh interface ip set dns "<adapter-name>" dhcp
REM DHCP IP
netsh interface ip ...
2
votes
2
answers
112
views
Identifying which Ethernet cable was connected
I have 2 Ethernet cables coming from separate ISPs. I want to create a CMD (.bat) script which would find out which cable was connected and then it would change Ethernet settings accordingly.
I have ...
5
votes
1
answer
21k
views
PowerShell remoting: The WinRM client cannot process the request
I setup the remote PowerShell access on the remote computer with the commands below:
Enable-PSRemoting -Force
Set-Item wsman:\localhost\Client\TrustedHosts -value '*' -Force
Get-Item wsman:\localhost\...
0
votes
1
answer
2k
views
set static network on windows 10 with commandline
I am running currently windows 10 with a DHCP assigned network address. I want to change this (and I know how to do it via GUI), but I am wondering how could i change the network address via command ...
0
votes
0
answers
187
views
How to make a batch file that copies itself to all available network locations?
I am trying to make a batch which can copy itself to all available network locations.
I know how to make a batch file that can copy itself to a network location whose name is known. I want to make a ...
1
vote
1
answer
553
views
Remote into a computer with PowerShell
I am trying to remote into a computer via PowerShell, but I get this error:
WinRM client cannot process the request. If the authentication scheme is different from
Kerberos, or if the client computer ...
1
vote
1
answer
79
views
Need help locating SSH access on cPanel
I have cpanel 78.0.41, looking up online I've been told that it is in Security/SSH Access or Advanced/SSH Access but I can't locate it anywhere.
I also tried to locate the terminal but I can't see it ...
9
votes
2
answers
52k
views
Windows 10 cmd/powershell: cd to a network share?
Ok, I have seen: Change working directory to network share - however, it does not seem to work for me on Windows 10.
At work, I have a network share, let's say, at local IP address 20.0.0.1; so, ...
0
votes
0
answers
3k
views
How to set the frequency (2.4 or 5 GHz) of WiFi hotspot via command line in Windows?
For some reason, I need to enable WiFi hotspot on a machine running Windows Server 2019.
Unlike Windows 10, there is no native GUI to enable hotspot in settings, so I need to run this code in cmd / ...
7
votes
1
answer
7k
views
ifconfig shows multiple network interfaces
When I run ifconfigon my Macbook air 2018 with MacOS Mojave 10.14.6 I get this:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP&...
2
votes
1
answer
3k
views
Windows 10 route keeps coming back after a while every time I delete it with route delete, how can I delete route for good?
Initially I had a raspberry pi/pi2 on my network beating my router dhcp server and serving up IPs and because of some default options Windows clients started receiving the IP address of the pi2 dhcp ...