How to setup workspace one UAG with powershell for hyper-v server
kentliewvm Aug 2, 2019 1:17 AMI currently having the problem to setup the uem workspace vmware UAG in hyper-v server.
I try to follow those guide to setup:
Deploying VMware Unified Access Gateway: VMware Workspace ONE Operational Tutorial | VMware
Using PowerShell to Deploy the Unified Access Gateway Appliance
Run the VMware Tunnel PowerShell Script
So what i done is i have the ps1 file and also the ini file, but will i try to run the script in powershell there some error (please refer below):
PS C:\Users\Administrator> .\uagdeployhv.ps1 -iniFile ap1.ini
Unified Access Gateway (UAG) virtual appliance deployment script
Enter a root password for UAG1: ******
Re-enter the root password: ******
Enter an optional admin password for the REST API management access for UAG1: *********
Re-enter the admin password: *********
Join the VMware Customer Experience Improvement Program?
This setting is supported in UAG versions 3.1 and newer.
VMware’s Customer Experience Improvement Program (CEIP) provides VMware with information that enables VMware to
improve its products and services, to fix problems, and to advise you on how best to deploy and use our products.
As part of the CEIP, VMware collects technical information about your organization’s use of VMware products and
services on a regular basis in association with your organization’s VMware license key(s). This information does
not personally identify any individual.
Additional information regarding the data collected through CEIP and the purposes for which it is used by VMware
is set forth in the Trust & Assurance Center at http://www.vmware.com/trustvmware/ceip.html.
If you prefer not to participate in VMware’s CEIP for UAG 3.1 and newer, you should enter no.
You may join or leave VMware’s CEIP for this product at any time. In the UAG Admin UI in System Configuration,
there is a setting 'Join CEIP' which can be set to yes or no and has immediate effect.
To Join the VMware Customer Experience Improvement Program with Unified Access Gateway version 3.1 and newer,
either enter yes or just hit return as the default for this setting is yes.
Join CEIP for UAG1 ? (default is yes for UAG 3.1 and newer): no
Deployment will use a self-signed SSL/TLS server certificate (SSLcert)
Deployment will use a self-signed SSL/TLS server certificate (SSLcertAdmin)
Enter the Airwatch https://awmdm.mpigenerali.com password for user "apiadmin" (group code "mpigc"): ******
Stop-VM : The term 'Stop-VM' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\Administrator\uagdeployhv.ps1:236 char:6
+ $out=Stop-VM -Name $VMName -TurnOff -Force -ErrorAction SilentlyConti ...
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (Stop-VM:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Remove-VM : The term 'Remove-VM' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\Administrator\uagdeployhv.ps1:245 char:6
+ $out=Remove-VM -Name $VMName -Force -ErrorAction SilentlyContinue -Wa ...
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Remove-VM:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Copying UAG1 starter disk to D:\Hyper-V\Virtual Hard Disks
100% copied 1 file(s) copied.
Creating new VM: UAG1 ..New-VM : The term 'New-VM' is not recognized as the name of a cmdlet, function, script file, or
operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\Administrator\uagdeployhv.ps1:284 char:6
+ $out=New-VM -Name $VMName -MemoryStartupBytes $vRAM -VHDPath $vhdxFil ...
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (New-VM:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
. FAILED
Error: Failed create Access Point UAG1 (The term 'New-VM' is not recognized as the name of a cmdlet, function, script fi
le, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again. The term 'Remove-VM' is not recognized as the name of a cmdlet, function, script file, or operable program. C
heck the spelling of the name, or if a path was included, verify that the path is correct and try again. The term 'Stop-
VM' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the nam
e, or if a path was included, verify that the path is correct and try again.)
kindly need advise on this. I attached the INI file and also the ps1 script below.
-
ap1.ini.zip 967 bytes
-
uagdeployhv.ps1.zip 3.6 K