(a) Whenever such forces or any part thereof shall be ordered out for active service the articles of war of the United States applicable to members of the National Guard of this state in relation to courts-martial, their jurisdiction and the limits of punishment and the rules and regulations prescribed thereunder shall be in full force and effect with respect to the West Virginia state guard.
(b) No officer or enlisted man of such forces shall be arrested on any warrant, except for treason or felony, while going to, remaining at, or returning from a place where he is ordered to attend for military duty. Every officer and enlisted man of such forces shall, during his service therein, be exempt from service upon any posse comitatus and from jury duty.