Running the NAP Sample SDK


ive managed setup nap environment, , compile sdk sample code , followed readme.txt instructions on registering dll's on client , server.
this seems installed fine next question is.... how invoke "plugins" run/communicate nap/nps? want point can attach (on both server , client) vs.net debugger , hit breakpoint (if possible) can see how works.

i understand sample code may not or much..... because stated full working example, have thought able @ least see happen :-)


need 2 @ ms - ms way! follower since 1995 ms super evangelist| msdn forums moderator

hi,
here steps on how nap sdk sample work

copy nap sdk binaries locally (say c:\sdk) , navigate newly created folder

1) on client, register sdk sha  using sdksha.exe /register   and register sdk qec using sdkqec.exe /register  
2) on nps server, register corresponding sdk shv using  regsvr32 sdkshv.dll and register sdk qec using sdkqec.exe /register 
3) nps server , modify nap group policy object through gpme.msc  to enable sdkqec , gpupdate /force on client push changed nap group policies.
4) on server, in nps configuration wizard (nps.msc), modify all/reguired health policies both healthy , unhealthy (nps.msc->policies->health policies and double clicking required health policies and including sdkshv checking "sdk shv sample" "shvs used in health policy") include newly register sdk shv
5) on client, in admin command prompt run sdksha.exe /execute   , press keys 4 , 1  to make sdk sha healthy , press keys 3 , 1  make sdk sha unhealthy
6) on client, in admin command prompt run sdkqec.exe /execute  and see evertime there notify soh on client (say pressing key 1 in step 5 above or turning on or off of window autoupdates etc), see soh blob captured qec.   
7) on client, register sdkshainfo.dll using regsvr32 sdkshainfo.dll  and run netsh nap client show state  and check id=79856  , the name and description fields of sdksha changed


finally, unregister sdksha , sdkqec, run sdksha.exe /unregister  ,   sdkqec.exe /unregister
to unregister sdkshainfo.dll and sdkshv.dll run regsvr32 sdkshainfo.dll /u   ,   regsvr32 sdkshv.dll /u

make sure uncheck sdk shv health checks on nps.msc before uninstalling sdkshv.dll
 
please let me know if dint work.

thanks,
naveen

-------------------------------------------------------------------------------------------------
the content provided based on personal experience , microsoft no way responsible replies. 



Windows Server  >  Network Access Protection



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2