Open navigation

Set-TPHubNetworkIPV4

Description

Syntax

Example 1

Example 2



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>]


ParameterDescription
-UseDhcp1 = DHCP, 0 = manual network settings (alternative to -Config)
-Addressfixed IP address (with -UseDhcp = 0)
-Netmasksubnet mask (with -UseDhcp = 0)
-Gatewaydefault gateway (optional with -UseDhcp = 0)
-Dns1first DNS server (optional with -UseDhcp = 0)
-Dns2second DNS server (optional with -UseDhcp = 0)
-Suffixsuffix or DNS search domain (optional with -UseDhcp = 0)
-ConfigIpv4 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

ThinPrint Hub's PowerShell cmdlet Set-TPHubNetworkIPV4


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

ThinPrint Hub's PowerShell cmdlet Set-TPHubNetworkIPV4: usage of variables 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.