Tag: setup

PowerShell SSH Remoting Linux to Windows

Setup PowerShell SSH Remoting in PowerShell 6

With PowerShell version 6, Microsoft introduced PowerShell Remoting over SSH, which allows true multiplatform PowerShell remoting between Linux, macOS and Windows. PowerShell SSH Remoting creates a PowerShell host process on the target machine as an SSH subsystem. Normally, PowerShell remoting uses WinRM for connection negotiation and data transport, however WinRM is only available on Windows based machines.

There are also some downsides to it. SSH-based remoting doesn’t currently support remote endpoint configuration and JEA (Just Enough Administration). It is also important to understand, that this is not just another PowerShell SSH client.

Use SSH Transport with PowerShell Remoting

To use PowerShell remoting with SSH you can use the same cmdlets, you know from PowerShell remoting with WinRM.

  • New-PSSession
  • Enter-PSSession
  • Invoke-Command

There are 3 new parameters for these cmdlets, if you are using PowerShell SSH remoting.

  • -HostName (Instead of -Computername, you define the SSH target)
  • -UserName (Instead of -Credentials you use the -UserName parameter)
  • -KeyFilePath (If you are using SSH key authentication you can use the -KeyFilePath parameter to point to the key file)
 
New-PSSession -HostName tomsssh.server.com -UserName thomas


Windows Server 2019 Upgrade

Windows Server 2019 In-place Upgrade

As another part of my series for Windows Server 2019, this blog post covers the in-place upgrade feature. The in-place upgrade allows you to upgrade your existing LTSC versions of Windows Server 2012 R2 or Windows Server 2016 servers to Windows Server 2019. Windows Server 2019 In-place Upgrade allows businesses to update to the latest version quickly. Especially, if you have servers which you might need to install some dependencies for the applications. I saw a lot of customers who not have documented their server installations and neither used infrastructure as code to deploy them. For these customers, it can be hard to upgrade to newer versions of Windows Server. With the Windows Server 2019 In-Place Upgrade feature, this should get a lot easier. Especially since Windows Server 2019 brings a lot of improvements.

You can in-place upgrade to Windows Server 2019 from

To find out more about the in-place upgrade on the Microsoft Docs page.

How to in-place upgrade to Windows Server 2019

Windows Server 2016 upgrade to Windows Server 2019

To in-place upgrade to Windows Server 2019, insert the Windows Server 2019 media into the existing server, by attaching an ISO file, copying the sources, adding a USB drive or even a DVD drive and start the setup.exe.

Installing Windows Server 2019

The setup will discover the existing installation and will let you perform an in-place upgrade. The installation will run for a couple of minutes; it will take quite some time depending on the speed of your server hardware and the installed roles and features. Microsoft MVP Didier Van Hoye did write a great blog post about Windows Server 2019 In-Place Upgrade testing. In that blog post, he has a quick look at upgrading to Windows Server 2019.

You can also find an overview of what is coming new in Windows Server 2019, in my blog: Windows Server 2019 – What’s coming next.



Toms Workplace 2018

My Workplace 2018 – How does yours look like?

Last week I was browsing the web and I found a lot of cool looking home office setups. I realized it is quiet interesting to see how people workplaces look like. With that I want to give a quick look at my home office and my workplace setup. Secondly, I would like to share your setup as well. If you want to share yours write a blog, link it in the comments or show it on Twitter, what ever you like.

This is it, this is my workplace if I am not on the road.

  • My main machine today is the 15-inch Surface Book 2 attached to a Dell curved-ultrawide monitor (Dell UltraSharp 38 Monitor – U3818DW), which with Windows 10 and the Snap feature is absolutely great to use.
  • I also have a Surface Pro as a company work machine, which I use mostly on the road when I need a real mobile work machine. It has enough powerful to do serious work and still gives you a mobile work experience.
  • I am obviously using a lot of Surface accessories like the Surface Precision Mouse, the Surface Pen, the Surface Dial and the Microsoft Modern Keyboard.
  • I also use some wireless Bose Quiet Comfort 35 headphones, not only for travel but also in the home office
  • I like the Surface Pen on my Surface Pro to draw some quick stuff or take some notes in Onenote.


Installation Windows Server 2016 VPN

How to Install VPN on Windows Server 2016

This post shows you how you can install a VPN Server on Windows Server 2016 Step-by-Step. It shows you how you can easily setup a VPN server for a small environment or for a hosted server scenario. This blog post covers how you can use Windows Server VPN.

This is definitely not a guide for an enterprise deployment, if you are thinking about a enterprise deployment you should definitely have a look at Direct Access.

I already did similar blog posts for Windows Server 2008 R2, Windows Server 2012 and Windows Server 2012 R2.

You can simply follow this step by step guide:

Install the Windows Server VPN Role

First install the “Remote Access” via Server Manager or Windows PowerShell.

Install Remote Access Role VPN

Select the “DirectAccess and VPN (RAS)” role services and click next.

DirectAccess and VPN (RAS)



Getting Started Wizard

How to Install VPN on Windows Server 2012 R2

This post shows you how you can install a VPN Server on Windows Server 2012 R2 Step-by-Step. It shows you how you can easily setup a VPN server fro a small environment or for a hosted server scenario.

This is definitely not a guide for an enterprise deployment, if you are thinking about a enterprise deployment you should definitely have a look at Direct Access.

I already did a similar post on Windows Server 2008 R2 and Windows Server 2012.

First install the “Remote Access” via Server Manager or Windows PowerShell.

Remote Access



System Center 2012 Unified Installer – Step by Step – Part 3

Microsoft System Center Logo
In the first two posts we did all the preperation for the System Center 2012 Unified Installer. Now in this post we are going finally to run the Unified Installer.

 

  1. Start the System Center Unified Installer
    System Center Unified Installer Setup
  2. The System Center Unified Installer is not made for production so read the warning and click okay.
    System Center Unified Installer Warning
  3. Choose the System Center components you want to install.
    System Center Unified Installer parts
  4. Set the component media Location for each System Center product
    System Center Unified Installer component location
  5. Accept the License Terms for Configuration Manager and the Prerequisite License Terms
    Coniguration Manager License Terms
    Prerequisite License Terms
  6. Choose the Prerequisite Meida Locations
    Prerequisite Media Location
  7. Specify the Installation Location
    Installation Destination Location
  8. Select the System Center Target servers
    System Center Servers
  9. Select System Center Service Accounts
    System Center Service Accounts
  10. provide some additional Setup information
    Coponent Specific Questions
  11. Check the summary and click install
    System Center Unified Installer Install
  12. Now the System Center Unified Installer will Setup the first Server with System Center Orchestrator
    System Center Orchestrator
  13. After Orchestrator is deployed, it will Launch some Orchestrator runbooks to install the other System Center parts.
    System Center Setup
  14. After all products are installed, SCUI will do a cleanup
    System Center Unified Installer Cleanup
  15. And about 3 hours later you are done
    System Center Unified Installer Summary

I think this is very cool and can you save a lot of time if you are doing a Proof of Concept or a Lab deployment of the System Center products.



Cheatsheet: Add roles and features to a Server Core installation #2

This are some commands to add roles and features to a Windows Server 2008 R2 Core installation.

You also can enable Remote MMC and Remote Server Manager to simply connect from a management server to the core server and add roles with GUI. This may only work within a domain environment. You can enable remote management pretty easy with the sconfig.cmd. Find out more about configuring Windows Server 2008 R2 Core installations here.

List available server roles and features:

oclist

Install, uninstall and configure Active Directory Domain Service role:

dcpromo

Help for dcpromo:

PS C:\> dcpromo /?

Command line parameters include:

/unattend[:filename]
Used to specify the unattend operation mode or supply an unattended install script file.

/adv
Enables advanced user options.

/uninstallBinaries
Used to uninstall Active Directory Domain Services binaries.

/?[:{Promotion | CreateDcAccount | UseExistingAccount | Demotion}]

/?:Promotion, /?:CreateDCAccount, /?:UseExistingAccount, and /?:Demotion
will display unattend parameters applicable to the specified task. /CreateDCAccount and /UseExistingAccount:Attach are mutually exclusive.

/CreateDCAccount
Creates an RODC account.

/UseExistingAccount:Attach
Attaches the server to an RODC account.

/forceRemoval
Forcefully uninstalls Active Directory Domain Services on this domain controller. The account for the domain controller will not be deleted in the directory, and changes that have occurred on this domain controller since it last replicated with a partner will be lost.

/?
Will display this help.

Unattend parameters can also be specified on the command-line. For example:

dcpromo.exe /ReplicaOrNewDomain:Replica

Press any key to quit ...

Install a role or feature its basically always the same:

start /w ocsetup <roleorfeature>

start /w ocsetup DNS-Server-Core-Role

Uninstall a role or feature:

start /w ocsetup <roleorfeature> /uninstall

start /w ocsetup DNS-Server-Core-Role /uninstall

Install SNMP feature:

start /w ocsetup SNMP-SC

Install Microsoft Hyper-v role:

start /w ocsetup Microsoft-Hyper-V