Frostburg State University will move classes online for the second time in as many weeks, following another sharp increase in coronavirus cases on campus, officials said.

Students will finish the semester remotely starting Thursday, the university said. The announcement comes amid new guidance from Maryland Gov. Larry Hogan (R) and as the virus surges through the western part of the state and in Allegany County, where Frostburg State is located.

“Contact tracing continues to indicate, like elsewhere, that most transmission is coming via social and household gatherings,” said Liz Medcalf, a university spokeswoman.

Forty-five students and employees who have contracted the virus are in isolation, she said.

Frostburg State made a temporary pivot to online learning on Oct. 29 after the school’s health center recorded a spike in cases. The campus resumed in-person classes about a week later as the caseload continued to fluctuate and concerns over the school’s handling of the virus lingered. Students say some classmates have chosen to leave campus.

Sixty cases of the virus were reported on and around campus during the last two weeks of October, data from the university show. The university said last Wednesday that 26 students were in isolation.

Classrooms will shutter, but the school’s residence halls will remain open, officials said in an email sent to students. Fewer than 1,150 students moved into the dorms this semester; 400 students are living in a public-private apartment complex on the grounds.

Campus dining will provide to-go meals through the end of the semester on Nov. 24, officials said.

Health officials in Allegany County reported 89 new cases of the virus Wednesday, pushing the county’s caseload to 1,245. The county’s case rate stood at more than 66 per 100,000 people Tuesday, the highest in Maryland, the health department said on its Facebook page.

The region on Wednesday opened a free, drive-through testing clinic at the Allegany County Fairgrounds for children and adults. The clinic will operate three times a week, officials said.

“By partnering with the Allegany County Health Department to establish a new testing site, we are able to increase local testing capacity at a time when the need is high,” said Robert R. Neall, Maryland’s health department secretary. “With covid-19 cases and positivity rates ticking up in the region and across the state, it is critical for all Marylanders who need a test to be diligent about getting a test.”

Hogan unveiled new statewide restrictions Tuesday, including orders to limit indoor gatherings to 25 people. The governor “strongly advised” Marylanders from traveling outside the state and reduced indoor operations at restaurants from 75 to 50 percent capacity.

Shortly after the Frostburg State announcement, the University of Maryland in College Park said it would pause football team activities after eight players tested positive. The school’s Saturday game against Ohio State University has been canceled, officials in the athletics department said.