In addition, after each of the commands, as you also know, we must press the Enter key.Īnother method that we can use is to use the Command Prompt to achieve the same result as in the previous cases.
How to add another user in windows 10 Pc#
Where we put the name of the computer we must put the name that our PC has and where we put the username, as you will have interpreted, we must put the name that that person has in our Windows system. You have to take several things into account.$ sessionId = ((quser / server: $ server | Where-Object ) -split ‘+’).The next thing we must do is write a series of commands that we are going to show you below.Right-click on the Windows symbol on the taskbar and then choose Windows PowerShell (Administrator) from the drop-down menu that appears.The Windows PorwerShell window also cannot help to close the session that another user has open in Windows 10. It goes without saying that this will cause all applications that the user has open to close, so everything that is not saved can be lost. In this way, we will be forcing the closing of the session of the selected user who had logged into our computer. In the window that now appears, we must select Disconnect or Close session.Now we select the user that we want to close his session and we right click on the mouse.