为了在Vista中用imagex创建wim镜像,在Command Prompt模式下发现运行后出现下列错误提示:
ERROR: The current logged on user does not have administrative privileges.
我的用户本身就是属于Administrators Group的,可是不知道为何没有全部的管理员的权限,于是到网上找资料。可惜并没有找到正确的答案。
后来想想Windows Server和Vista的OS在运行程序式有个run as某个用户的方式,于是试试输入runas,呵呵,还真的可以,结果出现一片Help,
运行了下列一段命令以Administrator再开一个Shell,
runas /noprofile /user:Star/Administrator cmd
输入密码后弹出新的cmd,不同的是title变为running as administrator了,后面运行imagex等等程序均OK.
vista runsa 运行command
最新推荐文章于 2022-10-13 11:37:40 发布