Discussion:
.NET API Interface to access NPS
(too old to reply)
NAPGuru
2007-11-20 12:03:02 UTC
Permalink
Hi,
How do we access the NPS through .NET / SDK program?.
ServerMangercmd.exe helps to access and control the NPS. But it may be
costlier operation for controlling the server through UI.

Please give a sample code/program to access the NPS and print the
configuration with out using servermangercmd.exe.

Thanks and regards,
Bala
James McIllece [MS]
2007-11-26 20:17:34 UTC
Permalink
Post by NAPGuru
Hi,
How do we access the NPS through .NET / SDK program?.
ServerMangercmd.exe helps to access and control the NPS. But it may be
costlier operation for controlling the server through UI.
Please give a sample code/program to access the NPS and print the
configuration with out using servermangercmd.exe.
Thanks and regards,
Bala
Hi Bala --

Not sure I understand the question as I am not a dev, however you can use
the netsh nps commands to display and/or save the configuration to a file
(from which you could print), and to manage the NPS server in general.

Hope that helps --
--
James McIllece, Microsoft

Please do not send email directly to this alias. This is my online account
name for newsgroup participation only.

This posting is provided "AS IS" with no warranties, and confers no rights.
NAPGuru
2007-11-27 06:46:00 UTC
Permalink
Thanks James for the response.
Yes. We can use netsh NPS command to control and retreive NPS server, which
still use command line interface. But it could be helpful for us to get the
sample .ASP and C# code using SDOIASLib.

Thanks and Regards,
Bala
Post by James McIllece [MS]
Post by NAPGuru
Hi,
How do we access the NPS through .NET / SDK program?.
ServerMangercmd.exe helps to access and control the NPS. But it may be
costlier operation for controlling the server through UI.
Please give a sample code/program to access the NPS and print the
configuration with out using servermangercmd.exe.
Thanks and regards,
Bala
Hi Bala --
Not sure I understand the question as I am not a dev, however you can use
the netsh nps commands to display and/or save the configuration to a file
(from which you could print), and to manage the NPS server in general.
Hope that helps --
--
James McIllece, Microsoft
Please do not send email directly to this alias. This is my online account
name for newsgroup participation only.
This posting is provided "AS IS" with no warranties, and confers no rights.
Damu
2010-03-23 10:41:03 UTC
Permalink
Hi Bala,

As you have posted this query regarding .net Api for accessing NPS server
configuration.

Can you please let me know about this if you have got anything.

It is really urgent for me.

Thanks in advance.
Post by NAPGuru
Hi,
How do we access the NPS through .NET / SDK program?.
ServerMangercmd.exe helps to access and control the NPS. But it may be
costlier operation for controlling the server through UI.
Please give a sample code/program to access the NPS and print the
configuration with out using servermangercmd.exe.
Thanks and regards,
Bala
James McIllece [MS]
2010-03-29 18:29:13 UTC
Permalink
In the event that you might not be aware of this, and just in case you
find it useful, there is a full range of Network Shell commands that you
can use to configure Network Policy Server.

For more information, please see "Netsh Commands for Network Policy Server"
at http://technet.microsoft.com/en-us/library/cc754428(WS.10).aspx
--
James McIllece, Microsoft

Please do not send email directly to this alias. This is my online account
name for newsgroup participation only.

This posting is provided "AS IS" with no warranties, and confers no rights.
Post by Damu
Hi Bala,
As you have posted this query regarding .net Api for accessing NPS
server configuration.
Can you please let me know about this if you have got anything.
It is really urgent for me.
Thanks in advance.
Post by NAPGuru
Hi,
How do we access the NPS through .NET / SDK program?.
ServerMangercmd.exe helps to access and control the NPS. But it may
be costlier operation for controlling the server through UI.
Please give a sample code/program to access the NPS and print the
configuration with out using servermangercmd.exe.
Thanks and regards,
Bala
James McIllece [MS]
2010-03-29 19:27:50 UTC
Permalink
Post by James McIllece [MS]
In the event that you might not be aware of this, and just in case you
find it useful, there is a full range of Network Shell commands that
you can use to configure Network Policy Server.
For more information, please see "Netsh Commands for Network Policy
Server" at
http://technet.microsoft.com/en-us/library/cc754428(WS.10).aspx
In addition to this information, you can find NPS API information at MSDN:

NPS includes two API sets: NPS Extensions API and Server Data Objects (SDO)
API. Both NPS Extensions API and SDO API are also supported by the
precursor of NPS, the Internet Authentication Service.

NPS Extensions API can be used to extend the authentication, authorization,
and accounting methods offered by NPS and previously by IAS.

Server Data Objects API can be used to manipulate the network policy
configuration on a computer that runs NPS or IAS.

See the following topic: http://msdn.microsoft.com/en-
us/library/bb892034(VS.85).aspx
--
James McIllece, Microsoft

Please do not send email directly to this alias. This is my online account
name for newsgroup participation only.

This posting is provided "AS IS" with no warranties, and confers no rights.
Loading...