wwwwzf
V2EX  ›  Windows

如何使用 PowerShell 更改 IIS 的共享服务

  •  
  •   wwwwzf · Oct 24, 2019 · 2704 views
    This topic created in 2393 days ago, the information mentioned may be changed or developed.

    如下图:

    [img]https://bbs.z01.com/UploadFiles/Image/20191024/wd_6370754383836559196111139.jpg[/img]

    如何使用 PowerShell 将原来的 IIS 管理服务,从“仅限于 windows 凭据管理”,改为“windows 凭据或 IIS 管理器凭据”。

    求高手指导,感谢。!

    4 replies    2019-10-29 08:04:16 +08:00
    wwwwzf
        1
    wwwwzf  
    OP
       Oct 24, 2019
    ps1aniuge
        2
    ps1aniuge  
       Oct 25, 2019   ❤️ 1
    https://www.cnblogs.com/piapia/p/11340636.html
    powershell 玩转 iis,里面有命令列表。

    你的需求,我猜是用这个命令 Set-IISCentralCertProviderCredential 你试试,
    get-help Set-IISCentralCertProviderCredential -full 可以得到命令帮助
    ps1aniuge
        3
    ps1aniuge  
       Oct 25, 2019
    @wwwwzf 若不是这个,就再找找,肯定是 set 打头的。命令并不多。
    wwwwzf
        4
    wwwwzf  
    OP
       Oct 29, 2019
    设置[标识凭据]-[windows 凭据或 IIS 管理器凭据]:
    Reg Add HKLM\Software\Microsoft\WebManagement\Server /V RequiresWindowsCredentials /T REG_DWORD /D 0
    我是用注册表项最后解决的,感谢 PS1anige 兄的指导,大有受益!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 69ms · UTC 02:08 · PVG 10:08 · LAX 19:08 · JFK 22:08
    ♥ Do have faith in what you're doing.