external help file | Module Name | online version | schema |
---|---|---|---|
PowerSponse-help.xml |
PowerSponse |
2.0.0 |
Disable a network interface.
Disable-NetworkInterface [[-ComputerName] <String[]>] [[-ComputerList] <String>] [-Method <String>]
[[-Session] <PSSession[]>] [[-Credential] <PSCredential>] [[-InterfaceIndex] <String>]
[[-InterfaceDescription] <String>] [-DisableAll] [-OnlineCheck] [-WhatIf] [-Confirm] [<CommonParameters>]
Disable a network interface.
PS> Get-NetworkInterface -InterfaceDescription "intel"
Time : 19.01.2017 11:58:04
Function : Get-NetworkInterface
ComputerName : localhost
Arguments : InterfaceIndex: , InterfaceDescription: intel, OnlyIndex: False, OnlineCheck: True
Status : pass
Reason : {...}
Search for interfaces on the localhost of which its description contains "intel".
PS> Get-NetworkInterface -InterfaceDescription ".*wireless.*"
Time : 19.01.2017 11:58:04
Function : Get-NetworkInterface
ComputerName : localhost
Arguments : InterfaceIndex: , InterfaceDescription: .*wireless.*, OnlyIndex: False, OnlineCheck: True
Status : pass
Reason : {...}
Search for interfaces on the localhost of which its description contains the regex ".wireless.".
PS> Get-NetworkInterface -ComputerName comp1 -InterfaceIndex 7
Time : 19.01.2017 12:01:59
Function : Get-NetworkInterface
ComputerName : comp1
Arguments : InterfaceIndex: 7, InterfaceDescription: , OnlyIndex: False, OnlineCheck: True
Status : pass
Reason : {Index: 7...}
Search for interfaces of which its index is 7 on the remote host comp1.
PS> Get-NetworkInterface -ComputerName comp1 -Credential $creds -InterfaceDescription ".*"
Time : 19.01.2017 12:04:28
Function : Get-NetworkInterface
ComputerName : comp1
Arguments : InterfaceIndex: , InterfaceDescription: .*, OnlyIndex: False, OnlineCheck: True
Status : pass
Reason : {...}
List every interface from the remote host comp1 and use alternate credentials ("Get-Credential").
File with a list of target computers.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A list of computer names as comma separated list.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Alternate credentials to use.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If multiple network interfaces were found disable them all. Otherwise, the script aborts.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Search string for interface description (also regex possible).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Interface index number to search for.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Use an existing PSSession to execute the commands.
Type: PSSession[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Method to use by the function.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Check if the target hosts are online. Disabling it speeds things up.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).