Set-TPHubNetworkIPV4

70 views 0

Description

Modifies the ThinPrint Hub’s Ipv4 configuration (see Network).

See also Get-TPHubTaskResult.

Syntax

Set-TPHubNetworkIPV4 -UseDhcp <bool> -Address <string> -Netmask <string> [-Gateway <string>]
[-Dns1 <string>] [-Dns2 <string>] [-Suffix <string>] -Config <variable> [-Proxy <string>]

Parameter Description
-UseDhcp 1 = DHCP, 0 = manual network settings (alternative to -Config)
-Address fixed IP address (with -UseDhcp = 0)
-Netmask subnet mask (with -UseDhcp = 0)
-Gateway default gateway (optional with -UseDhcp = 0)
-Dns1 first DNS server (optional with -UseDhcp = 0)
-Dns2 second DNS server (optional with -UseDhcp = 0)
-Suffix suffix or DNS search domain (optional with -UseDhcp = 0)
-Config Ipv4 configuration defined through variable (alternative to -Dhcp)
-Proxy • optional (from firmware version 1.1): proxy server address
• can also be specified globally using Set-TPHubProxy

Example 1

Get-TPHubNetworkIPV4
Set-TPHubNetworkIPV4 -UseDhcp 1
Get-TPHubNetworkIPV4

switching network from manual configuration to DHCP

Example 2

$a = Get-TPHubNetworkIPV4
$a
$b = "Explicit"
$c = "192.168.149.18"
$a.Mode = $b
$a.DnsSrv2 = $c
Set-TPHubNetworkIPV4 -Config $a or $a | Set-TPHubNetworkIPV4
Get-TPHubNetworkIPV4

switching network from DHCP to manual configuration and modifying a DNS server

Previous Page
Next Page

Was this helpful?