Silently Install LAPS Management Tools

I was recently asked how to install the LAPS Management Tools from the command line. As I normally just double click the MSI and click through the wizard, I wasn’t sure how to accomplish this relatively simple task.

The default installation only installs GPO Client Side Extensions and can be completed using one of the following command lines:

msiexec.exe /i LAPS.x64.msi /quiet
msiexec.exe /i LAPS.x86.msi /quiet

If you want to install the full set of features on your management workstation, you can use one of the following command lines:

msiexec.exe /i LAPS.x64.msi ADDLOCAL=CSE,Management,Management.UI,Management.PS,Management.ADMX /quiet
msiexec.exe /i LAPS.x86.msi ADDLOCAL=CSE,Management,Management.UI,Management.PS,Management.ADMX /quiet

Or more simply one of the following command lines:

msiexec.exe /i LAPS.x64.msi ADDLOCAL=ALL /quiet
msiexec.exe /i LAPS.x86.msi ADDLOCAL=ALL /quiet

Hope this helps!

Unspecified Error When Copying A Large File Over a Virtual Machine Connection

From time to time I find I need to copy a large file to a Virtual Machine running on Hyper-V. Normally copying files is easy when using Enhanced Session Mode — a simple copy and paste is all you need… except when dealing with really large files. This is what you get when you try that:

2017-04-17 11_21_11

I ran into this error today when trying to copy a 5.47 GB ISO file, so I thought I’d share a quick tip on copying files using PowerShell Direct, a new feature of Hyper-V available in Windows 10 and Windows Server 2016.

$PSSession = New-PSSession -VMName SERVER-VM-01 -Credential (Get-Credential)
Copy-Item -ToSession $PSSession -Path C:\Local\Path\Image.iso -Destination C:\Remote\Path

That’s all there is to it!

Source: TechNet Blog Post by Ben Armstrong