There's a new home for Articles. Find Articles on Our Product Support Page.
I have a script i am trying to get working, which is designed to move a specific device ID to a specific virtual group. I have several other API methods working properly in power-shell, but the POST /devicegroups/{path}/members is not wanting to play nice. Below is my redacted code: param ( [parameter(mandatory = $true)] [string]$apiToken, [parameter(mandatory = $true)] [string]$DeviceID, [switch]$disable ) $Header = @{ "Content-Type" = "text/json" "Authorization" = "Bearer $($apitoken)" } $DeviceIDs = @("$($DeviceID)") if ($disable) { $groupPath = "referenceId:9959e8d1-4878-41e4-ba2d-4765b45f48d3" $body = @{ "GroupPath" = $groupath "deviceIds" = $DeviceID } $groupPath = [System.Web.HttpUtility]::UrlEncode($groupPath) $workingURL = "https://###REMOVED###/MobiControl/api/devicegroups/$($grouppath)/members" Write-verbose $body write-verbose $DeviceID $result = Invoke-restmethod -Uri $workingURL -Method POST -Headers $Header -Body $body $groupPath = "referenceId:23429449-fa78-44b6-9896-65499fe7b27d" $body = @{ "GroupPath" = $groupath "deviceIds" = $DeviceID } $groupPath = [System.Web.HttpUtility]::UrlEncode($groupPath) $workingURL = "https://###REMOVED###/MobiControl/api/devicegroups/$($grouppath)/members" Write-verbose $body write-verbose $DeviceID $result = Invoke-restmethod -Uri $workingURL -Method POST -Headers $Header -Body $body return $result } else { $groupPath = "referenceId:9959e8d1-4878-41e4-ba2d-4765b45f48d3" $body = @{ "GroupPath" = $groupPath "deviceIds" = $DeviceID } $groupPath = [System.Web.HttpUtility]::UrlEncode($groupPath) $workingURL = "https://###REMOVED###/MobiControl/api/devicegroups/$($grouppath)/members" Write-output $body write-verbose $DeviceID $result = Invoke-restmethod -Uri $workingURL -Method POST -Headers $Header -Body $body return $result } } After running it i receive the following api response: Invoke-restmethod : { "$type": "ErrorDetails", "ErrorCode": 0, "Message": "Contract validation failed", "Data": [ "deviceIds: Error parsing value" ], "HelpLink": null} No matter how i pass the deviceids value it always returns a parse error. I have tried the following the device ID in an array the device ID in quotes device ID in square brackets those three converted to json The only time i have gotten it to work was on the API documentation page on my server
Hi, Into the LockDown/Kiosk i have add "Launch://com.android.chrome" and it's works properly. But now i would like to Chrome browser open automaticaly with https://my_url. How can i do that? :-(
Any one has changed SHA1 certificate to SHA2 Successful. What precaution need to be taken?? Any challenges you faced ?
Hi, I configured a lockdown for Samsung tablets. Right now it looks like this I want to have the "Icons" without the white "background". How can I edit this so it is transparent? Also: Under "Horsch", the icon doesn't get shown, although I marked an Icon as active and also it doesn't open a browser. I used: browsers://htmllink Please find the HTML code as follows "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Android/Desktop Lockdown</title><style type="text/css">html, body { height: 99.3%; }body {margin: 4px 4px 0px 4px;background-image: url('<MCImg_HORSCH_FarmingHero_Teaser_small.jpg>');background-position: center;background-size: cover; }#wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -4em;}#Header { background: url('<MCImg_BkgHeaderRepeat.png>') repeat-x; height: 71px; width: 100%;}#Header .lockicon { background: url('<MCImg_HeaderLock.png>') no-repeat; width: 69px; height: 71px; float: left; position: absolute;}#Header .Title { font: bold 30px arial,sans-serif; text-align: center; line-height: 71px; color: #fff; margin-left: 69px; display:block;}#Main { text-align:center; margin: 4px 0 100px;}#Main .row { display:table; white-space:nowrap; margin: 0px auto;}#Main .row ul { list-style: none; margin:0; padding:0; display: table-row; white-space:nowrap;}#Main .row ul br {clear: both;}#Main .row ul li { width: 149px; height: 153px; padding: 2px; /* border: 2px #666666 solid; */ margin: 2px 4px 2px 0px; vertical-align: middle; text-align: center; background-color: #FFF; position: relative; display:table-cell; float:left}#Main .row ul li img { border: 0; width: 86px; height: 86px; padding: 12px;}#Main .row ul li .txt { color: #666666; font: bold 16px arial,sans-serif;}#Footer { font: bold 30px arial,sans-serif; color: #fff; position:fixed; bottom:0; margin:0; padding:0; width:100%; height: 57px;}/* IE7+ fix */html > body #Footer { margin:0 0 0 -4px; padding:0 4px;}#Footer .FooterContainer { margin:0; display:block; overflow:hidden; height: 57px; line-height: 57px; background: url('<MCImg_BkgFooterRepeat.jpg>') repeat-x; }/* IE7+ fix */html > body #Footer .FooterContainer { margin:0 8px 0 0; }#Footer .FooterContainer .FooterBg { background: url('<MCImg_poweredbysoti.jpg>') no-repeat; width: 426px; height: 57px; float: right;}#Footer, .push { height: 2em; height: 57px \0/;}</style><!--[if lt IE 8]><style type="text/css">#Main .row ul {display:inline-block;}#Main .row ul{display:inline; }#Main .row ul li{display:inline-block}#Main .row ul li{ display:inline;}#Main .row ul a{ display:inline-block;}#Main{text-align:center}</style><![endif]--></head><body><div id="wrapper"> <div id="Header"> <div class="lockicon"></div> <span class="Title">Horsch</span> </div> <div id="Main"> <div class="row"> <ul> <!-- To display the image for the item rather than use the EXE icon use this line instead <li><A href ="<MCLink0>"><img src="<MCDispImg0>" /><div class="txt"><MCDISP0></div></a></li>--> <li><A href ="<MCLink0>"><img src="<MCExeIcon0>" onerror="this.style.display='none'" /><div class="txt"><MCDISP0></div></a></li> <li><A href ="<MCLink1>"><img src="<MCExeIcon1>" onerror="this.style.display='none'" /><div class="txt"><MCDISP1></div></a></li> </ul> </div> <div class="row"> <ul> <li><A href ="<MCLink2>"><img src="<MCExeIcon2>" onerror="this.style.display='none'" /><div class="txt"><MCDISP2></div></a></li> <li><A href ="<MCLink3>"><img src="<MCExeIcon3>" onerror="this.style.display='none'" /><div class="txt"><MCDISP3></div></a></li> </ul> </div> <div class="row"> <ul> <li><A href ="<MCLink4>"><img src="<MCExeIcon4>" onerror="this.style.display='none'" /><div class="txt"><MCDISP4></div></a></li> <li><A href ="<MCLink5>"><img src="<MCExeIcon5>" onerror="this.style.display='none'" /><div class="txt"><MCDISP5></div></a></li> </ul> </div> <div class="row"> <ul> <li><A href ="<MCLink6>"><img src="<MCExeIcon6>" onerror="this.style.display='none'" /><div class="txt"><MCDISP6></div></a></li> </ul> </div> </div> <div class="push"></div></div><div id="Footer"> <div class="FooterContainer"> <div class="FooterBg"></div> </div></div></body></html>"
I am trying to "post" deploy terms and conditions to our handsets, the problem is that we havent done this in the past but would like to post build deploy these to the handsets. we also pre-build the device prior to issuing the device so the user only gets the completed build they wouldnt see the T's & C's duiring this process. From my understanding from the help files is that it can only be done during the enrollment phase of the build and as we pre-enroll the device for the user again wouldnt see them
Good afternoon SOTI Support . We want your usual support for the enable following features: How to extract report for devices that connect with and without SIM card? How to Close formatting the devices from users and make it centralized for admins only? How to extract phone and internet log report for devices ?
Hi. Pertaining to windows ce devices.... If I use abortpkg in prei script, it marks it as Failed to Install (Prescript Abort) in the device configuration tab. When it checks-in during the next scheduled update, will it try to re-install the package automatically (i do have it set to auto-install in the profile|assign|options tab)? If not, any idea how I can get it to re-try those failed installs automatically during next scheduled checkin/update? tia.
Hello, we have a problem with the remote connection with some devices. When we try to connect with these devices, the screen stills black. Another device, with the same profile, rule, group, model and Android version (SAMSUNG XCover4s with Android 10 in Full Managed Device mode) runs OK. We checked 'allow screen capture' option and tried to reset the remote connection with the script: _resetfailedrcdetectionflagrestartagent We work with MC v15.1.1 (on-premise). Neither power button nor homescreen button respond to click in the remote control mask. Any idea? Thanks a lot
Looking for 13.3
Hi, I have a Zebra ET56, but no profiles etc. are getting installed. Not matter what I'm doing. Any idea? Thanks,
Hello everyone, I am trying to grant WRITE_SETTINGS permission to camera app on a Samsung device enrolled as Work Managed device (AE). I am using the command afw_set_permission_grant_state com.sec.android.app.camera android.permission.WRITE_SETTINGS allow but the permission does not change. What am I doing wrong? :)
Is it possible to send a script or have a package, that will create a text file on Zebra Android 8.1 device which will contain device's name %DEVICENAME% ? Reason behind is that my company is using in-house built app that has it's own launcher. So Kiosk mode from SOTI will not be used. They would like to have device name shown in their app, but how to make it happen? My idea would be to create on all devices a text file that will only have %DEVICENAME% written in it. So that they can make app pull value from that text file in order to show in our app, the device name of it's device. So, is there a way to create such text file on device automatically? Thanks
I an looking a way to launch by script the MDM net.soti.mobicontrol.ui.MainActivity (content library. activity on mobicontrol) directly from lockdown. If it is possible, I would like to know if it would be possible to designate a specific file to be opened.
Hello everyone, We are almost closing a deal at Brazil with a new customer, this customer has SQL 2019 paid and deployed. I can use this version to this new installation? SOTI guarantees support if I use this version? Regards.
Hi, we have a few users that are enrolled through DEP. They have App Catalog pushed to their phones, in total we have about 5000 cell phones. 3 of them are unable to download apps from the catalog. They have a popup in App Catalog saying "application could not be installed at this time. Please contact your Administrator.user is connected to WiFi. We have factory reset the device, still unable to install the necessary apps. Any suggestions? Let me know if you need any further info iPhone 7 OS 13.5.1 App trying to install: Manadatory apps Cisco Any connect version through VPP is 4.6.03050 Skype for business VPP 6.22.3 Thank you,
Top-tier experts who are delivering outstanding content. Should have more than 7000 points.
Experts who are consistent with great content. Should have more than 1000 points.
Highly experienced members with valuable inputs. Should have more than 700 points.
Beginners taking the initiative. Should have more than 500 points.
New contributors starting their journey. Should have more than 250 points.