You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-generate PV_Configuration.xml file, by running PACLI logon normally. Example commands to be run to generate that file:
Set-PVConfiguration -ClientPath $pacliPath
Start-PVPacli -sessionID $sessionID
New-PVVaultDefinition -vault $vaultName -address $vaultAddress
Connect-PVVault -user $creds.UserName -password $creds.Password
Disconnect-PVVault
Stop-PVPacli
Try to run commands below again, once PV_Configuration.xml file already exists, and you'll get an error
Set-PVConfiguration -ClientPath $pacliPath
Start-PVPacli -sessionID $sessionID
New-PVLogonFile -logonFile $Global:hash.pacliLogonFilePath -username $creds.UserName -password $creds.Password
I think the problem is that CREATELOGONFILE doesn't accept vault and user attributes, but when PV_Configuration.xml is already pre-created, script is using params from old file.
Context
I'm trying to generate new logon file to be used later.
The text was updated successfully, but these errors were encountered:
Your issue may already be reported. Please search existing
issues
before creating one.Your Environment
Expected Behaviour
New-PVLogonFile should create new logon file
Current Behaviour
I receive an error:
parse error, expecting `';'
Possible Solution
Replace$Script:PV.ClientPath CREATELOGONFILE $ ($PSBoundParameters | ConvertTo-ParameterString)$Script:PV.ClientPath CREATELOGONFILE $ ($PSBoundParameters | ConvertTo-ParameterString -NoVault -NoUser)
$Null = Invoke-PACLICommand
With
$Null = Invoke-PACLICommand
In New-PVLogonFile.ps1 file
Steps to Reproduce (for bug reports)
Set-PVConfiguration -ClientPath $pacliPath
Start-PVPacli -sessionID $sessionID
New-PVVaultDefinition -vault $vaultName -address $vaultAddress
Connect-PVVault -user $creds.UserName -password $creds.Password
Disconnect-PVVault
Stop-PVPacli
Set-PVConfiguration -ClientPath $pacliPath
Start-PVPacli -sessionID $sessionID
New-PVLogonFile -logonFile $Global:hash.pacliLogonFilePath -username $creds.UserName -password $creds.Password
I think the problem is that CREATELOGONFILE doesn't accept vault and user attributes, but when PV_Configuration.xml is already pre-created, script is using params from old file.
Context
I'm trying to generate new logon file to be used later.
The text was updated successfully, but these errors were encountered: