'Enter LAGDC if you have one, it will be usefull only in this case : if a Link is deleted and the GPO is deleted from the domain as well in the same time 'In that case we can not retrieve GPO Display Name if we do not have lag site. 'If no lag site then LAGDC = "" LAGDC = "LAGDCNAME" For Each oGPLinkdictLAG in GPLinkdictLAG If Not GPLinkdict.Exists(oGPLinkdictLAG) Then err.clear Set objGPOd = GetObject(split(replace(oGPLinkdictLAG,"LDAP://","LDAP://"&dcsource&"/"),"[")(1)) if err.number <> 0 then if LAGDC <> "" then Set objGPOd = GetObject(split(replace(oGPLinkdict,"LDAP://","LDAP://"&dcsource&"/"),"[")(1)) DNobjGPOd = objGPOd.Get("DisplayName") Else DNobjGPOd = split(oGPLinkdictLAG,"[")(1) Else DNobjGPOd = objGPOd.Get("DisplayName") End if Msgbox Username&" deleted a link on this object: "& OUName &" / GPOName: "&DNobjGPOd & " / Link Value was: "&GPLinkdictLAG.Item(oGPLinkdict) End if Next