1

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!

7
  • A quick look did you use the -AccountingOnOffMsg argument when using the Set-RemoteAccessRadius cmdlet... technet.microsoft.com/en-us/library/hh918417(v=wps.630).aspx and aiotestking.com/microsoft/… may be of use?
    – Kinnectus
    Commented May 25, 2017 at 13:03
  • @BigChris Yes i did, and i get this error : The RADIUS server on localhost is not configured for the specified purpose. Settings were not applied.
    – HBasiri
    Commented May 25, 2017 at 13:09
  • What string do you have for the Set-RemoteAccessRadius? I wonder if it's if you're missing the -Purpose argument - can't say until we have the string :)
    – Kinnectus
    Commented May 25, 2017 at 13:10
  • @BigChris Set-RemoteAccessRadius -ServerName 127.0.0.1 -Purpose Accounting -Timeout 10 -Port 1646 -SharedSecret "password" -PassThru -AccountingOnOffMsg Enabled
    – HBasiri
    Commented May 25, 2017 at 13:13
  • 1
    Would the Set-RemoteAccessAccounting cmdlet be of use? technet.microsoft.com/itpro/powershell/windows/remoteaccess/…
    – Kinnectus
    Commented May 25, 2017 at 13:18

1 Answer 1

1

Using the Set-RemoteAccessAccounting cmdlet in PowerShell seems to have resolved the user's problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .