Re: Netsh and IPSec Policies
From: David Beder [MSFT] (dbeder_at_online.microsoft.com)
Date: 10/22/04
- Previous message: sql beginner: "Re: checking weak passwords?"
- In reply to: Nick: "Netsh and IPSec Policies"
- Next in thread: Nick: "Re: Netsh and IPSec Policies"
- Reply: Nick: "Re: Netsh and IPSec Policies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 22 Oct 2004 00:00:41 -0700
once your script returns from the first command, all context is lost, so for
the second command the shell is going to assume you're trying to edit the
local computer. What you need to do is create a file with ipsec commands,
then call it from a single netsh command. Unfortunately I don't have a
server at home so can't give you the specific syntax but the general idea
would be:
mypolicy.txt:
ipsec
static
set store location=domain domain='FQDN of Domain'
set policy name="Test Policy" activatedefaultrule=no gponame="Default Domain
Policy" assign=yes
mypolicy.cmd
netsh -f mypolicy.txt
-- David Microsoft Windows Networking This posting is provided "AS IS" with no warranties, and confers no rights. "Nick" <someone@nospam.net> wrote in message news:%23mPvQC4tEHA.1272@TK2MSFTNGP12.phx.gbl... >I hope someone can help me with this, I am trying to use 'netsh' on Windows >2003 to script the creation of IPSec Policies and IPSec Filters. I have got >this to work well for the Local Computer, but when I try and get it to >create the Policy as part of the Domain Security Policy it does not >work.... I have used the command: > > netsh ipsec static set store location=domain domain='FQDN of Domain' > > This command is accepted OK, but then when the follow command runs it > fails: > > netsh ipsec static set policy name="Test Policy" activatedefaultrule=no > gponame="Default Domain Policy" assign=yes > > It says that 'gponame' is not valid is this context. The thing is, it > works if I enter it all manually from the netsh interface, but not from a > Command file. I have checked TechNet and it says it should work OK in both > instances. > > Any help appreciated. > > Thanks in advance. > > Nick > >
- Previous message: sql beginner: "Re: checking weak passwords?"
- In reply to: Nick: "Netsh and IPSec Policies"
- Next in thread: Nick: "Re: Netsh and IPSec Policies"
- Reply: Nick: "Re: Netsh and IPSec Policies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|