输入windows系统密码不可用!
解决方案 »
- 哪里错了?
- 群发邮件时应该如何记录进度?
- 如何将dll文件还原成.cs
- 如何清除aspx网页中的flash缓存
- 请大家看看我用asp.net开发的物流仓储系统,需要源码的朋友请加我
- 在GridView绑定事件里面如何得到绑定控件的id?--------100分---急!!!!
- activereport在开发电脑上都可以正常直接打印,但客户端访问服务器就无法打印了,怎么半?
- WINDOWS2003 SQLsERVER2000
- asp.net 发送邮件 异常 : 服务器响应为: authentication failed.
- 小问题
- 程序中应该选择什么样的数据类型才能和数据库里面的numeric数据类型进行比较???
- 如何将动态生成的table用response.write方法输出到页面上?
using System;
using System.Security.Permissions;
using Microsoft.Win32;[assembly: RegistryPermissionAttribute(SecurityAction.RequestMinimum,
All = "HKEY_CURRENT_USER")]class RegKey
{
static void Main()
{
// Create a subkey named Test9999 under HKEY_CURRENT_USER.
RegistryKey test9999 =
Registry.CurrentUser.CreateSubKey("Test9999");
// Create two subkeys under HKEY_CURRENT_USER\Test9999. The
// keys are disposed when execution exits the using statement.
using(RegistryKey
testName = test9999.CreateSubKey("TestName"),
testSettings = test9999.CreateSubKey("TestSettings"))
{
// Create data for the TestSettings subkey.
testSettings.SetValue("Language", "French");
testSettings.SetValue("Level", "Intermediate");
testSettings.SetValue("ID", 123);
testSettings.SetValue("Password", "Secret");
} // <Snippet2>
// Print the information from the Test9999 subkey.
Console.WriteLine("There are {0} subkeys under {1}.",
test9999.SubKeyCount.ToString(), test9999.Name);
foreach(string subKeyName in test9999.GetSubKeyNames())
{
using(RegistryKey
tempKey = test9999.OpenSubKey(subKeyName))
{
Console.WriteLine("\nThere are {0} values for {1}.",
tempKey.ValueCount.ToString(), tempKey.Name);
foreach(string valueName in tempKey.GetValueNames())
{
Console.WriteLine("{0,-8}: {1}", valueName,
tempKey.GetValue(valueName).ToString());
}
}
}
// </Snippet2> // <Snippet3>
using(RegistryKey
testSettings = test9999.OpenSubKey("TestSettings", true))
{
// Delete the non-secure password value.
testSettings.DeleteValue("password"); // Verify the deletion.
Console.WriteLine((string)testSettings.GetValue(
"password", "Password not found."));
}
// </Snippet3> // <Snippet4>
// Delete or close the new subkey.
Console.Write("\nDelete newly created registry key? (Y/N) ");
if(Char.ToUpper(Convert.ToChar(Console.Read())) == 'Y')
{
Registry.CurrentUser.DeleteSubKeyTree("Test9999");
Console.WriteLine("\nRegistry key {0} deleted.",
test9999.Name);
}
else
{
Console.WriteLine("\nRegistry key {0} closed.",
test9999.ToString());
test9999.Close();
}
// </Snippet4>
}
}
要读取哪个注册表项?
怎么安装?Windows2003可以吗?
Windows2003:[管理你的服务器]--添加删除角色--.....,可以添加AD
我比较急,没时间看帮助。
Thanks!!
我设置之后提示:服务器应用程序不可用
您试图在此 Web 服务器上访问的 Web 应用程序当前不可用。请点击 Web 浏览器中的“刷新”按钮重试您的请求。 管理员注意事项: 详述此特定请求失败原因的错误信息可在 Web 服务器的系统事件日志中找到。请检查此日志项以查明导致该错误发生的原因。