Skip to main content
Solved

Mount-NTNXGuestTool

  • Feb 26, 2020 10:07 AM UTC
  • 2 replies
  • 2584 views

Forum|alt.badge.img+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

Best answer by ChristopherR

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……………...

 

View original
This topic has been closed for replies.

2 replies

  • Voyager
  • Feb 26, 2020 9:49 PM UTC

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

 


Forum|alt.badge.img+1
  • Author
  • Adventurer
  • Answer
  • Feb 26, 2020 10:04 PM UTC

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……………...