Skip to content

KnarrStudio/ITPS.OMCS.Tools

Repository files navigation

ITPS.OMCS.Tools

IT PowerShell Open Minded Common Sense Tools

(No connection to the MIT OMCS project)

This is the second third go around of some tools. The original idea was to create a series of tools that could be used by the desk side support tech. I found that some of the tasks that were being completed didn't need to have elevated rights, so I recreated this toolset to be run as the logged on users. Now, months later and a better understanding of modules, Github and life overall, I have done some updates to the overall module and some changes to the code. This also marks the beginning of work with Linux, so although not all of the modules will work with Linux, care is going into that OS.

Original Toolset:

  • Add-NetworkPrinter - Unchanged You need to know the Print Server Name. It will provide a list of printers that you are allowed to print to.

  • Compare-Folders - Minor Changes This version allows you to identify a parent folder before select the two to compare.

  • Get-InstalledSoftware - Unchanged This returns the version of the software named.

  • New-TimedStampFileName - Removed One of my original funtions that I used in early scripting. It just spits out a file name with a time stamp. It really didn't grow, so it has been removed from this module, and rewritten as New-TimeStampFile which actually creates the file. And moved to the ITPS.OMCS.CodingFunction module.

  • Repair-FolderRedirection - Major Changes This has been changed from a single script which did both report and fix to two. See below: Get-FolderRedirection and Set-FolderRedirection.

  • Test-AdWorkstationConnections - Unchanged Collects a list of computers from AD base the the Searchbase you provide and returns two files, first is the full list of computers the next is a list of computer that not responded to the "ping". Because it uses the Net bios name to ping, this also tests the DNS servers. It also gives a list of all of the computers that are in the searchbase.

  • Test-FiberSatellite - Unchanged "Pings" servers based on your input and gives an does the math and gives an average. This was setup, where it was important to know if we were working over the fiber (~60ms average) or over the satellite (+600ms average). By default it pings the big search engine websites. Output example: 8/2/2021 14:09:13 - username tested 5 remote sites and 5 responded. The average response time: 33ms The Ping-O-Matic Fiber Tester! Round Trip Time is GOOD!

  • Test-PrinterStatus - Similar to Test-AdWorkstationConnections, but for printers. You have to provide the printserver name.

  • Test-Replication - This is a manual "brut force" test of DFSR. It writes to a file on one node and reads it on its replication partner, then does the same thing in reverse. You must know at least two of the replication partners.

New Tools:

  • Get-SystemUpTime - This was build after users lieing or not understanding what a Reboot is.
    It will give you the following: ComputerName, LastBoot, TotalHours
  • Get-FolderRedirection - NEW Returns the location of the user's files. This is a way to make sure there is nothing wrong with the folder redirection and they are saving to the HD.
  • Set-FolderRedirection - NEW Changes the location of the user's files and copies them if needed. This will make the changes in the HKCU registry to fix folder redirection.
Import-Module -Name ITPS.OMCS.Tools -Scope Local    # When using this as a normal user.

Module Downloads:

Version 1.8.1 has been uploaded to the PowerShell Gallery

This current version 1.12.2.8 is only available at Github under the Module Testing branch.