Posts for: #Powershell

Windows TCP Port Test without Telnet

Run the following in powershell Test-NetConnection -ComputerName HOSTNAME -Port PORT Something like the following will be the output. TcpTestSucceeded is the output you should be concerned with. ComputerName : google.com RemoteAddress : 142.250.191.142 RemotePort : 80 InterfaceAlias : Wi-Fi SourceAddress : 192.168.1.5 TcpTestSucceeded : True
MORE →

Uninstall program via powershell

This is useful if using remote shell to do things. I used this when I migrated from RemoteUtilities (great software, but I can’t seem to find a cheap host for a Windows OS, MeshCentral only requires a small Linux server) to MeshCentral. I was able to use the remote shell through SentinelOne to do this. SentinelOne is by far the best NextGenAV out there. If remote shell uses CMD we’re going to want to open/start powershell
MORE →

Download file via powershell

This is extremely useful if you need to download something in Windows via CLI. This is just like wget on LInux. Previously I would use the precompiled wget program on machines, but now that I learned how to use powershell it’s great. mkdir c:\temp cd c:\temp powershell.exe Invoke-WebRequest -Uri LINKTOEXEHERE.EXE -OutFile EXENAMEHERE.EXE rm EXENAMEHERE.EXE
MORE →

Comments: