Performing a migration of numerous databases, we need to assign a Windows user and its permissions to each of the restored databases.
Could this be done by means of a scritp? In this way you would avoid repeating the same process so many times.
The user to add is the network user for services, NETWORK (Windows User).