public void EnableIcs(Guid publicGuid, Guid privateGuid) { if (!this.SharingInstalled) { throw new Exception("Internet Connection Sharing NOT Installed"); } var connections = this.Connections; IcsConnection publicConn = (from c in connections where c.IsMatch(publicGuid) select c).First(); IcsConnection privateConn = (from c in connections where c.IsMatch(privateGuid) select c).First(); this.DisableIcsOnAll(); publicConn.EnableAsPublic(); privateConn.EnableAsPrivate(); }