$Printer = Get-CimInstance -Class Win32_Printer -Filter "Name='Samsung M337x'" Invoke-CimMethod -InputObject $Printer -MethodName SetDefaultPrinter
Set a default printer – Powershell
December 21st, 2023octoprint – Put tape on the 5V pin
December 20th, 2023Windows Server 2022: How do I install Print Management??
June 15th, 2023dism /Online /add-Capability /CapabilityName:Print.Management.Console~~~~0.0.1.0
Block Internet access if OpenVPN Client is down?
June 10th, 2023NetTime is a Simple Network Time Protocol (SNTP)
February 16th, 2023How to Save Sent Items in “Shared” Mailbox
February 9th, 2023Set-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, 2022run the ncpa.cpl
command
Get current logged in user name command line (CMD)
January 3rd, 2022whoami
Example:
c:\>whoami cmdline\administrator
Add Azure Active Directory User to Local Administrators Group
December 3rd, 2021-
Login to the PC as the Azure AD user you want to be a local admin. This gets the GUID onto the PC.
-
Log out as that user and login as a local admin user.
-
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