Solved

Mount-NTNXGuestTool

  • 26 February 2020
  • 2 replies
  • 2467 views

Badge +1

Hi

Does anyone know how to use this Powershell cmdlet properly

mount-ntnxguesttoll -vmid 54312c2a-2b7e-4dbe-b7ac-0fa58b575ad2 nor

mount-ntnxguesttool -vmid 00054abc-11c2-77b7-2a9b-246e963f27a8::54312c2a-2b7e-4dbe-b7ac-0fa58b575ad2 work

Trying to pipe to the mount-ntnxguesttool doesn’t help either.

Help!!!

Christopher

icon

Best answer by ChristopherR 26 February 2020, 23:04

View original

This topic has been closed for comments

2 replies

Here’s what I'm using:

$creds = Get-Credential -Message "Domain Login" -UserName "$env:USERNAME@$env:USERDNSDOMAIN"
. "C:\Program Files (x86)\Nutanix Inc\NutanixCmdlets\powershell\import_modules\ImportModules.PS1"
$servers="chi-ntx-cls01","chi-ntx-cls02","phl-ntx-cls01","phl-ntx-cls02"
$servers|%{Connect-NutanixCluster -AcceptInvalidSSLCerts -Password $creds.Password -Server $_ -UserName $creds.UserName}
$vms=Get-NTNXVM
$vm=$vms|? vmName -EQ "DEV-VM-001"
$vm|Mount-NTNXGuestTool -ErrorAction SilentlyContinue

 

Badge +1

Hi

 

Thanks for your reply. That’s some nice code. My error was eventually found to be no CDROM o the vm…. the error returned by the cmdlet was a 401 error which had no information about the missing CDROM at all. 

Now if the silent install can be kicked off remotely……………...