Add-SCNetworkConnection
Lägger till en nätverkstjänstanslutning.
Syntax
Add-SCNetworkConnection
[-VMMServer <ServerConnection>]
[-Service] <NetworkService>
-LogicalNetworkDefinition <LogicalNetworkDefinition>
[-IPv4Address <String>]
[-IPv6Address <String>]
[-Description <String>]
-Name <String>
[-ConnectionType <NetworkConnectionType>]
[-NetworkAdapter <NetworkServiceAdapterInfo>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Add-SCNetworkConnection
[-VMMServer <ServerConnection>]
[-Service] <NetworkService>
-VMSubnet <VMSubnet>
[-IPv4Address <String>]
[-IPv6Address <String>]
[-Description <String>]
-Name <String>
[-ConnectionType <NetworkConnectionType>]
[-NetworkAdapter <NetworkServiceAdapterInfo>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
Cmdleten Add-SCNetworkConnection lägger till en nätverkstjänstanslutning.
Parametrar
-ConnectionType
Anger en typ av nätverksanslutning. De acceptabla värdena för den här parametern är:
- Okänt
- FrontEnd
- BackEnd
Type: | NetworkConnectionType |
Accepted values: | Unknown, FrontEnd, BackEnd |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Anger en beskrivning av nätverksanslutningen.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPv4Address
Anger en IPv4-adress.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPv6Address
Anger en IPv6-adress.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Anger en variabel där jobb förloppet spåras och lagras.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogicalNetworkDefinition
Anger en definition av logiskt nätverk (kallas även nätverksplats) som innehåller det undernät som IP-adresspoolen hanterar. Undernätet anges av parametern VMSubnet .
Type: | LogicalNetworkDefinition |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Anger namnet på ett nätverksobjekt.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkAdapter
Anger ett informationsobjekt för nätverkstjänstkortet.
Type: | NetworkServiceAdapterInfo |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Anger ID för tipset om prestanda- och resursoptimering (PRO-tips) som utlöste den här åtgärden. Med den här parametern kan du granska PRO-tips.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Anger att jobbet körs asynkront så att kontrollen återgår till kommandogränssnittet omedelbart.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Service
Anger ett nätverkstjänstobjekt.
Type: | NetworkService |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
Anger ett VMM-serverobjekt (Virtual Machine Manager).
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMSubnet
Anger ett undernätsobjekt för en virtuell dator.
Om du vill hämta ett VMSubnet-objekt använder du cmdleten Get-SCVMSubnet .
Type: | VMSubnet |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |