Im trying to get the parent tag of a device using the api in a powershell script. PRTG is at the newest update and you wont get a parent tag until you got on the Web UI on the device Settings and just click a few times around. Could it be that it is a bug or am i just doing something wrong?
This one works but only if you visited the Device on the WebUI
Invoke-WebRequest -Uri "https:// **prtg** /api/getobjectproperty.htm?id= **deviceid** &name=parenttags&username=prtgadmin&passhash= **passwordhash**"