Tag: Powershell
-
Installing ELK 7 (Elasticsearch, Logstash and Kibana) – Windows Server 2016 (Part I)
I am a huge fan of the Elastic stack as it can provide a great deal of visibility into even the largest of environments, which can help enable both engineering and security teams rapidly triage technical issues or incidents at scale. There’s also the fact that unlike Splunk, the Elastic software is free to use…
Written by
-
PowerShell Script – Set-PowerCfg
Set-PowerCfg is a simple script that can be used to easily set or check the current power scheme being applied on a Windows host, these are the same settings found in Control Panel > Power Options. This is particularly useful on laptops where CPU throttling may be an issue and you need to easily switch…
Written by
-
Powershell scripts fail when deployed via Group Policy as Startup scripts with Event ID 1055 and 1130
I recently went to deploy a new Powershell based Startup script in my test environment, and while the majority of my Windows machines happily complied, 2 of my test servers that were running Remote Desktop Services did not like the new Startup policy. The script itself was pretty straight forward – it pulled some files…
Written by
-
Testing SMTP with Telnet and PowerShell (Cheat Sheet)
This is my cheat sheet for sending E-Mail through a SMTP Server. This is particularly useful when configuring and testing a new SMTP server. PowerShell: Send-MailMessage -SMTPServer hostname -To youremail@domain.com -From none@none.com -Subject “This is a test email” -Body “This is the body of the test email sent via PS.” Telnet: C:\>telnet hostname 25 220…
Written by
-
PowerShell Script: Find the largest files and folders for any drive
Update – 04.06.2021 – I have an updated version of this script that is a little more flexible and has better output, you can find the new script here: /2021/04/powershell-script-quickly-find-the-largest-files/ This is a super easy to use and flexible PowerShell script to find out what the largest files and folders are on a single drive.…
Written by
-
Using PowerShell to filter and sort IIS Binding info…
In this post I want to talk about a few PowerShell commands for grabbing info about IIS bindings that utilize the Webadministration Module. When a server is running a lot of sites, sorting through the bindings can be a daunting task especially if you are looking for specific information like say what IP’s are bound…
Written by
-
PowerShell – Simple Mass Server Shutdown/Reboot Script with Menu & Status Check (Video)
What is the purpose of this script? This is a simple script that can be used to mass shutdown or reboot any Windows hosts that are in the hosts.txt file. The script is menu driven and allows the user to view the hosts that are in the txt as well as edit it. There is…
Written by
-
PowerShell – Remote File Query Script
Recently I was given the task to find how many computers on my network had a particular file, this is the PowerShell script I used to tackle it. Administrative access on all hosts is assumed. This script will work to find any file or directory from a list of host names contained in a txt.…
Written by