I found this on Thwack, but is there any way to create a schedule in SQL ? (to run this command everyday at 23:00)
Use NetPerfMon;
UPDATE dbo.Interfaces SET Unmanaged = 1, UnManageFrom=GETDATE(), UnManageUntil=DATEADD(year, 1, GETDATE())
WHERE Fullname like 'BuildingE_Switch%'