Script to create a Network Policy in NPS
Hello I have a problem to create a Network policy in the Console. When run this command netsh nps add np name = ""Connections to other access servers"" state = "enable" processingorder = "2" policysource = "0" conditionid = "0x1006" conditiondata = "0 00:00-24:00; 1 00:00-24:00" profileid = "0x102f" advprofiletype = "IPFILTER_IPV4INFILTER" advprofiledata = "PERMIT,234.234.234.0,255.255.255.0,17,0,0" (This is the Microsoft example) I just get: "The parameter is incorrect." Could anybody help me out what the problems is here?
December 17th, 2009 6:03pm

Hi,Thanks for the post.I think you may refer to the following article to check if the relevant parameters are typed correct.Configuring IP Filters with Netsh NPS Commandshttp://technet.microsoft.com/en-us/library/cc770849(WS.10).aspxHope this helps.
Free Windows Admin Tool Kit Click here and download it now
December 18th, 2009 6:54pm

Hi Miles, I'm having the same problem even if I have already edit the script. Do we have any guides on this one? kindly check my script below. Thanks! netsh add np name = "Wireless3" state = "disable" processingorder = "8" policysource = "0" conditionid = "0x3d" conditiondata = "^18$|^19$" conditionid = "0x1023" conditiondata = "S-1-5-21-69497794-716713911" conditionid = "0x1f" conditiondata = "c8bcc8371Fca" conditionid = "0x20" conditiondata = "CORP" After running the *.bat file for this one, I got "The parameter is incorrect" Thanks, Cesar
October 27th, 2010 6:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics