Exemple #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();
        }
        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();
        }