How to add $ at the end of the user provided information.
My Qtree should be add with _q at the end once user provided qtree as test then it should be tree_q
My sharename should be add with $ at the end once user provided qtree as test then it should be tree$
For more information
$qtreename = Read-Host -Prompt 'Input your QTREE name'
New-NcQtree -Volume $volumename -Qtree $qtreename -SecurityStyle ntfs -Vserver $vservername # here Qtree name need to be append as '_q' at the end of qtree name
Add-NcCifsShare -Name $share -Path $pathname1 -SymlinkProperties hide -OfflineFilesMode Manual -VscanProfile strict -Vserver $vservername # Here sharename should follows with Qtreename$ as powershell takes $ as input of the variable im facing few challenges
can anyone please help