安全权限不足 [英] insufficient security permissions

查看:63
本文介绍了安全权限不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我收到此错误:安全权限不足,无法设置系统日期"

我使用了Today函数来获取当前日期,并将该值传递给vb.net应用程序中的Label1.Text.

但在我的系统中没有管理员权限.

感谢您的帮助.

Dear All,

I got this error: "Insufficient security permissions to set the system date"

I Used Today function to get current date and pass the value to Label1.Text in vb.net application.

but in my system don''t have admin rights.

Thanks for any help

推荐答案

您可以使用以下代码显示今天"的日期.

You can use below code to show date of Today.

Label1.text = "Date : " & Now.Date



我在xp上的vs2005中使用此代码.并且它正在工作.



I am using this code in my vs2005 on xp. And it is working.


您自己说:在我的系统中没有管理员权限" -您需要管理员权限(因此需要管理员帐户)来设置系统日期.如果您没有访问权限,则可能无法访问.这可能会有所帮助: MSDN-安全权限不足,无法设置系统日期 [ ^ ]
You said it yourself: "in my system don''t have admin rights" - you need admin rights (and thus an admin account) to set the system date. If you don''t have access to one, then you probably can''t do it. This may help : MSDN - Insufficient security permissions to set the system date[^]


以前我在vb.net应用程序中使用的是
Label1.Text = Cstr(Today)
上面的编码行我收到了错误消息,例如安全权限不足,无法设置系统日期"

现在我更改了代码
Previously i used in vb.net application is
Label1.Text = Cstr(Today)
the above line of coding i got the error message like "Insufficient security permissions to set the system date"

Now i changed the code
Label1.Text = Cstr(Now.Date)



一切正常.



It''s working fine.


这篇关于安全权限不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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