Converting msRADIUSFramedIPAddress to IPV4 PowerShell

The other day I was asked the to run a report by security team on which AD users had dial-in configured for a static IP address and what IP address was assigned, if any.

I did a quick Get-Aduser on the supplied test account and here are the results:

GivenName               : Chris
msRADIUSFramedIPAddress : 1869573999
Name                    : Chris
ObjectClass             : user

Well that’s odd  “1869573999″ does not look like an IP address to me.  A quick  MSDN for more information.  Not much there UGH.  I was able to find several scripts to converts IPv4 address to binary or decimal.  After much trial and error I was able to come up with the following:

To use the function you only need to supply the uses “msRADIUSFramedIPAddress” value.  To make it more useful added some PSObject and ran it through a for loop using GET-Aduser.

Now when I run the script it pulls back a list of users with a human readable IPV4 address.

That is it for now.

Thanks,

Chris

 

 

By |2016-08-26T13:18:09+00:00August 26th, 2016|Uncategorized|0 Comments

About the Author:

Chris Meyers
Consultant – Model Technology Solutions Chris has more than 20 years of industry experience. Prior to his work with Model, Chris worked for one of St. Louis’ largest law firms where his responsibilities ranged from implementing Citrix to automating desktop deployments to virtualizing the datacenter. He has also worked with Microsoft’s Rapid Deployment Program to bring new technologies to one of the three largest consumer credit reporting agencies in the US.

Model Technology

Let us help you get your end point and data center strategy on cruise control!  Ask about our Calibration Assessment.

CONTACT US

  • 12125 Woodcrest Executive Drive, Ste. 204 Creve Coeur, MO 63141
  • (314) 254-4138
  • sales@model-technology.com

RECENT TWEETS