{"id":75070,"date":"2023-06-05T13:11:19","date_gmt":"2023-06-05T17:11:19","guid":{"rendered":"https:\/\/jumpcloud.com\/?post_type=support&p=75070"},"modified":"2023-06-05T13:11:19","modified_gmt":"2023-06-05T17:11:19","slug":"install-the-jumpcloud-powershell-module","status":"publish","type":"support","link":"https:\/\/jumpcloud.com\/support\/install-the-jumpcloud-powershell-module","title":{"rendered":"Install the JumpCloud PowerShell Module"},"content":{"rendered":"\n
PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language. The JumpCloud PowerShell Module<\/a> is a set of PowerShell commands that allow JumpCloud administrators to interact with their JumpCloud directory.<\/p>\n\n\n\n Installing the JumpCloud PowerShell module can be done by running a single command.<\/p>\n\n\n\n <\/p><\/div> On Mac or Linux and need to install PowerShell? See Installing PowerShell on Mac and Linux<\/a> below.<\/p>\n <\/div><\/div><\/div><\/div>\n\n\n\n From a Windows PowerShell window launched as administrator, or a terminal window on Mac and Linux where you have launched in PowerShell by running the command Install-Module JumpCloud -Scope CurrentUser <\/p>\n<\/div><\/div>\n\n\n\n When prompted, press Y<\/strong> to install the JumpCloud PowerShell module:<\/p>\n\n\n\n Untrusted repository You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from ‘PSGallery’? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “N”):<\/p>\n<\/div><\/div>\n\n\n\n After the JumpCloud module is installed, you will authenticate the module to the JumpCloud API using a JumpCloud API key and the function Connect-JCOnline<\/a>.<\/p>\n\n\n\n Locate your JumpCloud API key within the JumpCloud Admin Portal. Need help finding your JumpCloud API key? See JumpCloud APIs<\/a>.<\/p>\n\n\n\n After locating your JumpCloud API key, enter the command \/Users\/buster> <\/p><\/div> On Mac or Linux? Once PowerShell is installed, remember you must enter the A success message will indicate that you have successfully connected to the module. If there is an update available for the module, you will be asked if you would like to update.<\/p>\n\n\n\n Find a matrix of copy-and-pastable real work PowerShell examples that have been crowd sourced from JumpCloud customers within the JumpCloud PowerShell Commands Example Library<\/a>.<\/p>\n\n\n\n To see all of the available commands within the JumpCloud Module, run:<\/p>\n\n\n\n Get-Command -Module JumpCloud<\/p>\n<\/div><\/div>\n\n\n\n PowerShell has a built-in help system. To use this system, type Installing the PowerShell Module<\/h2>\n\n\n\n
pwsh<\/code>, enter the command:<\/p>\n\n\n\n
Authenticating the PowerShell Module<\/h2>\n\n\n\n
Connect-JCOnline<\/code> and enter your API key when prompted. Example:<\/p>\n\n\n\n
Connect-JCOnline cmdlet Connect-JCOnline at command pipeline position 1 Supply values for the following parameters: (Type !? for Help.)
JumpCloudAPIKey:<\/p>\n<\/div><\/div>\n\n\n\npwsh<\/code> <\/em>command within the terminal application to open PowerShell.<\/p>\n <\/div><\/div><\/div><\/div>\n\n\n\n
Using PowerShell<\/h2>\n\n\n\n
Accessing Built-In Help<\/strong><\/h3>\n\n\n\n
Help [enter command here] -Full<\/code> to see the full help inside the terminal. For example:<\/p>\n\n\n\n