-
Notifications
You must be signed in to change notification settings - Fork 0
Set AvmRemoteAccessConfig
Action: SetConfig
Available on: ✅ FRITZ!Box / 🚫 FRITZ!Repeater
Status: ✅
Remote access: ✅
Required rights: 🔧
This function configures one user for remote access from internet.
The user will have box configuration rights from internet on success.
The argument Username may be an username or an email address.
The argument Port value must be in the ranges 1 - 65535.
A disabled user with the matching name will be enabled.
An existing user which has been used last for this service can be renamed by this action.
Input:
Data type | Variable | Example or Description |
---|---|---|
Boolean | NewEnabled | 1 |
Ushort | NewPort | 12345 |
String | NewUsername | RemoteUser |
SecureString | NewPassword | <SecureString> |
Output:
Data type | Variable | Example |
---|---|---|
String | u | urn:dslforum-org:service:X_AVM-DE_RemoteAccess:1 |
Set-AvmRemoteAccessConfig
[-Insecure]
[-RemoteAccess]
[-Url <String>]
[-Port <Ushort>]
[-Credential <PSCredential>]
[-NewEnabled <Boolean>]
[-NewPort <Ushort>]
[-NewUsername <String>]
[-NewPassword <SecureString>]
This example describes how to run the command using a valid certificate and remote access.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
[SecureString]$NewPassword = Get-Content -Path "${env:APPDATA}\PScred\function-password.txt" | ConvertTo-SecureString
$splatParameters = @{
RemoteAccess = $true
Url = "https://myfritzaddress12.myfritz.net"
Port = 443
Credential = $Credential
NewEnabled = 1
NewPort = 12345
NewUsername = "RemoteUser"
NewPassword = $NewPassword
}
Set-AvmRemoteAccessConfig @splatParameters
This example describes how to run the command using local connection with a valid certificate.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
[SecureString]$NewPassword = Get-Content -Path "${env:APPDATA}\PScred\function-password.txt" | ConvertTo-SecureString
$splatParameters = @{
Url = "https://fritz.box"
Port = 49443
Credential = $Credential
NewEnabled = 1
NewPort = 12345
NewUsername = "RemoteUser"
NewPassword = $NewPassword
}
Set-AvmRemoteAccessConfig @splatParameters
IP address can be used instead of DNS name.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
[SecureString]$NewPassword = Get-Content -Path "${env:APPDATA}\PScred\function-password.txt" | ConvertTo-SecureString
$splatParameters = @{
Url = "https://192.168.178.1"
Port = 49443
Credential = $Credential
NewEnabled = 1
NewPort = 12345
NewUsername = "RemoteUser"
NewPassword = $NewPassword
}
Set-AvmRemoteAccessConfig @splatParameters
This example describes how to run the command using local connection without a valid certificate.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
[SecureString]$NewPassword = Get-Content -Path "${env:APPDATA}\PScred\function-password.txt" | ConvertTo-SecureString
$splatParameters = @{
Insecure = $true
Url = "http://fritz.box"
Port = 49000
Credential = $Credential
NewEnabled = 1
NewPort = 12345
NewUsername = "RemoteUser"
NewPassword = $NewPassword
}
Set-AvmRemoteAccessConfig @splatParameters
IP address can be used instead of DNS name.
[PSCredential]$Credential = Import-Clixml -Path "${env:APPDATA}\PScred\avmtools-credential.xml"
[SecureString]$NewPassword = Get-Content -Path "${env:APPDATA}\PScred\function-password.txt" | ConvertTo-SecureString
$splatParameters = @{
Insecure = $true
Url = "http://192.168.178.1"
Port = 49000
Credential = $Credential
NewEnabled = 1
NewPort = 12345
NewUsername = "RemoteUser"
NewPassword = $NewPassword
}
Set-AvmRemoteAccessConfig @splatParameters
Copyright ©️ 2020 Gincules. All rights reserved.
- Home
- AppSetup
- Auth
- Dect
- DeviceConfig
- DeviceInfo
- Filelinks
- Homeauto
- Homeplug
- HostFilter
- Hosts
- Find-AvmHostUpdate
- Get-AvmHostAutoWakeOnLanByMac
- Get-AvmHostChangeCounter
- Get-AvmHostGenericHostEntry
- Get-AvmHostListPath
- Get-AvmHostMeshListPath
- Get-AvmHostNumberOfEntry
- Get-AvmHostSpecificEntryByIp
- Get-AvmHostSpecificHostEntry
- Set-AvmHostAutoWakeOnLanByMac
- Set-AvmHostNameByMac
- Start-AvmHostWakeOnLanByMac
- Update-AvmHost
- LANConfigSecurity
- LANEthernetInterfaceConfig
- LANHostConfigManagement
- Layer3Forwarding
- ManagementServer
- MyFritz
- OnTel
- Enable-AvmOnTel
- Enable-AvmOnTelByIndex
- Enable-AvmOnTelConfigByIndex
- Enable-AvmOnTelDeflection
- Get-AvmOnCallBarringEntry
- Get-AvmOnTelBarringEntryByNum
- Get-AvmOnTelCallBarringList
- Get-AvmOnTelCallList
- Get-AvmOnTelDectHandsetInfo
- Get-AvmOnTelDectHandsetList
- Get-AvmOnTelDeflection
- Get-AvmOnTelDeflectionById
- Get-AvmOnTelInfo
- Get-AvmOnTelInfoByIndex
- Get-AvmOnTelNumberOfDeflection
- Get-AvmOnTelNumberOfEntry
- Get-AvmOnTelPhonebookEntry
- Get-AvmOnTelPhonebookEntryUid
- Get-AvmOnTelPhonebookList
- Get-AvmOnTelPhonelist
- New-AvmOnTelPhonebook
- Remove-AvmOnTelByIndex
- Remove-AvmOnTelCallBarringEntryUid
- Remove-AvmOnTelPhonebook
- Remove-AvmOnTelPhonebookEntry
- Remove-AvmOnTelPhoneEntryByUid
- Set-AvmOnTelCallBarringEntry
- Set-AvmOnTelConfig
- Set-AvmOnTelDectHandsetPhonebook
- Set-AvmOnTelPhonebookEntry
- Set-AvmOnTelPhonebookEntryUid
- RemoteAccess
- Speedtest
- Storage
- TAM
- Time
- UPnP
- UserInterface
- VoIP
- Add-AvmVoipAccount
- Get-AvmVoipAccount
- Get-AvmVoipAlarmClock
- Get-AvmVoipClient
- Get-AvmVoipClient2
- Get-AvmVoipClient3
- Get-AvmVoipClientByIp
- Get-AvmVoipClients
- Get-AvmVoipCommonAreaCode
- Get-AvmVoipCommonCountryCode
- Get-AvmVoipDialConfig
- Get-AvmVoipEnableAreaCode
- Get-AvmVoipEnableCountryCode
- Get-AvmVoipExistingNumbers
- Get-AvmVoipInfo
- Get-AvmVoipInfoEx
- Get-AvmVoipMaxNumber
- Get-AvmVoipNumber
- Get-AvmVoipNumberOfAlarmClock
- Get-AvmVoipNumberOfClient
- Get-AvmVoipNumberOfNumber
- Get-AvmVoipPhonePort
- Remove-AvmVoipAccount
- Remove-AvmVoipClient
- Set-AvmVoipAlarmClockEnable
- Set-AvmVoipClient
- Set-AvmVoipClient2
- Set-AvmVoipClient3
- Set-AvmVoipClient4
- Set-AvmVoipCommonAreaCode
- Set-AvmVoipCommonCountryCode
- Set-AvmVoipConfig
- Set-AvmVoipDelayedCallNotification
- Set-AvmVoipDialConfig
- Set-AvmVoipEnableAreaCode
- Set-AvmVoipEnableCountryCode
- Start-AvmVoipDial
- Stop-AvmVoipDial
- WANCommonInterfaceConfig
- WANDSLInterfaceConfig
- WANDSLLinkConfig
- WANEthernetLinkConfig
- WANIPConnection
- Add-AvmIpPortMapping
- Get-AvmIpDnsServer
- Get-AvmIpExternalAddress
- Get-AvmIpGenericPortMappingEntry
- Get-AvmIpInfo
- Get-AvmIpConnectionTypeInfo
- Get-AvmIpNatRsipStatus
- Get-AvmIpPortMappingEntry
- Get-AvmIpSpecificPortMappingEntry
- Get-AvmIpStatusInfo
- Remove-AvmIpPortMapping
- Set-AvmIpConnectionTrigger
- Set-AvmIpConnectionType
- Set-AvmIpIdleDisconnectTime
- Set-AvmIpRouteProtocolRx
- Start-AvmIpConnection
- Stop-AvmIpConnection
- WANPPPConnection
- Add-AvmPppPortMapping
- Get-AvmPppAutoDisconnectTimeSpan
- Get-AvmPppDnsServer
- Get-AvmPppExternalIpAddress
- Get-AvmPppGenericPortMappingEntry
- Get-AvmPppInfo
- Get-AvmPppLinkLayerMaxBitRate
- Get-AvmPppNatRsipStatus
- Get-AvmPppPortMappingNoOfEntry
- Get-AvmPppSpecificPortMappingEntry
- Get-AvmPppStatusInfo
- Get-AvmPppTypeInfo
- Get-AvmPppUserName
- Remove-AvmPppPortMapping
- Set-AvmPppAutoDisconnectTimeSpan
- Set-AvmPppIdleDisconnectTime
- Set-AvmPppPassword
- Set-AvmPppRouteProtocolRx
- Set-AvmPppTrigger
- Set-AvmPppType
- Set-AvmPppUserName
- Start-AvmPppConnection
- Stop-AvmPppConnection
- WebDAVClient
- WLANConfiguration
- Get-AvmWlanBeaconAdvertisement
- Get-AvmWlanBeaconType
- Get-AvmWlanBssid
- Get-AvmWlanChannelInfo
- Get-AvmWlanConfigurationInfo
- Get-AvmWlanConnectionInfo
- Get-AvmWlanDeviceListPath
- Get-AvmWlanExternalInfo
- Get-AvmWlanGenericDeviceInfo
- Get-AvmWlanHybridMode
- Get-AvmWlanIptvOptimized
- Get-AvmWlanNightControl
- Get-AvmWlanPacketStatistic
- Get-AvmWlanSecruityProperty
- Get-AvmWlanSecurityKey
- Get-AvmWlanSpecificDeviceInfo
- Get-AvmWlanSpecificDeviceInfoByIp
- Get-AvmWlanSsid
- Get-AvmWlanStatistic
- Get-AvmWlanTotalAssociation
- Get-AvmWlanWepKeyIndex
- Get-AvmWlanWpsInfo
- Set-AvmWlanConfig
- Set-AvmWlanBasBeaconSecProperty
- Set-AvmWlanBeaconAdvertisment
- Set-AvmWlanBeaconType
- Set-AvmWlanChannel
- Set-AvmWlanDefaultWepKeyIndex
- Set-AvmWlanEnable
- Set-AvmWlanGlobalEnable
- Set-AvmWlanHighFrequencyBand
- Set-AvmWlanHybridMode
- Set-AvmWlanIptvOptimized
- Set-AvmWlanSsid
- Set-AvmWlanStickSurfEnable
- Set-AvmWlanWepSecurityKey
- Set-AvmWlanWpsConfig