删除SharePoint Alternate Access Mapping URL的解决方案

今天在学习SharePoint Configure Alternate Access Mappings功能,配置时误创建了不存在的URL,并且Zone选择的是Default。此URL创建后其实在SharePoint没有意义,WebApplication下面也并不存在此URL,也就无法访问URL打开Site Collection等操作,并且SharePoint爬网时可能还会对此URLindex……所以就需要考虑如何清理掉,避免冗余数据占用SharePoint资源。

Machine generated alternative text:SharePoint Central Administration Application Management System Settlngs Momtonng Backup and Restore Security Upgrade and Migration General Application Settlngs Alternate Access Mappings Edit Public URLs I Add Internal URLs ] 三 Map to External Resou rce Newsfeed OneDrlve Sltes System ACCOU nt · SHARE Show All Alternate Access Mapping Collection: Public URL for Zone http://www.product.com http://www.avepoint.com http://sp201 」 http://www.mlcrosoft.com http://sp201 」 9998 http://www.custom.com Internal URL http://www.product.com http://www.avepointcom http丷叩2013 http://www microsoft.com http丷5p2013 . 9998 http://www.custom.com Zone Default Default Default Default Default Default

 

Machine generated alternative text:SharePoint Manage Features Managed Paths Service 〔 〔 on 、 Manage Name SharePoint _ 80 Authentication Providers S , . Servi 51e [ r , on Security Blocked File Types user Permissions Web 陀 改 5E0 卩 i user Policy Amonymous Permission PO'iCY Policy http://sp2013/ http://sp2013:9998/ http://www.avepoint.com/" http://www.custom.com/ http://www.product.com/ BROWSE 压 VIES APPLICATIONS General New E 、 n 匕 Delete Contribute Central Administration Application Management System Settlngs Momtonng Backup and Restore Security SharePoint Central Administration v4 SharePoint _ SharePoint _ SharePoint _ 、 v.avep01nt.com80 ` 、 ` 、 、 V 工 . C0m80 www.product.com/0

 

尝试了编辑delete,因为是Default ZoneSharePoint有限制是不允许删除的,直接操作无法清理。

Machine generated alternative text:= http://sp2013 , ' admin/EditlncomingUrl.aspx?Collectionldz4E7ffedI%2DIt . 0 会 司 D004vE5 Governmance Automation Compliance G u ard i a n , ' d Internal URLs Newsfeed SharePoint Central Administration Application Management System Settlngs Momtonng Backup and Restore Security Edit Internal URLs Edlt Internal URL URL protocol host and po Change the zone that this URL is associated with. http://www.microsoft.com/ Zone Default OneDrlve Sltes System ACCOU nt · SHARE Cancel

 

经过research和尝试解决,发现了比较好用的命令行解决方案,执行后可以成功删除,具体如下:

  1. Administrator方式打开SharePoint Management Shell

Machine generated alternative text:SharePoint 2m3 Mana ement. InfoPath Desianer 20B Ungin from Sta P i n to taskbar U n i n 訓 Open n ew wi n d ow Run , admin15trator Run , dlfferent user Open e location Resize

  1. 输入删除Alternate URL的命令:

Remove-SPAlternateURL-Identity "web application url"

Machine generated alternative text:Admlnlstrator: SharePoint 2013 Management Shell S C : XU s e rs Xadm in is t rat 0 ' . . DEMO > Re " 0 u e —S PR It e en at e U —Identity http://www.micro 0 f t . C 0 0 n f 0 u S 0 u t 0 t h is t n ? erforming t he operation 0 e —S PR It e at e U " . iC FO S f t . C 0 ' [ Y ] Y e s [ R ] Y e s t 0 R I I [ N ] No [ ] No t 0 R I I ( de f au It is ' 、 " ) : [ S ] target Suspend [ ? ] Help

  1. 在弹出的确认提示中填写 "Y"并回车执行;

Machine generated alternative text:0 n f 0 u S 0 u t 0 erforming t he operation 0 e . iC FO S f t . C 0 ' [ Y ] Y e s [ R ] Y e s t 0 R I I [ N ] No ( de f au It is ' 、 " ) : Y S C : XU s e rs Xadm in is t rat 0 , . . DEMO > t h is t n ? —S PR It e en at e U " [ ] No t 0 R I I [ S ] target Suspend [ ? ] Help

  1. 刷新Alternate Access Mappings中显示内容,URL删除成功。

Machine generated alternative text:SharePoint Central Administration Application Management System Settlngs Momtonng Backup and Restore Security Upgrade and Migration Alternate Access Mappings Edit Public URLs I Add Internal URLs ] 三 Map to External Resou rce Newsfeed OneDrlve Sltes System ACCOU nt · SHARE Show All Alternate Access Mapping Collection: Public URL , or 201E http://www.product.com http://wwv.avepoint.com http://sp2013 http://sp2013:ggg8 http://www.custom.com Internal URL http://www.product.com http://www.avepointcom http丷叩2013 http丷5p2013 : 9998 http://www.custom.com Zone Default Default Default Default Default

 

以上就是在SharePoint使用命令行删除Alternate Access Mapping URL的方法,希望能帮助到大家,感谢阅读!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值