Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mgag/7bb464cdedf52ff62d8ba4e58c87baad to your computer and use it in GitHub Desktop.

Select an option

Save mgag/7bb464cdedf52ff62d8ba4e58c87baad to your computer and use it in GitHub Desktop.

Revisions

  1. mgag revised this gist May 10, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_config-win2k19_core-ad-dc-proxmox.md
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ Copy-Item D:\guest-agent\ -Destination C:\sys\drivers\guest-agent -Recurse

    ```powershell
    # go to local directory with drivers
    Set-Location C:\drivers
    Set-Location C:\sys\drivers
    # install drivers
    pnputil -i -a C:\sys\Drivers\NetKVM\2k19\amd64\*.inf
    @@ -61,7 +61,7 @@ Set-Location C:\sys\drivers\guest-agent
    Copy-Item C:\sys\drivers\Balloon\2k19\amd64 -Destination 'C:\Program Files\Balloon' -Recurse
    Set-Location 'C:\Program Files\Balloon'
    blnsvr.exe -i
    .\blnsvr.exe -i
    ```

    # Enable remote powershell sessions
  2. mgag revised this gist May 10, 2022. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions install_config-win2k19_core-ad-dc-proxmox.md
    Original file line number Diff line number Diff line change
    @@ -36,11 +36,11 @@ Get-PSDrive
    mkdir -p c:\sys\drivers
    # copy drivers from media to local directory
    Copy-Item D:\vioscsi\2k19\ -Destination C:\drivers\vioscsi\2k16 -Recurse
    Copy-Item D:\NetKVM\2k19\ -Destination C:\drivers\NetKVM\2k16 -Recurse
    Copy-Item D:\Balloon\2k19\ -Destination C:\drivers\Balloon\2k16 -Recurse
    Copy-Item D:\vioserial\2k19\ -Destination C:\drivers\vioserial\2k16 -Recurse
    Copy-Item D:\guest-agent\ -Destination C:\drivers\guest-agent -Recurse
    Copy-Item D:\vioscsi\2k19\ -Destination C:\sys\drivers\vioscsi\2k19 -Recurse
    Copy-Item D:\NetKVM\2k19\ -Destination C:\sys\drivers\NetKVM\2k19 -Recurse
    Copy-Item D:\Balloon\2k19\ -Destination C:\sys\drivers\Balloon\2k19 -Recurse
    Copy-Item D:\vioserial\2k19\ -Destination C:\sys\drivers\vioserial\2k19 -Recurse
    Copy-Item D:\guest-agent\ -Destination C:\sys\drivers\guest-agent -Recurse
    ```

    ## implement drivers
    @@ -50,15 +50,15 @@ Copy-Item D:\guest-agent\ -Destination C:\drivers\guest-agent -Recurse
    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
    pnputil -i -a C:\sys\Drivers\NetKVM\2k19\amd64\*.inf
    pnputil -i -a C:\sys\Drivers\Balloon\2k19\amd64\*.inf
    pnputil -i -a C:\sys\Drivers\vioserial\2k19\amd64\*.inf
    # set up guest agent
    Set-Location C:\drivers\guest-agent
    Set-Location C:\sys\drivers\guest-agent
    .\qemu-ga-x64.msi
    Copy-Item C:\drivers\Balloon\2k16\amd64 -Destination 'C:\Program Files\Balloon' -Recurse
    Copy-Item C:\sys\drivers\Balloon\2k19\amd64 -Destination 'C:\Program Files\Balloon' -Recurse
    Set-Location 'C:\Program Files\Balloon'
    blnsvr.exe -i
  3. mgag renamed this gist May 10, 2022. 1 changed file with 6 additions and 6 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Install and Configure - Windows Server 2016 Core AD DC on ProxMox VM
    # Install and Configure - Windows Server 2019 Core AD DC on ProxMox VM
    ## Initial configuration

    ```sconfig
    @@ -33,13 +33,13 @@ Install-WindowsFeature Routing
    Get-PSDrive
    # create local driver directory
    mkdir c:\drivers
    mkdir -p c:\sys\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:\vioscsi\2k19\ -Destination C:\drivers\vioscsi\2k16 -Recurse
    Copy-Item D:\NetKVM\2k19\ -Destination C:\drivers\NetKVM\2k16 -Recurse
    Copy-Item D:\Balloon\2k19\ -Destination C:\drivers\Balloon\2k16 -Recurse
    Copy-Item D:\vioserial\2k19\ -Destination C:\drivers\vioserial\2k16 -Recurse
    Copy-Item D:\guest-agent\ -Destination C:\drivers\guest-agent -Recurse
    ```

  4. mgag renamed this gist May 10, 2022. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Install and Configure - Windows Server 2016 Core on ProxMox VM
    # Install and Configure - Windows Server 2016 Core AD DC on ProxMox VM
    ## Initial configuration

    ```sconfig
  5. mgag revised this gist May 10, 2022. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion install_config-win2k16_core-proxmox.md
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ netsh interface ipv4 show inter
    netsh interface ipv4 set interface numIdx dadtransmits=0 store=persistent
    (where numIdx is the Idx number of your Nic noted in the previous step).
    net stop dhcp
    sc config “dhcp” start=disabled
    sc config “dhcp” start= disabled
    # allow remote access
    netsh advfirewall firewall add rule name= "Open Port 3389 (RDP)" dir=in action=allow protocol=TCP localport=3389
    @@ -98,6 +98,7 @@ Enter-PSSession -ComputerName <server core ip or hostname> -Credential <server c
    # Citations
    * YouTube - [Install Windows 2016 on Proxmox VE](https://youtu.be/fn6iJzRQDkw)
    * https://www.remylarrieu.com/en/disable-ip-auto-configuration-in-windows-server-core/#:~:text=1%20%E2%80%93%20Open%20a%20command%20window,netsh%20interface%20ipv4%20show%20inter.&text=3%20%E2%80%93%20Type%20the%20command%20netsh,disable%20the%20DHCP%20Client%20service.
    * https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/netsh-advfirewall-firewall-control-firewall-behavior
    * https://www.kjctech.net/install-and-configure-route-and-remote-access-service-on-server-core/
    * 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)
  6. mgag revised this gist May 9, 2022. 1 changed file with 21 additions and 6 deletions.
    27 changes: 21 additions & 6 deletions install_config-win2k16_core-proxmox.md
    Original file line number Diff line number Diff line change
    @@ -10,14 +10,25 @@ Network settings
    NETSH ADVFIREWALL set allprofiles state off
    # install windows features
    dism /online /Enable-Feature /FeatureName:TelnetClient
    # Disable IP auto configuration in Windows Server Core
    netsh interface ipv4 show inter
    netsh interface ipv4 set interface numIdx dadtransmits=0 store=persistent
    (where numIdx is the Idx number of your Nic noted in the previous step).
    net stop dhcp
    sc config “dhcp” start=disabled
    # allow remote access
    netsh advfirewall firewall add rule name= "Open Port 3389 (RDP)" dir=in action=allow protocol=TCP localport=3389
    ```



    ## stage drivers locally

    ## install windows features and stage drivers locally
    ```powershell
    # run "PowerShell" command
    powershell
    # Allow remote management
    Install-WindowsFeature RemoteAccess
    Install-WindowsFeature RSAT-RemoteAccess-PowerShell
    Install-WindowsFeature Routing
    # display available drives
    Get-PSDrive
    @@ -86,5 +97,9 @@ Enter-PSSession -ComputerName <server core ip or hostname> -Credential <server c

    # Citations
    * YouTube - [Install Windows 2016 on Proxmox VE](https://youtu.be/fn6iJzRQDkw)
    * https://www.remylarrieu.com/en/disable-ip-auto-configuration-in-windows-server-core/#:~:text=1%20%E2%80%93%20Open%20a%20command%20window,netsh%20interface%20ipv4%20show%20inter.&text=3%20%E2%80%93%20Type%20the%20command%20netsh,disable%20the%20DHCP%20Client%20service.
    * https://www.kjctech.net/install-and-configure-route-and-remote-access-service-on-server-core/
    * 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)
    * 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)
    * https://directaccess.richardhicks.com/tag/remote-server-administration-tools/
    *
  7. mgag revised this gist May 9, 2022. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion install_config-win2k16_core-proxmox.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,13 @@
    ```sconfig
    # run 'sconfig':
    Computer name
    Setup network (static)
    Remote desktop
    Network settings
    # disable firewall
    NETSH ADVFIREWALL set allprofiles state off
    # install windows features
    dism /online /Enable-Feature /FeatureName:TelnetClient
    ```


  8. mgag revised this gist May 9, 2022. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions install_config-win2k16_core-proxmox.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,13 @@
    # Install and Configure - Windows Server 2016 Core on ProxMox VM
    ## Initial configuration

    ```sconfig
    # run 'sconfig':
    Computer name
    Setup network (static)
    ```



    ## stage drivers locally

  9. @gryte gryte revised this gist Jul 16, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_config-win2k16_core-proxmox.md
    Original file line number Diff line number Diff line change
    @@ -43,7 +43,7 @@ blnsvr.exe -i
    ## on the win2k16 core server

    ```powershell
    # view currently list of trusted hosts
    # 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 currently list of trusted hosts
    # view current list of trusted hosts
    Get-Item wsman:\localhost\client\trustedhosts
    # add remote core server that you want to connect to
  10. @gryte gryte revised this gist Jul 16, 2017. 1 changed file with 34 additions and 1 deletion.
    35 changes: 34 additions & 1 deletion install_config-win2k16_core-proxmox.md
    Original 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)
    * 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)
  11. @gryte gryte revised this gist Jul 15, 2017. 1 changed file with 1 addition and 7 deletions.
    8 changes: 1 addition & 7 deletions install_config-win2k16_core-proxmox.md
    Original 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
    cd C:\drivers\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
    ```

    ## implement Guest Agent

    ```powershell
    ```

    # Citations
    * YouTube - [Install Windows 2016 on Proxmox VE](https://youtu.be/fn6iJzRQDkw)
  12. @gryte gryte created this gist Jul 15, 2017.
    48 changes: 48 additions & 0 deletions install_config-win2k16_core-proxmox.md
    Original 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)