The Save-VmsConnectionProfile cmdlet saves the current VMS logon information to a connection profile with the specified
name, or a profile named "default" if no profile name is provided.
When using named connection profiles with MilestonePSTools, the connection details are saved to the current Windows user
profile under $env:LOCALAPPDATA\MilestonePSTools\credentials.xml using the Export-CliXml cmdlet. If a credential is
provided with Connect-Vms, the password is encrypted using Windows Data Protection API with "CurrentUser" scope. This
ensures passwords cannot be decrypted except by the current user on the current computer.
REQUIREMENTS
Requires VMS connection and will attempt to connect automatically
Saves the current VMS login information to a connection profile named "default". If a profile named "default" already
exists, an error will be returned indicating that you must use the -Force switch to indicate that the named profile
should be overwritten.
If no logon session is already established, a Milestone VMS login dialog will be presented, and after successful logon,
the login details will be saved to $env:LOCALAPPDATA\MilestonePSTools\credentials.xml under the connection profile name
"default".
Saves the current VMS login information to a connection profile named "default". If a profile named "default" already
exists, it will be updated with the current login information.
If no logon session is already established, a Milestone VMS login dialog will be presented, and after successful logon,
the login details will be saved to $env:LOCALAPPDATA\MilestonePSTools\credentials.xml under the connection profile name
"default".
Saves the current VMS login information to a connection profile named "MyVMS". If a profile named "MyVMS" already
exists, it will be updated with the current login information.
If no logon session is already established, a Milestone VMS login dialog will be presented, and after successful logon,
the login details will be saved to $env:LOCALAPPDATA\MilestonePSTools\credentials.xml under the connection profile name
"default".
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.