Saturday, April 1, 2023

Powershell Script Snippets

Powershell, BASH, Python etc. code snippets to be always posted on Github due to better coding. 

Visit https://github.com/payomagic

 Including:  
--
PowerShell
how to rename a network adapter with a list of names in .csv
how to set a timezone
how to set an IP address, mask, default gateway and DNS
how to create an user and add it to Local Admin group
how to disable netbios and isatap (IPv6)
how to disable IE Enhanced Security
how to join a domain
how to disable autostart of Server Manager
--
Python
how to connect to Cisco router/switch and pull interfaces stats
how to perform a bulk device configuration
--
BASH
how to pull info from Cisco router, filter it out and push it to another commands