Last active
January 7, 2025 17:04
-
-
Save gryte/4be9a1c2f002a8cc2bc5a509dfbf9bb9 to your computer and use it in GitHub Desktop.
Revisions
-
gryte revised this gist
Jul 16, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,7 +43,7 @@ blnsvr.exe -i ## on the win2k16 core server ```powershell # view current list of trusted hosts Get-Item wsman:\localhost\client\trustedhosts # add remote computer that will be connecting to core server @@ -56,7 +56,7 @@ Set-Item wsman:\localhost\client\trustedhosts -Value <hostname or ip> # enable psremoting if not in a domain Enable-PSRemoting # view current list of trusted hosts Get-Item wsman:\localhost\client\trustedhosts # add remote core server that you want to connect to -
gryte revised this gist
Jul 16, 2017 . 1 changed file with 34 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,5 +38,38 @@ Set-Location 'C:\Program Files\Balloon' blnsvr.exe -i ``` # Enable remote powershell sessions ## on the win2k16 core server ```powershell # view currently list of trusted hosts Get-Item wsman:\localhost\client\trustedhosts # add remote computer that will be connecting to core server Set-Item wsman:\localhost\client\trustedhosts -Value <hostname or ip> ``` ## on the computer wanting to connect to the win2k16 core server ```powershell # enable psremoting if not in a domain Enable-PSRemoting # view currently list of trusted hosts Get-Item wsman:\localhost\client\trustedhosts # add remote core server that you want to connect to Set-Item wsman:\localhost\client\trustedhosts -Value <hostname or ip> ``` ## launch pssession from computer to server core ```powershell Enter-PSSession -ComputerName <server core ip or hostname> -Credential <server core username> ``` # Citations * YouTube - [Install Windows 2016 on Proxmox VE](https://youtu.be/fn6iJzRQDkw) * MSDN Microsoft - Powershell Core [about_remote_troubleshooting](https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/about/about_remote_troubleshooting) * TechNet Microsoft - Windows Server - Windows Powershell [Access Denied when trying to set Trusted hosts for PSRemoting](https://social.technet.microsoft.com/Forums/windows/en-US/b853e77c-7c9a-4231-a32b-c63727ec5868/access-denied-when-trying-to-set-trusted-hosts-for-psremoting?forum=winserverpowershell) -
gryte revised this gist
Jul 15, 2017 . 1 changed file with 1 addition and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pnputil -i -a C:\Drivers\Balloon\2k16\amd64\*.inf pnputil -i -a C:\Drivers\vioserial\2k16\amd64\*.inf # set up guest agent Set-Location C:\drivers\guest-agent .\qemu-ga-x64.msi Copy-Item C:\drivers\Balloon\2k16\amd64 -Destination 'C:\Program Files\Balloon' -Recurse @@ -38,11 +38,5 @@ Set-Location 'C:\Program Files\Balloon' blnsvr.exe -i ``` # Citations * YouTube - [Install Windows 2016 on Proxmox VE](https://youtu.be/fn6iJzRQDkw) -
gryte created this gist
Jul 15, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,48 @@ # Install and Configure - Windows Server 2016 Core on ProxMox VM ## stage drivers locally ```powershell # display available drives Get-PSDrive # create local driver directory mkdir c:\drivers # copy drivers from media to local directory Copy-Item D:\vioscsi\2k16\ -Destination C:\drivers\vioscsi\2k16 -Recurse Copy-Item D:\NetKVM\2k16\ -Destination C:\drivers\NetKVM\2k16 -Recurse Copy-Item D:\Balloon\2k16\ -Destination C:\drivers\Balloon\2k16 -Recurse Copy-Item D:\vioserial\2k16\ -Destination C:\drivers\vioserial\2k16 -Recurse Copy-Item D:\guest-agent\ -Destination C:\drivers\guest-agent -Recurse ``` ## implement drivers ```powershell # go to local directory with drivers Set-Location C:\drivers # install drivers pnputil -i -a C:\Drivers\NetKVM\2k16\amd64\*.inf pnputil -i -a C:\Drivers\Balloon\2k16\amd64\*.inf pnputil -i -a C:\Drivers\vioserial\2k16\amd64\*.inf # set up guest agent cd C:\drivers\guest-agent .\qemu-ga-x64.msi Copy-Item C:\drivers\Balloon\2k16\amd64 -Destination 'C:\Program Files\Balloon' -Recurse Set-Location 'C:\Program Files\Balloon' blnsvr.exe -i ``` ## implement Guest Agent ```powershell ``` # Citations * YouTube - [Install Windows 2016 on Proxmox VE](https://youtu.be/fn6iJzRQDkw)