-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #630 from TheJumpCloud/CUT-4394_JCDeviceFromCSV
CUT-4394 - Update Device from CSV Function
- Loading branch information
Showing
23 changed files
with
1,520 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
PowerShell/JumpCloud Module/Docs/New-JCDeviceUpdateTemplate.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
external help file: JumpCloud-help.xml | ||
Module Name: JumpCloud | ||
online version: https://github.com/TheJumpCloud/support/wiki/ | ||
schema: 2.0.0 | ||
--- | ||
|
||
# New-JCDeviceUpdateTemplate | ||
|
||
## SYNOPSIS | ||
A guided walk through that creates a JumpCloud Device Import CSV file on your local machine. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
New-JCDeviceUpdateTemplate [-Force] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
The New-JCDeviceUpdateTemplate command is a menu driven function that guides end users and creates a custom JumpCloud Device Import .CSV file on their machine for populating with their Device information for updating in JumpCloud. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
```powershell | ||
PS C:\> New-JCDeviceUpdateTemplate | ||
``` | ||
|
||
Launches the New-JCDeviceUpdateTemplate menu | ||
|
||
## PARAMETERS | ||
|
||
### -Force | ||
Parameter to force populate CSV with all headers when creating an update template. | ||
When selected this option will forcefully replace existing files in the current working directory | ||
|
||
```yaml | ||
Type: System.Management.Automation.SwitchParameter | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### None | ||
## OUTPUTS | ||
### System.Object | ||
## NOTES | ||
## RELATED LINKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
PowerShell/JumpCloud Module/Docs/Update-JCDeviceFromCSV.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
external help file: JumpCloud-help.xml | ||
Module Name: JumpCloud | ||
online version: https://github.com/TheJumpCloud/support/wiki/ | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Update-JCDeviceFromCSV | ||
|
||
## SYNOPSIS | ||
Updates a set of JumpCloud devices from a CSV file created using the New-JCDeviceUpdateTemplate function. | ||
|
||
## SYNTAX | ||
|
||
### GUI (Default) | ||
``` | ||
Update-JCDeviceFromCSV [-CSVFilePath] <String> [<CommonParameters>] | ||
``` | ||
|
||
### force | ||
``` | ||
Update-JCDeviceFromCSV [-CSVFilePath] <String> [-force] | ||
[<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
The Update-JCDeviceFromCSV bulk sets device attributes via a CSV input. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
```powershell | ||
PS C:\> Update-JCDeviceFromCSV ./JCDeviceUpdateImport_12-11-2024.csv | ||
``` | ||
|
||
Updates devices from the .csv file 'JCDeviceUpdateImport_12-11-2024.csv' | ||
|
||
### Example 2 | ||
```powershell | ||
PS C:\> Update-JCDeviceFromCSV ./JCDeviceUpdateImport_12-11-2024.csv -Force | ||
``` | ||
|
||
Uses the 'Force' parameter to skip the GUI and update devices from the file 'JCDeviceUpdateImport_12-11-2024.csv' | ||
|
||
## PARAMETERS | ||
|
||
### -CSVFilePath | ||
The full path to the CSV file you wish to import. | ||
You can use tab complete to search for .csv files. | ||
|
||
```yaml | ||
Type: System.String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 0 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -force | ||
A SwitchParameter which suppresses the GUI and data validation when using the Update-JCDeviceFromCSV command. | ||
```yaml | ||
Type: System.Management.Automation.SwitchParameter | ||
Parameter Sets: force | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### None | ||
## OUTPUTS | ||
### System.Object | ||
## NOTES | ||
## RELATED LINKS |
Oops, something went wrong.