O'Reilly logo

Getting Started with Nano Server by Charbel Nemnom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installation

This example assumes that you already have a couple of Nano Servers deployed in your environment that include the DSC package.

First, we need to download LAPS.Nano.DSC module from PowerShell gallery, and then install it on all Nano Servers that you want to manage with LAPS.

Open an elevated PowerShell console on your management machine and then run the following script to automate this process:

 #region variables update the password$LocalPassword=ConvertTo-SecureString-String'P@ssw0rd'-AsPlainText-Force$LocalCred=New-ObjectSystem.Management.Automation.PSCredential('.\Administrator',$LocalPassword)#endregion# Download and Install LAPS.Nano.DSC module locally from PSGallerySet-PSRepository-Name'PSGallery'-InstallationPolicyTrustedInstall-Module-NameLAPS.Nano.DSC-Force# ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required