zoukankan      html  css  js  c++  java
  • Workgroup下开启Win7的Admin share

    最近要用psexec远程运行win7下的程序,但是这个psexec必须要用可以访问admin share的帐号才能工作(admin share就是\\computername\c$这种访问方式)。由于win7在workgroup下默认是不能使用admin share的(入域后的域管理员是可以用admin share的),所以需要更改一下windows的设置:

    1. 打开network discovery和file and printer sharing

    2. 注册表HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System加一个DWORD类型的key “LocalAccountTokenFilterPolicy”, value为1:

    之后重启电脑就OK了。

    如果还不能访问admin share,就要再查查是不是加入homegroup了:

      打开control panel -> Network and Internet -> HomeGroup,点击HomeGroup并离开Homegroup

    如果还是不能访问admin share,就要折腾一下组策略里面的设置了:

    1. 运行secpol.msc

    2. 定位到“Local Policies” -> “Security Options”

         打开Network Security: LAN Manager authentication level” ,设置为“Send LM & NTLM – use NTLMv2 session security if negotiated”

    3. 运行gpedit.msc

    4. 定位到“Computer Configuration”/Windows Settings/Security Settings/Local Policies/Security Settings“

    5. Enable下面这些:

    Network access: Allow anonymous SID/name translation
    Network access: Let Everyone permissions apply to anonymous users

    6. Disable下面这些:

    Network access: Restrict anonymous access to Named Pipes and Shares
    Network access: Do not allow anonymous enumeration of SAM accounts
    Network access: Do not allow anonymous enumeration of SAM accounts and shares

  • 相关阅读:
    使用jedis连接redis
    布隆过滤器redis缓存
    SQL与NOSQL
    Charles 移动端抓包工具,使用方法以及注意事项
    安装npm包的时候报错rollbackFailedOptional: verb npm-session
    You may need an appropriate loader to handle this file type.
    数组去重
    判断两个数组是否相等(包括数组里边的键值对是否相等)
    数组里的字符串转为数字
    背景色铺满整个屏幕
  • 原文地址:https://www.cnblogs.com/liupengblog/p/2549677.html
Copyright © 2011-2022 走看看