How to run Nutanix Guest tool from command line powershell | Nutanix Community
Skip to main content

How to run Nutanix Guest tool from command line powershell

 

I tried with below command not installing. 

 

Start-Process "C:\NUTANIX_TOOLS\setup.exe" -Wait -Verb RunAs -ArgumentList "/quiet ACCEPTEULA=yes /norestart"

when i do it from nutanix prism console by selecting VM and click on install NGT it works without any issue if am planning to use powershell script to mount and do silent install with above mentioned arguments it will not install logs showing errors.


[06FC:172C][2023-10-05T11:17:45]i001: Burn v3.11.2.4516, Windows v10.0 (Build 17763: Service Pack 0), path: C:\Windows\Temp\{EF67C242-C694-4252-AEFC-1C3A86027CDA}\.cr\Nutanix-NGT-20221214.exe
[06FC:172C][2023-10-05T11:17:45]i009: Command Line: '-burn.clean.room=C:\NUTANIX_TOOLS\installer\windows\Nutanix-NGT-20221214.exe -burn.filehandle.attached=648 -burn.filehandle.self=652'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\NUTANIX_TOOLS\installer\windows\Nutanix-NGT-20221214.exe'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\NUTANIX_TOOLS\installer\windows\'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\Nutanix_Guest_Tools_20231005111745.log'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'WixBundleManufacturer' to value 'Nutanix Inc.'
[06FC:003C][2023-10-05T11:17:45]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[06FC:003C][2023-10-05T11:17:45]i000: Setting version variable 'WixBundleFileVersion' to value '2.3.2.0'
[06FC:172C][2023-10-05T11:17:45]i100: Detect begin, 9 packages
[06FC:172C][2023-10-05T11:17:45]i000: Setting version variable 'NutanixGuestToolsInstalledVersion' to value '2.3.2.0'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'VssState' to value '3'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'MSVSCPP2015RuntimeAdditionalInstalled' to value '1'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'MSVSCPP2015RuntimeMinInstalled' to value '1'
[06FC:172C][2023-10-05T11:17:45]i000: Registry key not found. Key = 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{20c31435-2a0a-4580-be8b-ac06fc243ca5}'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'MSVSCPP2012RuntimeAdditionalInstalled' to value '1'
[06FC:172C][2023-10-05T11:17:45]i000: Setting string variable 'MSVSCPP2012RuntimeMinInstalled' to value '1'
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: ChecksandPreReqs, state: Present, cached: None
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: NutanixVmMobility, state: Present, cached: None
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: CustomPyWin32, state: Present, cached: None
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: NutanixPython3.6.amd64, state: Present, cached: None
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: vcredist_2012_x64, state: Absent, cached: None
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: vcredist_2015_x64, state: Absent, cached: None
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: NutanixVSSPackage, state: Present, cached: None
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: NutanixSSRPackage, state: Present, cached: None
[06FC:172C][2023-10-05T11:17:45]i101: Detected package: NutanixGuestAgentPackage, state: Present, cached: None
[06FC:172C][2023-10-05T11:17:45]i052: Condition '((NOT NutanixGuestToolsInstalledVersion="2.3.2.0") OR (NOT (WixBundleAction=4 OR WixBundleAction=5)))' evaluates to false.
[06FC:172C][2023-10-05T11:17:45]e000: Nutanix Guest Tools is already installed.
[06FC:172C][2023-10-05T11:17:45]e000: Error 0x81f40001: Bundle condition evaluated to false: ((NOT NutanixGuestToolsInstalledVersion="2.3.2.0") OR (NOT (WixBundleAction=4 OR WixBundleAction=5)))
[06FC:172C][2023-10-05T11:17:45]i199: Detect complete, result: 0x0