The below script is what i am trying to use to setup a linux repository with a one time password. When the script is ran it creates a normal password, but fails to successfully backup anything to the repository and tells me the Linux server needs to be rescanned but is not able to complete the scan. Not sure if i am missing something or if it is not possible to create the immutable repository from PS. if i create it in the GUI it works fine.
Welcome to the forum.
It should work, but you need to use the parameter -SSHTempCredentials $True for the command Add-VBRLinux.
I missing it in your sample script.
SSHTempCredentials
To add a Linux server that will be used as a hardened repository.
Defines that the cmdlet will use single-use credentials to access a Linux server.