In this article, I’ll explain you how you remotely manage your Windows Server Core 2019 through PowerShell.
I assume you want to manage your servers from another Windows Server. If you want to manage from windows client such as Windows 10, download and install Remote Server Administration Tools (RSAT). Make sure to start PowerShell with administrator privileges.
Execute the following command on the Windows Server Core 2019 or the remote computer you want to access:
The Enable-PSRemoting command will be configured to receive the commands. It specifically does the following:
- Starts the WinRM service
- Sets the WinRM service to automatically start during the next boot of computer system
- Enables all session configurations
- Changes the security descriptor of all session configurations to allows remote access
- Enables a firewall exception for WS-management
Execute the following commands on your local computer, for example you Windows 10 client:
$Cred = Get-Credential
Enter-PSSession -Credential $Cred -ComputerName <Computername>
Then Enter-PSSession command creates a session with the Windows Server 2019 Core computer so you can run commands by typing on a PowerShell console of your local computer.
I really like to hear what you have to say about this article:
- Was this article helpful for you or do you have any questions?
- Do you have additions, suggestions or any other ideas?
- Just let me know by leaving a comment below.
Thank you for spending some time at my site and in my blog. I hope you come to visit again soon!