A hacker’s attack slowed county government to a crawl Wednesday in North Carolina’s most populous metro area as deputies processed jail inmates by hand, the tax office turned away electronic payments and building code inspectors switched to paper records.

Data was frozen on dozens of Mecklenburg County servers after one of its employees opened an email attachment carrying malicious software earlier this week. The hacker responsible — believed to be in Ukraine or Iran — has demanded more than $23,000 to restore access.

County manager Dena Diorio said officials still hadn’t decided Wednesday afternoon if they will pay the ransom, and it will take days to restore the county’s computer system whether or not they do.

“If we don’t pay, we have to rebuild our applications from scratch,” Diorio said.

In the meantime, county departments were scrambling to conduct business without access to digital records.

“We are slower, but we are up and running,” Diorio said.

The county of more than 1 million residents includes Charlotte, but the city government appears not to have been hacked. The state’s largest city issued a statement that its separate computer systems have not been affected and that it severed direct connections to county computers.

The computer problems haven’t affected the processing of emergency calls because they are handled by the city, said Mecklenburg County Sheriff’s Office spokeswoman Anjanette Flowers Grube.

But it’s caused delays for the county jail and disrupted other county services ranging from domestic violence counseling to tax collection. Sheriff Irwin Carmichael said it’s taking longer to manually process arrestees, as well as inmates due to be released.

Calls to a county domestic violence hotline are rolling straight to voicemail, so counselors are checking messages every 15 minutes, officials told reporters. And the social services department is working to recreate its daily itinerary of 1,600 rides for elderly patients with medical appointments. Recurring appointments that account for most of the rides are less of a problem than those for patients who make one-time reservations.

Patty Eagan, director of Mecklenburg County Social Services, said there are “300 trips that are medical demand, and that’s when someone has scheduled a trip a week ago, two weeks ago. We are not able to see what trips have been scheduled.”

Meanwhile, payments to the tax office must be made with a check, cash or money order, and code inspectors are slowed down by using paper records, according to a list of affected services.

The hacking was publicly revealed Tuesday. A forensic examination has confirmed that 48 of the county’s 500 servers were affected, Diorio said, adding that county government officials believe that the hackers weren’t able to gain access to individuals’ health, credit card or social security information.

The compromised servers have been quarantined, and even potentially healthy parts of the system are currently shut down to avoid spreading the malicious program, said Keith Gregg, the county’s chief information officer. But without getting the compromised servers unlocked, the county would have to rebuild significant parts of the system.

A Wednesday afternoon deadline for paying the ransom passed, but Diorio said talks are continuing. The hackers have asked for the ransom to be paid in bitcoin, a digital currency used around the world and favored by hackers because it can often be exchanged online anonymously.

A security expert said cyberattacks on local governments aren’t unusual. For example, a hacking attack in late 2016 on San Francisco’s mass transit system led its operators to allow free rides over part of a weekend because of data problems.

Ross Rustici, senior director of intelligence services at the firm Cybereason, said ransomware schemes against local governments make the news every couple of months, but that they often tend to be smaller, rural areas. He said local governments are “easy targets” because of their older equipment and software.

He said businesses and local governments often pay the ransom because other means of recovering the data can be even more expensive.

“Once you’re in that situation, you really have no good option, so a lot of people and companies end up paying,” he said.