Jump to content

Trying to use an API to register a device and send enrollment email, but it's not working


Zombie
Go to solution Solved by Sascha Warno,

Recommended Posts

I'm trying to create a powershell script that will register a device and then will send an enrollment email to the user. The script is set for a specific server and then prompts for info (api key, admin u/p, user info, device info). It should be using the correct api to register the device, but I keep getting a "404 not found" error. I'd love if someone had a bit, could look at it and see what I am missing. 

registerdevice6.ps1

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted (edited)
7 hours ago, Sascha Warno said:

the apiUrl parameter is missing system


$apiUrl = "https://APICONSOLEURL/api/system"

 

That was it, thank you for that.

Edited by Zombie
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...