There are a few ways that you can force a drive letter to assign in Windows. The first way is to use the Disk Management tool. To do this, open the Start menu and type in diskmgmt.msc. Once the Disk Management tool opens, right-click on the drive that you want to assign a letter to and select Change Drive Letter and Paths. From here, you can click Add and then choose the drive letter that you want to assign.
Another way to do this is through the Command Prompt. To open the Command Prompt, press Windows+R on your keyboard and type in cmd. Once the Command Prompt opens, type in assignletter [drive] [letter], replacing [drive] with the name of your drive and [letter] with the letter that you want to assign. For example, if I wanted to assign my D: drive as Z:, I would type in assignletter d z.
You can also use PowerShell to do this. To open PowerShell, press Windows+R on your keyboard and type in powershell. Once PowerShell opens, type in New-PSDrive -Name [drive] -Root [path] -PSProvider FileSystem -Persist replacing [drive] with your desired drive name and [path] with your desired path. For example, if I wanted my D: drive assigned as Z:, I would type in New-PSDrive -Name z -Root D: -PSProvider FileSystem -Persist . This will create a new PowerShell drive with your specified name and path.