Categories:
  🠪  General

Email
  🠪  Servers
  🠪  Testing
  🠪  Tips

Hardware
  🠪  3D Printing
  🠪  Apple
  🠪  Batteries
  🠪  Drives
  🠪  Edgerouter
  🠪  Electronics
  🠪  Laptop
  🠪  Modems
  🠪  Phone
  🠪  Printers
  🠪  Raspberry Pi
  🠪  Tablets
  🠪  Testing
  🠪  Virtualization

hidden
  🠪  General

Links
  🠪  Interesting
  🠪  Media

Network
  🠪  Data
  🠪  Testing
  🠪  VPN

Scripts
  🠪  Batch
  🠪  Linux
  🠪  Powershell

Servers
  🠪  Databases
  🠪  Misc
  🠪  Website

Software
  🠪  Other

Utilities
  🠪  Backup
  🠪  Fix Issues
  🠪  Recovery

Video
  🠪  Editing

Websites
  🠪  HTML
  🠪  Testing

Windows
  🠪  Adjustments
  🠪  Issues
  🠪  Remote Desktop
  🠪  Security
  🠪  Slow
  🠪  Software
  🠪  Startup

Submit Entry
Airin's Notes

Category: Scripts 🠪 Powershell
My Powershell scripts
November 29, 2023

This lists some powershell scripts I have created which may be of interest to others.

To run a powershell script automatically using Task Scheduler, set the program to [ powershell.exe ] and the Add Arguments field to [ -File "PathToScript.ps1" ].
Link to more info on setting it.




If you have errors running powershell scripts, you need to run this command in an Admin Powershell window:

Set-ExecutionPolicy RemoteSigned




To run a powershell script and hide the powershell window, use this:

PowerShell.exe -windowstyle hidden -File "C:\Path\To\Script.ps1"




AD-CheckComputers - Query Active Directory for a list of all computers, check each computer to see it's OS, if it is online, IP, last login time, and current users.

AD-CheckComputers.ps1




FastPing - Ping multiple devices quickly - Use this to watch devices ping times, calculate ping losses, see when devices go offline. Double click a line to see more details.

FastPing.ps1





FlashTest - Test flash storage - This creates random data on a drive which can be validated by hashing. This will detect any corruption that is located within the files. Fill a drive up and if any file does not read exactly the same, you can tell which files have corruption.

FlashTest.ps1





Scan Network / Check for open TCP Ports - Use this tool I wrote to scan all devices on the LAN, find names/MAC's, and open ports.

Test-TCP_Probe.ps1





ScreenCapture - Take periodic screenshots of a computer screen. I use this to monitor my sons computer (he knows I do this), I save the files to a network share and I periodically review them. You can specify the folder to save them in, the file format, and the interval between captures (I use 5 minutes). It detects if the computer is idle (no mouse movements) and doesn't continue until the mouse moves.

ScreenCapture.ps1





Keywords: Scan, Network, Ping, TCP, Probe, Open, Analyze





This site is meant to be used as a reference for myself, although others may find it useful. I use it to keep track of certain fixes, software, and other solutions which I may need while assisting customers. The page layout is pure HTML/CSS and is kept simple to optimize loading time and fast results.

Return to Airin's Computers