Posts

Automatically load RSAT as a different user

For a while now I've wanted to load the RSAT (Windows Remote Server Administration Tools) tool I use daily via a script at logon, but as my admin user account, not my normal logon.  There are numerous posts on the web about doing that but with the later versions of PowerShell most of those don't work.  Windows 10 doesn't help. I'm sure there are better ways of doing this but after trying the suggestions I found on the web I hit on a combination that works.  The full script and all future updates are on my PowerShell Library site here:  https://www.powershellgallery.com/profiles/Kcmjr I call the script "RSAT-As-Admin.ps1".  It includes a list of RSAT tools that you must adjust to suit your needs.  The way it's written you can add additional executables easily if desired. Here is the code from release v1.00.  Updates will be posted at the link,above. Param (     [ Switch ] $ Console = $false      ...

Domain Disk Check

Image
As mentioned previously I am now publishing my scripts on the MS PowerShell Gallery site.   I'll put descriptions here for the benefit of anyone who finds them useful but the scripts are at the Gallery. This script uses WMI to poll the current domain and extract disk statistics. Output is gathered in HTML format and emailed to a list of recipients.  Output can be all systems (full) or only systems that are below preset threshold (brief).   Also you can select just servers, just PCs, or a third group which is currently coded for security surveillance servers. An external XML configuration file is used to allow customization of the run time parameters.  The output is color coded to allow for easy viewing.  Thresholds are adjustable via the XML file. The script is called "DomainDiskReport.ps1" and is best found at the library main page at https://www.powershellgallery.com/profiles/Kcmjr/ Here is an example of the script email results using the...

Scripts on the PowerShell Gallery

I have started posting my scripts on the PowerShell Gallery here:  https://www.powershellgallery.com/profiles/Kcmjr/ I'll still try to post them here so I can ramble on about what they do but I'm using the Gallery as the primary location now.

Track time sync across all domain controllers

I hate always harping on Windows time but since it sucks I can't help myself. I wrote this script to watch the time on all our domain controllers, compare it, and alert me if it's off. Be aware that this version doesn't have a window of larger than 1 minute.  I plan to fix that later. Same as always, create the xml config file in the same folder.  See the end of the script for parameters for the file.  Use at your own risk.  Feel free to do what you want with the script (It would be great if you leave my name associated with this and any other scripts I write, but thats up to you.) NOTE: Please use this as reference ONLY for now.  Until I can add a trigger window all this will do is spam you all week! Param (       [ bool ] $Console = $false       ) <#==============================================================================           File N...