Windows tricks小技巧

本文是一些windows日常使用中发现的问题和小技巧。

系统ping不通,一般是防火墙的原因,关闭防火墙就可以ping通了。

命令行映射网络驱动器

net use I: \server\path password /user:username

解决网络驱动器在以管理员身份运行的程序中访问不到的问题

To understand why the network drive is not visible to the programs running as administrator, we have to consider how Windows handles the standard and administrator user access internally. In simple terms, when UAC (User Account Control) is enabled, Windows creates a split personality for your user account: one with the standard user’s access rights to do the the regular tasks, and another one with the full administrative access to the system. When you log in to the computer, Windows tries hard to create the impression that these two personalities are the same: they share the login name and password, the desktop and documents, settings and preferences, and so on. However, when it comes to mapping the network drives, Windows prefers to treat them as separate accounts (for security reasons). That’s why the network drives created when you wear the hat of the standard user do not automatically become available when you put the administrator’s hat on. This Microsoft article explains it all in detail.
n any case, there is a way to force Windows to make the network drives available to both the standard and administrator accounts automatically. All you need to do is run Registry Editor (regedit.exe), locate the following key:

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System

and create a new DWORD entry with the name EnableLinkedConnections and value 1:

After you’ve added the EnableLinkedConnections value to the Registry, restart the computer, and after that the network drives you create should become available to the elevated applications, as well.
来源:http://www.winability.com/how-to-make-elevated-programs-recognize-network-drives/