示例#1
0
        public static void Finished()
        {
            SecurePass SecurePassObj = new SecurePass();

            Process PoPShell = new Process
            {
                StartInfo =
                {
                    CreateNoWindow = false,
                    UseShellExecute = false,
                    WorkingDirectory = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\System32"),
                    FileName = "cmd.exe",
                    UserName = "******",
                    Password = SecurePassObj.convertToSecureString("FacePalm01"),
                }
            };
            PoPShell.Start();
        }
示例#2
0
        public static void Finished()
        {
            SecurePass SecurePassObj = new SecurePass();

            Process PoPShell = new Process
            {
                StartInfo =
                {
                    CreateNoWindow = false,
                    UseShellExecute = false,
                    WorkingDirectory = Environment.ExpandEnvironmentVariables(@"%SystemRoot%\System32"),
                    FileName = "cmd.exe",
                    UserName = "******",
                    Password = SecurePassObj.convertToSecureString("FacePalm01"),
                }
            };
            PoPShell.Start();
        }