Set password expiration for users currently marked as 'Password Never Expires' in bulk (User Group Base) from Powershell

Set password expiration for users currently marked as 'Password Never Expires' in bulk (User Group Base) from Powershell

Set password expiration for users currently marked as 'Password Never Expires' in bulk


Step 1

 Install the JumpCloud Module on your Powershell
( Windows/ MAC )


Install JumpCloud on Windows.


  • Open Powershell as Administrator.

  • Run this cmd -> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

  • Next this cmd -> Install-Module JumpCloud

  • If you are stuck anywhere refer to this LINK

  • If you are having trouble then reach out to support@netnxt.com



Install JumpCloud on MAC.


  • Download the Powershell From this LINK according to your device.

  • Powershell will be installed from the above step.

  • Open the Powershell and run this -> Install-Module JumpCloud

  • If you are stuck anywhere refer to this LINK

  • If you are having trouble then reach out to support@netnxt.com



Step 2


Connect your Powershell to JumpCloud by the below instructions


  • Open Powershell in Administrator

  • Run this cmd to connect JumpCloud -> Connect-JCOnline

  • Provide the API Key

Note - If you already generated/ newly generating the API key store it in a safe place and use it when it is needed. Do not generate it again as a result your previous key will be expired.


Below is the instruction to Set password expiration for users currently marked as 'Password Never Expires' in bulk

1. Create a user group and add all users whose passwords are set to never expire 
2. Follow the steps below to disable Password Never Expires. Replace the YOUR_GROUP_NAME with your group name ( Make sure there is no space between the names )

Get-JCUserGroupMember -GroupName YOUR_GROUP_NAME | % {Set-JCUser -UserID $_.UserID -password_never_expires $false}

3. Follow the steps below to enable Password Never Expires. Replace the YOUR_GROUP_NAME with your group name ( Make sure there is no space between the names )

Get-JCUserGroupMember -GroupName YOUR_GROUP_NAME | % {Set-JCUser -UserID $_.UserID -password_never_expires $true}







    • Related Articles

    • Add users to a user group in bulk Using a CSV File from PowerShell

      Add Users to a User Group in Bulk using Powershell Step 1 Install the JumpCloud Module on your Powershell ( Windows/ MAC ) Install JumpCloud on Windows. Open Powershell as Administrator. Run this cmd -> Set-ExecutionPolicy -ExecutionPolicy ...
    • Add & Remove the device in Device Group in bulk via Powershell

      ? Summary This article explains how to bulk add or remove systems from a JumpCloud system group using the Jumpcloud Powershell Module and a .csv file. ✅ Prerequisites Step 1 Install the JumpCloud Module on your Powershell ( Windows/ MAC ) Install ...
    • Mac User Profile Locked/Disabled – Resolution Guide

      Issue Summary Name: Mac User Profile Got Locked/Disabled Possible Reasons for Locked/Disabled Account 1. Exceeding the allowed number of incorrect password attempts. 2. Jumpcloud password doesn’t match the local account. it may trigger a lockout 3. ...
    • LAPS (Local Admin Password Solution) for Windows "JC miniLAPS"

      ? Overview To implement JumpCloud MiniLAPS, a lightweight Local Administrator Password Solution (LAPS) for Windows devices managed by JumpCloud. This solution rotates and securely stores the local admin password within JumpCloud system description. ...
    • Deleting Unwanted User Profiles from macOS and Windows using JumpCloud

      Deleting Unwanted User Profiles from macOS and Windows using JumpCloud Overview This guide provides steps to identify and remove unwanted/suspended user profiles from macOS and Windows systems through JumpCloud Commands. It ensures that only the ...