Hello,
We need to remove shared credentials (Domain Admin specifically) from our PRTG implementation as part of our security review. I am wanting to automatically rotate Windows credentials for our servers via a scheduled script, but am not finding a way to change device credential settings via the PRTG API. Is this something the PRTG API supports?
Thank you.
Article Comments
Hello,
Thank you for your post.
It is possible to set new Windows credentials using the API. For this you can use the API call:
/api/setobjectproperty.htm?id=id_of_object&name=property_name&value=new_value
For this to work, the inheritance for the credentials needs to be disabled (assuming you already have credentials set, this is not necessary). The "property_name" parameter can be discerned by opening the "Settings" page of an object and looking at the HTML source of the INPUT fields. For example the INPUT field for the "Domain or Computer Name" field is "windowslogindomain_". Leave away the "_" and use the rest ("windowslogindomain") as a value for the "property_name" parameter.
Please use this API call with caution.
Kind regards,
Sasa Ignjatovic, Tech Support Team
Aug, 2020 - Permalink
Hello,
Thank you for your post.
It is possible to set new Windows credentials using the API. For this you can use the API call:
/api/setobjectproperty.htm?id=id_of_object&name=property_name&value=new_value
For this to work, the inheritance for the credentials needs to be disabled (assuming you already have credentials set, this is not necessary). The "property_name" parameter can be discerned by opening the "Settings" page of an object and looking at the HTML source of the INPUT fields. For example the INPUT field for the "Domain or Computer Name" field is "windowslogindomain_". Leave away the "_" and use the rest ("windowslogindomain") as a value for the "property_name" parameter.
Please use this API call with caution.
Kind regards,
Sasa Ignjatovic, Tech Support Team
Aug, 2020 - Permalink