In below example at the end we are passing the instance name by checking it manually by login in to commcell console but our requirement is to fetch the database instance name automatically through a command.
.\qmodify.exe schedulepolicy -o add -scp <Schedule policy name> -c <Host Name> -a Q_MSSQL -b defaultBackupSet -s default -i <Instance name>
We need your help in getting the right command to get the instance name.