Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用以下 winmgmt:
Set WebAdminWMI = GetObject("winmgmts:root\WebAdministration") Set VDirWMI = WebAdminWMI.Get("VirtualDirectory")
Set WebAdminWMI = GetObject("winmgmts:root\WebAdministration")
Set VDirWMI = WebAdminWMI.Get("VirtualDirectory")
如何通过 Path 和 SiteName 删除特定的虚拟目录?
先感谢您。
尝试使用该Delete_方法
Delete_
VDirWMI.Delete_