 He commanded the left flank cavalry at the storm of Machin, for which he received the Order of St. George 3rd Class.In 1792 and 1794 he successfully acted against the Polish–Lithuanian Commonwealth during the Polish–Russian War of 1792 and Kościuszko Uprising, commanding a column under Suvorov in the assault on Prague.Like many other generals of this time, he was dismissed by Emperor Paul I on 11 July 1799 and was imprisoned in the Dünamünde fortress for several months.