Set a default printer – Powershell

December 21st, 2023
$Printer = Get-CimInstance -Class Win32_Printer -Filter "Name='Samsung M337x'"
Invoke-CimMethod -InputObject $Printer -MethodName SetDefaultPrinter 

octoprint – Put tape on the 5V pin

December 20th, 2023

Put tape on the 5V pin – Why and how – Get Help / FAQ – OctoPrint Community Forum

Windows Server 2022: How do I install Print Management??

June 15th, 2023
dism /Online /add-Capability /CapabilityName:Print.Management.Console~~~~0.0.1.0

Block Internet access if OpenVPN Client is down?

June 10th, 2023

NetTime is a Simple Network Time Protocol (SNTP)

February 16th, 2023

NetTime – Network Time Synchronization Tool (timesynctool.com)

How to Save Sent Items in “Shared” Mailbox

February 9th, 2023
Set-Mailbox <SharedMailboxIdentity> -MessageCopyForSentAsEnabled $true
Set-Mailbox <SharedMailboxIdentity> -MessageCopyForSendOnBehalfEnabled $true 
 

How to Reset and Clear Recent Items and Frequent Places in Windows 10 / Excel and Word

April 12th, 2022
  • %APPDATA%\Microsoft\Windows\Recent Items
  • %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations
  • %APPDATA%\Microsoft\Windows\Recent\CustomDestinations

How to Add an Additional IP Address in Windows 11

February 19th, 2022

run the ncpa.cpl command

Get current logged in user name command line (CMD)

January 3rd, 2022
whoami

Example:

c:\>whoami
cmdline\administrator

 

Add Azure Active Directory User to Local Administrators Group

December 3rd, 2021
  1. Login to the PC as the Azure AD user you want to be a local admin. This gets the GUID onto the PC.

  2. Log out as that user and login as a local admin user.

  3. Open a command prompt as Administrator and using the command line, add the user to the administrators group. As an example, if I had a user called John Doe, the command would be “net localgroup administrators AzureAD\JohnDoe /add” without the quotes