• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
OpenTechTips

OpenTechTips

Comprehensive IT Guides for Pros and Enthusiasts

MENUMENU
  • HOME
  • ALL TOPICS
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Tools
    • Virtualization
    • Web
    • Windows
  • ABOUT
  • SUBSCRIBE

Home

Home

How to Disable Sleep on Mac When Closing the Lid

June 27, 2025 Zsolt Agoston
# Disable sleep on macbooks when closing the lid sudo pmset disablesleep 1 # Prevent auto-start of macbooks when opening the lid sudo nvram BootPreference=%01 # Macbook shutdown without a prompt [Option] + click on 'Shutdown' ... Read More
Home

Disable or Enable AzureAD Password Expiration with PowerShell

September 24, 2023
Home
Use PowerShell to disable or enable AzureAD user account password expiration for a single user or in bulk ... Read More
Home

How to Detach and Attach Office365 Accounts to Hybrid User

April 10, 2023
Home
Learn how to detach and attach O365 users to on-prem user accounts with ease! ... Read More
Home

Google Search Cheat Sheet

March 15, 2023
Home
A list of the most useful Google search commands and operators ... Read More
Home

Show Error Details – PowerShell

December 27, 2022
Home
How to get verbose PowerShell error messages ... Read More
Home

How to Test Open Port in PowerShell

December 4, 2022
Home
Two ways to check open ports with PowerShell ... Read More
Home

Shadow Copies in Windows 10 and 11

October 14, 2022
Home
Set up automatic shadow copies on Windows 10 and 11 ... Read More
Home

Easy Password Generator in PowerShell

October 6, 2022
Home
Use PowerShell to generate randomized passwords in a length and count you want! ... Read More
Home

How to Set Primary SMTP in Exchange Online – M365

May 19, 2022
Home
Use the Set-Mailbox cmdlet with the -WindowsEmailAddress parameter to set the primary SMTP address in Exchange Online ... Read More
Home

Display Contents of SSL Certificate from PEM File

May 16, 2022
Home
A one-liner to display all contents of a SSL public key file ... Read More
Home

Convert OPENSSH key to RSA type

May 13, 2022
Home
Use ssh-keygen to convert an OPENSSH key to RSA format ... Read More
Home

Vim – Change Color Scheme for Easy Readability

April 22, 2022
Home
Set the 'desert' color scheme for Vim. easier on the eyes on dark backgrounds ... Read More
Home

SSH Private key Authentication to Linux on a Windows Machine

April 20, 2022
Home
Learn how to use private certificate files to automatically authenticate to SSH servers. No password needed! ... Read More
Home

How to Configure Static IP on Debian 10

April 15, 2022
Home
Configure a static IP address on a Debian 10 server using the command line ... Read More
Home

MySQL Query All Users and User Premissions

April 10, 2022
Home
List all the users and user permissions in a MySQL database using the shell ... Read More
Home

How to Securely Wipe a Disk in Windows 10 – No Extra Software Needed!

April 7, 2022
Home
I show you an easy way of wiping a disk using only built-in tools on a Windows computer ... Read More
Home

How to Compact a VHD or VHDX File using PowerShell

April 1, 2022
Home
These three simple commands will compact your vhd or vhdx file, removing the whitespace inside ... Read More
  • ‹
  • 1
  • 2
  • 3
  • 4
  • …
  • 13
  • ›
Home

Primary Sidebar

Tools

  • Terms of Use
  • Disclaimer
  • Privacy Policy
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Manage your privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}