Moving log file locations

Move logs for a particular storage group to a different location with the following EMS command –

Move-StorageGroupPath -Identity "Server\Storage Group Name" \
-LogFolderPath "New Log Folder Path" -SystemFolderPath "New Log Folder Path"

e.g.

Move-StorageGroupPath -Identity "ex2k7-virt-2\V2SG8" \
-LogFolderPath "U:\Exchange\V2SG8" -SystemFolderPath "U:\Exchange\V2SG8"

Note: All databases in the storage group must be offline.