diff --git a/PowerShell/JumpCloud Module/Docs/JumpCloud.md b/PowerShell/JumpCloud Module/Docs/JumpCloud.md
index 8a034b413..bfee0a621 100644
--- a/PowerShell/JumpCloud Module/Docs/JumpCloud.md
+++ b/PowerShell/JumpCloud Module/Docs/JumpCloud.md
@@ -2,7 +2,7 @@
Module Name: JumpCloud
Module Guid: 31c023d1-a901-48c4-90a3-082f91b31646
Download Help Link: https://github.com/TheJumpCloud/support/wiki
-Help Version: 2.11.0
+Help Version: 2.12.0
Locale: en-US
---
diff --git a/PowerShell/JumpCloud Module/JumpCloud.psd1 b/PowerShell/JumpCloud Module/JumpCloud.psd1
index cbd4f807d..588ba1f66 100644
--- a/PowerShell/JumpCloud Module/JumpCloud.psd1
+++ b/PowerShell/JumpCloud Module/JumpCloud.psd1
@@ -3,7 +3,7 @@
#
# Generated by: JumpCloud Solutions Architect Team
#
-# Generated on: 6/13/2024
+# Generated on: 6/18/2024
#
@{
@@ -12,7 +12,7 @@
RootModule = 'JumpCloud.psm1'
# Version number of this module.
- ModuleVersion = '2.11.0'
+ ModuleVersion = '2.12.0'
# Supported PSEditions
# CompatiblePSEditions = @()
@@ -80,19 +80,19 @@
'Get-JCCommandTarget', 'Get-JCEvent', 'Get-JCEventCount', 'Get-JCGroup',
'Get-JCOrganization', 'Get-JCPolicy', 'Get-JCPolicyResult',
'Get-JCPolicyTargetGroup', 'Get-JCPolicyTargetSystem',
- 'Get-JCRadiusReplyAttribute', 'Get-JCRadiusServer', 'Get-JCScheduledUserstate', 'Get-JCSystem',
- 'Get-JCSystemApp', 'Get-JCSystemGroupMember', 'Get-JCSystemInsights',
- 'Get-JCSystemUser', 'Get-JCUser', 'Get-JCUserGroupMember',
- 'Import-JCCommand', 'Import-JCMSPFromCSV', 'Import-JCUsersFromCSV',
- 'Invoke-JCCommand', 'Invoke-JCDeployment', 'New-JCCommand',
- 'New-JCDeploymentTemplate', 'New-JCImportTemplate',
- 'New-JCMSPImportTemplate', 'New-JCPolicy', 'New-JCRadiusServer',
- 'New-JCSystemGroup', 'New-JCUser', 'New-JCUserGroup',
- 'Remove-JCAssociation', 'Remove-JCCommand', 'Remove-JCCommandResult',
- 'Remove-JCCommandTarget', 'Remove-JCGsuiteMember',
- 'Remove-JCOffice365Member', 'Remove-JCPolicy',
- 'Remove-JCRadiusReplyAttribute', 'Remove-JCRadiusServer',
- 'Remove-JCSystem', 'Remove-JCSystemGroup',
+ 'Get-JCRadiusReplyAttribute', 'Get-JCRadiusServer',
+ 'Get-JCScheduledUserstate', 'Get-JCSystem', 'Get-JCSystemApp',
+ 'Get-JCSystemGroupMember', 'Get-JCSystemInsights', 'Get-JCSystemUser',
+ 'Get-JCUser', 'Get-JCUserGroupMember', 'Import-JCCommand',
+ 'Import-JCMSPFromCSV', 'Import-JCUsersFromCSV', 'Invoke-JCCommand',
+ 'Invoke-JCDeployment', 'New-JCCommand', 'New-JCDeploymentTemplate',
+ 'New-JCImportTemplate', 'New-JCMSPImportTemplate', 'New-JCPolicy',
+ 'New-JCRadiusServer', 'New-JCSystemGroup', 'New-JCUser',
+ 'New-JCUserGroup', 'Remove-JCAssociation', 'Remove-JCCommand',
+ 'Remove-JCCommandResult', 'Remove-JCCommandTarget',
+ 'Remove-JCGsuiteMember', 'Remove-JCOffice365Member',
+ 'Remove-JCPolicy', 'Remove-JCRadiusReplyAttribute',
+ 'Remove-JCRadiusServer', 'Remove-JCSystem', 'Remove-JCSystemGroup',
'Remove-JCSystemGroupMember', 'Remove-JCSystemUser', 'Remove-JCUser',
'Remove-JCUserGroup', 'Remove-JCUserGroupMember',
'Send-JCPasswordReset', 'Set-JCCloudDirectory', 'Set-JCCommand',
diff --git a/PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemInsights.ps1 b/PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemInsights.ps1
index 0cd652ba9..6615effc0 100644
--- a/PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemInsights.ps1
+++ b/PowerShell/JumpCloud Module/Public/Systems/Get-JCSystemInsights.ps1
@@ -107,8 +107,33 @@ Function Get-JCSystemInsights {
} Else {
Invoke-Expression -Command:($CommandTemplate -f $Table)
}
+
+ switch ($Table) {
+ SystemInfo {
+ $newResults = @()
+ $newResults += $Results | ForEach-Object {
+ $_ | Select-Object -Property *, @{ Name = 'PhysicalMemoryGB'; Expression = { [math]::round($_.PhysicalMemory / 1GB, 3) } }
+ }
+ }
+ mount {
+ $newResults = @()
+ $newResults += $Results | ForEach-Object {
+ $_ | Select-Object -Property *, @{ Name = 'BlocksAvailableGB'; Expression = { $BlocksAvailableBytes = ([int64]$_.BlocksAvailable * [int64]$_.BlocksSize); [math]::round($BlocksAvailableBytes / ([Math]::Pow(1000, 3)), 3) } }, @{ Name = 'BlocksGB'; Expression = { $BlocksBytes = [int64]$_.Blocks * [int64]$_.BlocksSize; [math]::round($BlocksBytes / ([Math]::Pow(1000, 3)), 3) } }
+ }
+ }
+ logicalDrive {
+ $newResults = @()
+ $newResults += $Results | ForEach-Object {
+ $_ | Select-Object -Property *, @{ Name = 'SizeGB'; Expression = { [math]::round($_.Size / 1GB, 3) } }, @{ Name = 'FreeSpaceGB'; Expression = { [math]::round($_.FreeSpace / 1GB, 3) } }
+ }
+ }
+ }
}
End {
- Return $Results
+ if ($newResults) {
+ Return $newResults
+ } else {
+ Return $Results
+ }
}
}
\ No newline at end of file
diff --git a/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml b/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml
index 9bfeff6ce..3b2c4796d 100644
--- a/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml
+++ b/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml
@@ -7067,11 +7067,11 @@ PS C:\> $BackupJcOrganizationResults.User
Get
JCScheduledUserstate
- {{ Fill in the Synopsis }}
+ Returns scheduled userstate changes by state or returns a user's scheduled userstate changes
- {{ Fill in the Description }}
+ Get-JCScheduledUserstate function allows for admins to view upcoming scheduled user suspensions or activations. You can also look up an individual user's upcoming state changes by their userID
@@ -7163,9 +7163,23 @@ PS C:\> $BackupJcOrganizationResults.User
-------------------------- Example 1 --------------------------
- PS C:\> {{ Add example code here }}
+ Get-JCScheduledUserstate -State "SUSPENDED"
- {{ Add example description here }}
+ Returns all scheduled SUSPENDED userstate changes
+
+
+
+ -------------------------- Example 2 --------------------------
+ Get-JCScheduledUserstate -State "ACTIVATED"
+
+ Returns all scheduled ACTIVATED userstate changes
+
+
+
+ -------------------------- Example 2 --------------------------
+ Get-JCScheduledUserstate -UserID "USERID"
+
+ Returns all scheduled userstate changes for a given userID
diff --git a/PowerShell/ModuleChangelog.md b/PowerShell/ModuleChangelog.md
index 6326c978b..a1e1aa53d 100644
--- a/PowerShell/ModuleChangelog.md
+++ b/PowerShell/ModuleChangelog.md
@@ -1,3 +1,20 @@
+## 2.12.0
+
+Release Date: June 18, 2024
+
+#### RELEASE NOTES
+
+```
+Added new calculated fields for Get-JCSystemInsights Tables LogicalDrives, Mounts, and SystemInfo to include human readable sizes in GB for the following fields: PhysicalMemory, blocks, blocksAvailable, freeSpace, and size
+```
+
+#### IMPROVEMENTS:
+
+* Added calculated fields for the `Get-JCSystemInsights` following tables:
+ * LogicalDrives - freeSpaceGB, sizeGB
+ * Mounts - blocksGB, blocksAvailableGB
+ * systemInfo - physicalMemoryGB
+
## 2.11.0
Release Date: June 13, 2024