I'm trying to create a powershell script for configuring a specific VPN remote access server in a Windows Server 2012-R2, the following command works fine but how can i configure accounting radius too?
Install-RemoteAccess -PassThru -VpnType VPN -MsgAuthenticator Enabled -RadiusPort 1645 -RadiusScore 30 -RadiusServer 127.0.0.1 -RadiusTimeout 10 -SharedSecret "password" -IPAddressRange "10.1.1.1", "10.1.1.254"
Cause i tried Set-RemoteAccessRadius
or Add-RemoteAccessRadius
but i get errors in the both commands! for example:
A RADIUS server cannot be added because RADIUS accounting is not enabled.
The RADIUS server on localhost is not configured for the specified purpose. Settings were not applied.
I don't know how to enable RADIUS accounting first so i can add my RADIUS accounting!
-AccountingOnOffMsg
argument when using theSet-RemoteAccessRadius
cmdlet... technet.microsoft.com/en-us/library/hh918417(v=wps.630).aspx and aiotestking.com/microsoft/… may be of use?The RADIUS server on localhost is not configured for the specified purpose. Settings were not applied.
Set-RemoteAccessRadius
? I wonder if it's if you're missing the-Purpose
argument - can't say until we have the string :)Set-RemoteAccessRadius -ServerName 127.0.0.1 -Purpose Accounting -Timeout 10 -Port 1646 -SharedSecret "password" -PassThru -AccountingOnOffMsg Enabled
Set-RemoteAccessAccounting
cmdlet be of use? technet.microsoft.com/itpro/powershell/windows/remoteaccess/…