How To | Adding / Removing Routes Because the NetId is missing a broadcast search is necessary what means that the target system must be online available in the network. Add a Route with (N)etwork (A)Address (T)ranslation (NAT) PS> $cred = Get-Credential -Message "Get Credentials" -UserName "UserName" PS> Add-AdsRoute -Credential $cred -NetId 192.168.0.105 -Nat 1.2.3.4.1.1 Name NetId Address Sub TcVersion RTSystem --------------- ----------- ------------- --- --------- ------------ TC3TestA1-CP67x 1.2.3.4.1.1 192.168.0.105 3.1.4024 Win10 (2004) Add a route with a local network address translation (NAT AmsNetId) to project a remote AmsNetId (RemoteNetId) locally to a different address.
Adding a (S)hared (C)ertificate (A)uthority route PS> $route = get-adsroute CX_01234 -all PS> $route Name NetId TLS Address FingerPrint ---- ----- --- ------- ----------- CX_01234 172.17.60.197.1.1 X 172.17.60.197 7835dae7a079c4f296c84109b2e6d7156b66e6b cc39e386c3576d7535… PS> $route | add-adsroute -SharedCertAuth -IgnoreCN -passthru Name NetId TLS Address FingerPrint ---- ----- --- ------- ----------- CX_01234 172.17.60.197.1.1 X 172.17.60.197 7835dae7a079c4f296c84109b2e6d7156b66e6b cc39e386c3576d7535… Broadcast search for a Device with Hostname CX_01234 and adding of a ADSSecure route via 'Shared Certificate Authority' (SCA) to the local system.
Both systems must contain certificates derived from the same root CA certificate. Adding a route with UserName/Password (P)re (S)hared (Key) (PSK) PS> $cred = get-credential UserName: MyUser Password: ******** PS> $route = get-adsroute CX_01234 -all PS> $route Name NetId TLS Address FingerPrint ---- ----- --- ------- ----------- CX_01234 172.17.60.197.1.1 X 172.17.60.197 7835dae7a079c4f296c84109b2e6d7156b66e6b cc39e386c3576d7535… PS> $route | add-adsroute -PreSharedKey -Credential $cred Name NetId TLS Address FingerPrint ---- ----- --- ------- ----------- CX_01234 172.17.60.197.1.1 X 172.17.60.197 7835dae7a079c4f296c84109b2e6d7156b66e6b cc39e386c3576d7535…
Broadcast search for a Device with Hostname CX_01234 and adding of a ADSSecure route via 'Preshared key' (UserName, Password) to the local system. The target system must already contain the preshared key configuration (as PSK Identity/Password) in its StaticRoutes.xml configuration file. Adding a route with BinaryKey (P)re (S)hared (Key) (PSK) PS> $route = get-adsroute CX_01234 -all PS> $route Name NetId TLS Address FingerPrint ---- ----- --- ------- ----------- CX_01234 172.17.60.197.1.1 X 172.17.60.197 7835dae7a079c4f296c84109b2e6d7156b66e6b cc39e386c3576d7535… PS> $route | add-adsroute -PreSharedKey -Identity MyUser - TE1000 18 Version: 1.5.0