Tag

#PowerShell

Get Vendor from MAC Address

November 1, 2024

Here's a quick snippet to get the IP, MAC address and Vendor using PowerShell in Windows with the native arp -a command and curl. It is based on…

Tail a file in Windows

October 3, 2024

This PowerShell one-liner is a convenient way to monitor log files in real-time and quickly spot error messages. The script continuously reads the log and highlights lines that…

Recover media files from iMazing backup

June 17, 2024

Awhile back I used a piece of software (iMazing) to backup an old iPhone of mine. The raw backup when extracted is a bunch of files without extensions…

Analyze RDP Disconnection Logs using PowerShell

February 7, 2023

The PowerShell script is designed to extract information about Remote Desktop Protocol (RDP) local session manager events from the Windows event logs on a RDS host and save…

Check Windows Servers Activation Status

October 7, 2022

I needed a quick way to check activation status of Windows Servers in a domain. This is the solution I came up with using PowerShell to run the…

Get monitor make and serial number command line

November 19, 2021

The following powershell command will return make and serial number of a monitor connected to the computer. gwmi WmiMonitorID -Namespace root\wmi | ForEach-Object {($_.UserFriendlyName -ne 0 | foreach…

Get and Install Windows Updates via PowerShell

January 13, 2020

Using the following package PSWindowsUpdate you can Get-WindowsUpdate and Install-WindowsUpdate. install-module pswindowsupdate DESCRIPTION Use Get-WindowsUpdate (aka Get-WUList) cmdlet to get list of available or installed updates meeting specific…

Join a Computer or Server to a Domain

November 5, 2018

Using the following command, a computer can be joined to an existing Active Directory Domain. netdom join %computername% /domaind:DOMAIN /userd:username /passwordd:password PowerShell it can be accomplished with the…

Enable All Windows Events Logs Archiving

October 31, 2018

This PowerShell script will enable retention for all Windows event logs. This will create an archive log file and start a new log file when it reaches the…