G
Guest
I'm using c# to called a command line netsh ipsec static.... and the group
policy store it on local even those I used "ipsec static set store
location=domain"
my question is how do I keep the command line is in the netsh eviroment?
protected virtual void Init()
{
// set Process invariant part of startup info
m_proc.StartInfo.CreateNoWindow =
m_proc.StartInfo.RedirectStandardError =
m_proc.StartInfo.RedirectStandardInput =
m_proc.StartInfo.RedirectStandardOutput = true;
m_proc.StartInfo.UseShellExecute = m_proc.StartInfo.ErrorDialog
= false;
m_proc.StartInfo.FileName = "netsh";
//Cause 'Exited' event to be raised on process termination.
m_proc.EnableRaisingEvents = true;
} // Init()
..........
m_proc.StartInfo.Arguments = m_strArguments;
if (!m_proc.Start()) return false; // start process
.......
thanks for any help.
policy store it on local even those I used "ipsec static set store
location=domain"
my question is how do I keep the command line is in the netsh eviroment?
protected virtual void Init()
{
// set Process invariant part of startup info
m_proc.StartInfo.CreateNoWindow =
m_proc.StartInfo.RedirectStandardError =
m_proc.StartInfo.RedirectStandardInput =
m_proc.StartInfo.RedirectStandardOutput = true;
m_proc.StartInfo.UseShellExecute = m_proc.StartInfo.ErrorDialog
= false;
m_proc.StartInfo.FileName = "netsh";
//Cause 'Exited' event to be raised on process termination.
m_proc.EnableRaisingEvents = true;
} // Init()
..........
m_proc.StartInfo.Arguments = m_strArguments;
if (!m_proc.Start()) return false; // start process
.......
thanks for any help.