Showing posts from July, 2019


Set-ADPhoto Set Active Directory Photo for Users By Michael J. Thomas I have been very busy lately, so I'm going to keep this one simple. How to set a photo for active directory user with PowerShell. The more built out version will be posted at a later time. function Set-ADPhoto { [ CmdletBinding ()] param( [ string ] $UserName , [ string ] $File ) $Photo =[ System.IO.File ]::ReadAllBytes( $File ) Set-ADUser $UserName -Replace @{thumbnailphoto= $Photo } }


Install-Fonts Install Fonts on a Computer with PowerShell By Michael J. Thomas It has been a busy week for me and so I have not had much time write a script for this week. I started looking back at some of my old VBScripts and thought it would be fun to write a PowerShell version of Installing Fonts. I created a function called Install-Fonts.  It has two switch options with the current version of it. I have some more ideas I'm going to update this one soon but I'm limited on as of this writing. I hope you all enjoy this one for now. Select one file with the -File switch Install-Fonts -File "c:\Fonts\FontName.ttf" Select the whole folder with the -Files switch Install-Fonts -Files "c:\Fonts". Download Script from GitHub <# .Synopsis    Install-Fonts    Author: Michael J. Thomas    Created: 07/10/2019    Updated: 07/10/2019 .DESCRIPTION    Install Fonts on a computer. .EXAMPLE    Install-Fonts -Files "C:\Font