Skip to content

Instantly share code, notes, and snippets.

@gryte
Last active January 7, 2025 17:04
Show Gist options
  • Select an option

  • Save gryte/4be9a1c2f002a8cc2bc5a509dfbf9bb9 to your computer and use it in GitHub Desktop.

Select an option

Save gryte/4be9a1c2f002a8cc2bc5a509dfbf9bb9 to your computer and use it in GitHub Desktop.

Revisions

  1. 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
  2. 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)
  3. 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)
  4. 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)