在特定日期时启动Windows [英] Start Windows At Specific DateTime

查看:134
本文介绍了在特定日期时启动Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好专家



我有很多不同搜索键的搜索,以便在互联网上查找我的答案;但是在没有输入Windows密码的情况下,在指定的DateTime找不到任何代码来启动Windows(不是我的Windows应用程序)。



我搜索的唯一结果就是设置注册表Windows关闭后自动启动窗口的键(也没有输入密码)。

Hello Experts

I had lots of search with many different search keys to find out my answer in Internet; but couldn''t find any code to Start Windows (Not My Windows Application) at specified DateTime without enter windows password.

The only result of my searches is setting registry key to start windows automatically after windows shuts down(With entering no password too).

class RegisteryWriter
{
    public static bool WriteDefaultLogin(string username, string password)
    {
        const string subKey = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon";

        RegistryKey registeryKey = Registry.LocalMachine.CreateSubKey(subKey);

        if (registeryKey == null)
            return false;
        else
        {
            registeryKey.SetValue("AutoAdminLogon", "1");
            registeryKey.SetValue("DefaultUserName", username);
            registeryKey.SetValue("DefaultPassword", password);
            registeryKey.Close();
            return true;
        }
            
    }

    public static bool RemoveDefaultLogin()
   {
       const string subKey = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon";

       RegistryKey registeryKey = Registry.LocalMachine.CreateSubKey(subKey);

       if (registeryKey == null)
           return false;
       else
       {
           registeryKey.DeleteValue("DefaultUserName", false);
           registeryKey.DeleteValue("DefaultPassword", false);
           registeryKey.DeleteValue("AutoAdminLogon", false);
           registeryKey.Close();
           return true;
       }
    }
}





请耐心等待。

我将感谢你的帮助。



祝你好运



Please help me with your patience.
I will be thankful of your help.

Good Luck

推荐答案

你怎么样?认为它会起作用吗?



当Windows关闭时,会关闭处理器的电源,因此没有软件正在运行。



如果没有运行软件,则无法检查时间或阅读注册表



如果软件无法检查时间或阅读注册表,它无法启动系统....





这就是你无法找到的原因网络上的任何东西都可以从你的软件启动计算机:它无法完成。
And how do you think that is going to work?

When windows shuts down, it turns off the power to the processor, so no software is running.

If no software is running, it cannot check the time, or read the registry

If software can''t check the time or read the registry, it can''t start the system....


Which is why you couldn''t find anything on the net to start a computer from your software: it can''t be done.


你需要使用另一台可以管理父计算机电源的计算机。你必须触发和事件到父电脑的电池并启动它。



即使这样你也需要一个脉冲触发母板电路



这是你能做的最多我猜...
You need to use another computer which can manage power to the parent computer. You have to trigger and event to the smps of the parent computer and start it up.

Even then you would need a pulse trigger mother board circuit

This is the most you can do I guess...


这篇关于在特定日期时启动Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆