PowerShell scripts used for IP Professionals to keep their networks running smoothly.
Here, I will list all the commands I use and come across. (I will try to update it regularly) I will also link to other Articles with commands used in real-world scenarios.
A fast way to access [PowerShell]. Perform the following to make it easy to open [PowerShell]. [Shift + Right-click] mouse ▶ [Open PowerShell window here].
Reboot your system. (Change the 0 value to the number in seconds that you wish to shut down or restart your system) (This works the same on both CMD and PS.)
The [Test-NetConnection] cmdlet displays diagnostic information for a connection. It supports ping test, TCP test, route tracing, and route selection diagnostics.
[PowerShell - diagnostic information for a connection]
{"fact":"CFF Coding Source – Your place for learning to design database-driven web applications,
using Classic ASP and ASP DOT NET for Visual Basic and C Sharp. Along with our website,
we also host a YouTube channel at youtube.com/@cffcs. Make sure to add us to your web browser favorites,
bookmark us, share us on your social networking page, and stay tuned for what we have in store for the future.
I am Wayne Barron, and I will see you later.","length":60}
In all our servers, I name the Network Adapters to make it easier to Team them together. Performing this on many VMs is made simple using the two scripts below. And then I team the NICs together. (Teaming is a way to create redundancy in your server's networking. If one adapter goes down, the next one in line will take over, keeping your server online at all times. (0 Downtime and 99% Uptime)
Check if the Windows Remote Management (WinRM) service is running and responsive on a local or remote computer. Get the Product Vendor and Product Version Number of a Remote Server
Promote one DC to be the Master. If you have many DCs in your network and want to promote one of them to be the Master, run this script. Change the DC-01 to the name of the DC you want to promote.