-
Notifications
You must be signed in to change notification settings - Fork 1
Send‑WakeOnLan
Sends a Wake-on-LAN magic packet to wake up a remote computer.
Send-WakeOnLan [-LinkLayerAddress] <String> [[-Broadcast] <String>] [[-Port] <UInt16>] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
The Send-WakeOnLan command sends a Wake-on-LAN (WOL) magic packet to a specified MAC address to wake up a remote computer on the network. The magic packet is sent as a UDP broadcast packet containing the target computer's MAC address repeated 16 times, preceded by six bytes of 0xFF. The target computer must have Wake-on-LAN enabled in its BIOS/UEFI settings and network adapter configuration.
Send-WakeOnLan -LinkLayerAddress '00:11:22:33:44:55'
Sends a Wake-on-LAN packet to the computer with MAC address '00:11:22:33:44:55' using the default broadcast address and port.
Send-WakeOnLan -LinkLayerAddress '00-11-22-33-44-55' -Broadcast '192.168.1.255'
Sends a Wake-on-LAN packet to the computer with MAC address '00-11-22-33-44-55' using a specific subnet broadcast address. (Parameter has alias 'MacAddress'.)
Send-WOL -LinkLayerAddress '001122334455' -Port 7
Sends a Wake-on-LAN packet using the alias 'Send-WOL' to the computer with MAC address '001122334455' on port 7.
'00:11:22:33:44:55', '00-AA-BB-CC-DD-EE' | Send-WakeOnLan -Port 9 -Force
Sends Wake-on-LAN packets to multiple computers by passing MAC addresses through the pipeline, bypassing confirmation prompts with the Force parameter.
Send-WakeOnLan -LinkLayerAddress '00:11:22:33:44:55' -WhatIf
Shows what would happen if the Wake-on-LAN packet was sent without actually sending it.
Specifies the broadcast address to send the Wake-on-LAN packet to. The default value is '255.255.255.255' which broadcasts to the entire local network segment.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: 255.255.255.255
Accept pipeline input: False
Accept wildcard characters: FalseOverrides the confirmation dialog when sending the Wake-on-LAN packet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies the MAC address of the target computer to wake up. The MAC address can be provided in colon-separated (XX:XX:XX:XX:XX:XX) or hyphen-separated (XX-XX-XX-XX-XX-XX) format. This parameter accepts input from the pipeline and has an alias 'MacAddress'.
Type: String
Parameter Sets: (All)
Aliases: MacAddress
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseSpecifies the UDP port number to send the Wake-on-LAN packet to. The default value is 9, which is the standard Wake-on-LAN port. Other commonly used ports are 0 and 7.
Type: UInt16
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: 9
Accept pipeline input: False
Accept wildcard characters: FalsePrompts 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: FalseShows 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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This command requires that the target computer has Wake-on-LAN enabled in both the BIOS/UEFI settings and the network adapter configuration. The computer must also be connected to a power source and have a network connection (wired or wireless, depending on the adapter capabilities).
- Assert-GitLocalChange
- Assert-GitRemote
- Assert-IPv4Address
- Clear-AnsiSequence
- ConvertTo-AnsiSequence
- ConvertTo-AnsiString
- ConvertTo-DifferenceString
- ConvertTo-RelativePath
- Disable-CursorShortcutCode
- Get-ClassAst
- Get-ClassResourceAst
- Get-GitBranchCommit
- Get-GitLocalBranchName
- Get-GitRemote
- Get-GitRemoteBranch
- Get-GitTag
- Get-LinkLayerAddress
- Get-ModuleByVersion
- Get-ModuleFileSha
- Get-ModuleVersion
- Get-NumericalSequence
- Get-PSReadLineHistory
- Get-TextOffset
- Install-ModulePatch
- Invoke-Git
- Invoke-PesterJob
- New-GitTag
- New-SamplerGitHubReleaseTag
- Out-Difference
- Pop-VMLatestSnapshot
- Push-GitTag
- Receive-GitBranch
- Remove-GitTag
- Remove-History
- Remove-PSHistory
- Remove-PSReadLineHistory
- Rename-GitLocalBranch
- Rename-GitRemote
- Request-GitTag
- Resolve-DnsName
- Resume-GitRebase
- Send-WakeOnLan
- Split-StringAtIndex
- Start-GitRebase
- Stop-GitRebase
- Switch-GitLocalBranch
- Test-FileHash
- Test-GitLocalChanges
- Test-GitRemote
- Test-GitRemoteBranch
- Test-IPv4Address
- Update-GitLocalBranch
- Update-RemoteTrackingBranch