I start in PRTG API and I want to use the power shell to add equipment
I tried to test clone equipment but I can't. I manage to connect to the server and retrieve information and even create a new sensor in a device already created.
equipment I want to clone: Name: 192.168.50.149 IP: 192.168.50149 ID:3225 (URL for ID: http://127.0.0.1/device.htm?id=3225&tabid=1)
IP for the new devices: 192.168.50.150
DestinationId 2229 is my groupe (http://127.0.0.1/group.htm?id=2229&tabid=1)
Code powershell: $newDevice = Get-Device -Id 3225 | Clone-Objet -DestinationId 2229 "192.168.50.149.clone" "192.168.50.150"
when I execute the code I get an error message on "Clone-Object" which did not recognize
Can you tell me where my error is?