用命令行获取权限

用命令行获取权限
上一级分类: 计算机技术 分类:小窍门

Embed below code to your site

As a security best practice, it is recommended that we do not log on our computer with administrative credentials because it will otherwise increase security risks.

When we want to perform administrative tasks, we could use RUNAS to start a program using administrative accounts.

We know we can do Shift + Right Click to get RUNAS command in some of the case but for some, that is not an option, such as Active Directory management tools.

What we can do is to use command line to accomplish those tasks.

runas /user:domain\yli "mmc %windir%\system32\dsa.msc"

Of course, this applies to other .msc snap-ins.

We can then create shortcuts for these RUNAS commands on the desktop to make them handy.

 

发现了错别字? 请选中并且点击Ctrl+Enter发送!