While running ps.cmd from WFA windows server we see error "Get-Item: Cannot find drive. "
ps.cmd contains,
@rem opens a powershell prompt with WFA's commandlets loaded
@PowerShell.exe -NoExit -ExecutionPolicy remotesigned -Command "& {cd (((Get-Item (Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\NA_WFA_SRV).ImagePath.Split(" ")[0]).Directory.fullname)); ../PoSH/profile.ps1; ((Get-Host).UI.RawUI).WindowTitle = 'WFA PS'; clear}"
profile.ps1 contains,
$ModulesDir = split-path $MyInvocation.MyCommand.Path
Import-Module $ModulesDir\Modules\WFA
Import-Module $ModulesDir\Modules\WFAWrapper
Import-Module $ModulesDir\Modules\DataONTAP
Executing Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\NA_WFA_SRV seems to be good.
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NA_WFA_SRV
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
PSChildName : NA_WFA_SRV
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
Type : 16
Start : 2
ErrorControl : 1
ImagePath : "E:\Program Files\NetApp\WFA/bin/NA_WFA_SRV.exe" //RS//NA_WFA_SRV
DisplayName : NetApp WFA Server
DependOnService : {NA_WFA_DB, Tcpip, Afd}
ObjectName : LocalSystem
Description : NetApp WFA Application Server running JBoss AS7
Kindly find the error screenshot atttached.