sdmapplyprofile (applying or removing an iOS profile)
This command applies an iOS profile to an iOS device, or removes an iOS profile that has been applied to an iOS device.
- Organization of this page
Functionality
This command issues iOS profile application requests or removal requests to iOS devices specified in an iOS profile information file.
Format
sdmapplyprofile -file iOS-profile-information-file
Arguments
- -file iOS-profile-information-file
-
Specify an iOS profile information file that lists the iOS devices to which to apply and from which to remove iOS profiles, as an absolute path of 259 or fewer bytes.
The character encoding of the iOS profile information file is UTF-8.
Storage location
JP1/ITDM2 - SDM (Smart Device Manager)-installation-folder\mgr\bin
Execution permissions
Administrator permissions (this command is executed from the administrator's console if the Windows UAC function is enabled)
Notes
-
To execute this command, the smart device manager and the service of the communication server must be running.
-
The command applies and removes iOS profiles in the order in which they appear in the iOS profile information file. If an attempt to apply or remove an iOS profile fails, processing continues with the next line and the command still terminates normally.
-
If you attempt to remove the only iOS profile that is applied to a particular iOS device, the command will fail to remove the iOS profile. However, the command will still terminate normally.
Return values
Return value |
Description |
---|---|
0 |
The command finished normally. |
11 |
The format for specifying the command arguments is invalid. Alternatively, the length of the file name specified for the command argument exceeds the upper limit. |
12 |
You do not have the permissions to execute this command. |
13 |
The specified server is not correct, or the operating environment of JP1/ITDM2 - SDM (Smart Device Manager) is invalid. |
14 |
The file does not exist, or you do not have permission to access it. |
27 |
The format of the file is invalid. |
28 |
A specified application or smart device was not found. |
30 |
The database cannot be accessed. |
150 |
Other error occurred. |
253 |
The service has not started. |
Example
The following shows an example of using the command to apply iOS profiles to the iOS devices specified in the iOS profile information file C:\temp\profile.csv#.
sdmapplyprofile -file C:\temp\profile.csv
- #: The contents of the C:\temp\profile.csv file are as follows:
Operation,Profile name,Device name,Comment apply,profile_A,Device1, apply,profile_A,Device2,
Related Topics