Setting Device AmsNetId

CAUTION

CRASH and Reboot

With actual TwinCAT Versions the command crashes and reboots the device!

PS> Set-AmsNetId -NewId 1.1.1.1.1.1

Changeing AmsNetId of target system.
Change the NetId of system '192.168.0.2.1.1' to '1.1.1.1.1.1'
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
Changing the NetId of system '192.168.0.2.1.1' to '1.1.1.1.1.1' is succeeded. All preexisting connections to this system a invalid now. A reboot of this system is necessary!

Sets the AmsNetId of the Local system to '1.1.1.1.1.1'.