I have been looking for the powershell commands for getting the backup path of a database in an sql server. I would be providing sever name and database name as input. Could some one help me with the solution so that I can achieve my requirement. Note: I just need the path of the database backup. I need not to do any back up of that database in a path.
Thanks in advance.
Sudhir