In PowerShell how to get a Get-WBVolume without a volume path?












2














I am trying to remove a dead volume from the backup policy, but to remove it you must specify it in the remove command. But I can not figure out how to specify a volume to remove if it doesn't have a volume path...



How would I go about getting a WBVolume for a volume without a volume path?
Here's the volume info I have:



VolumeLabel :
MountPath :
MountPoint : \?Volume{b193b193-0000-0000-0000-406b3b000000}
FileSystem : NTFS
Property : Critical, ValidSource
FreeSpace : 367382528
TotalSpace : 854589440


I am trying to remove it from a WBPolicy but to remove it, it must be specified some thing like this:
$Volume = Get-WBVolume -VolumePath "?"



so a cmdlet like this will work Remove-WBVolume -Policy $Policy -Volume $Volume










share|improve this question
























  • Can you select the volume and pipe it to Remove-WBVolume?
    – root
    Dec 11 '18 at 17:32










  • Yea, that's the issue I have no way to select it, as best as I can tell to use the Get-WBVolume to select the volume you need to specify the VolumePath. the only way I can get it to list is with the Get-WBVolume -AllVolumes, Which show me all of the volumes known to WB. But I can't seem to figure out how to list it individually
    – Keith Vinson
    Dec 11 '18 at 18:28










  • Maybe you can exclude all volumes that have a path, excuse my guesses I'm unable to test at the moment. Get-WBVolume -AllVolumes | Where-Object { $_.MountPath -eq $null }
    – root
    Dec 11 '18 at 19:14










  • Good try, Thanks. But no dice. After I the ran your command (no errors reported) I dumped the variable $Volume. The variable $Volume was empty...Rats
    – Keith Vinson
    Dec 12 '18 at 23:07
















2














I am trying to remove a dead volume from the backup policy, but to remove it you must specify it in the remove command. But I can not figure out how to specify a volume to remove if it doesn't have a volume path...



How would I go about getting a WBVolume for a volume without a volume path?
Here's the volume info I have:



VolumeLabel :
MountPath :
MountPoint : \?Volume{b193b193-0000-0000-0000-406b3b000000}
FileSystem : NTFS
Property : Critical, ValidSource
FreeSpace : 367382528
TotalSpace : 854589440


I am trying to remove it from a WBPolicy but to remove it, it must be specified some thing like this:
$Volume = Get-WBVolume -VolumePath "?"



so a cmdlet like this will work Remove-WBVolume -Policy $Policy -Volume $Volume










share|improve this question
























  • Can you select the volume and pipe it to Remove-WBVolume?
    – root
    Dec 11 '18 at 17:32










  • Yea, that's the issue I have no way to select it, as best as I can tell to use the Get-WBVolume to select the volume you need to specify the VolumePath. the only way I can get it to list is with the Get-WBVolume -AllVolumes, Which show me all of the volumes known to WB. But I can't seem to figure out how to list it individually
    – Keith Vinson
    Dec 11 '18 at 18:28










  • Maybe you can exclude all volumes that have a path, excuse my guesses I'm unable to test at the moment. Get-WBVolume -AllVolumes | Where-Object { $_.MountPath -eq $null }
    – root
    Dec 11 '18 at 19:14










  • Good try, Thanks. But no dice. After I the ran your command (no errors reported) I dumped the variable $Volume. The variable $Volume was empty...Rats
    – Keith Vinson
    Dec 12 '18 at 23:07














2












2








2







I am trying to remove a dead volume from the backup policy, but to remove it you must specify it in the remove command. But I can not figure out how to specify a volume to remove if it doesn't have a volume path...



How would I go about getting a WBVolume for a volume without a volume path?
Here's the volume info I have:



VolumeLabel :
MountPath :
MountPoint : \?Volume{b193b193-0000-0000-0000-406b3b000000}
FileSystem : NTFS
Property : Critical, ValidSource
FreeSpace : 367382528
TotalSpace : 854589440


I am trying to remove it from a WBPolicy but to remove it, it must be specified some thing like this:
$Volume = Get-WBVolume -VolumePath "?"



so a cmdlet like this will work Remove-WBVolume -Policy $Policy -Volume $Volume










share|improve this question















I am trying to remove a dead volume from the backup policy, but to remove it you must specify it in the remove command. But I can not figure out how to specify a volume to remove if it doesn't have a volume path...



How would I go about getting a WBVolume for a volume without a volume path?
Here's the volume info I have:



VolumeLabel :
MountPath :
MountPoint : \?Volume{b193b193-0000-0000-0000-406b3b000000}
FileSystem : NTFS
Property : Critical, ValidSource
FreeSpace : 367382528
TotalSpace : 854589440


I am trying to remove it from a WBPolicy but to remove it, it must be specified some thing like this:
$Volume = Get-WBVolume -VolumePath "?"



so a cmdlet like this will work Remove-WBVolume -Policy $Policy -Volume $Volume







powershell






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 11 '18 at 17:03









Ƭᴇcʜιᴇ007

98.9k14156212




98.9k14156212










asked Dec 11 '18 at 16:59









Keith VinsonKeith Vinson

1112




1112












  • Can you select the volume and pipe it to Remove-WBVolume?
    – root
    Dec 11 '18 at 17:32










  • Yea, that's the issue I have no way to select it, as best as I can tell to use the Get-WBVolume to select the volume you need to specify the VolumePath. the only way I can get it to list is with the Get-WBVolume -AllVolumes, Which show me all of the volumes known to WB. But I can't seem to figure out how to list it individually
    – Keith Vinson
    Dec 11 '18 at 18:28










  • Maybe you can exclude all volumes that have a path, excuse my guesses I'm unable to test at the moment. Get-WBVolume -AllVolumes | Where-Object { $_.MountPath -eq $null }
    – root
    Dec 11 '18 at 19:14










  • Good try, Thanks. But no dice. After I the ran your command (no errors reported) I dumped the variable $Volume. The variable $Volume was empty...Rats
    – Keith Vinson
    Dec 12 '18 at 23:07


















  • Can you select the volume and pipe it to Remove-WBVolume?
    – root
    Dec 11 '18 at 17:32










  • Yea, that's the issue I have no way to select it, as best as I can tell to use the Get-WBVolume to select the volume you need to specify the VolumePath. the only way I can get it to list is with the Get-WBVolume -AllVolumes, Which show me all of the volumes known to WB. But I can't seem to figure out how to list it individually
    – Keith Vinson
    Dec 11 '18 at 18:28










  • Maybe you can exclude all volumes that have a path, excuse my guesses I'm unable to test at the moment. Get-WBVolume -AllVolumes | Where-Object { $_.MountPath -eq $null }
    – root
    Dec 11 '18 at 19:14










  • Good try, Thanks. But no dice. After I the ran your command (no errors reported) I dumped the variable $Volume. The variable $Volume was empty...Rats
    – Keith Vinson
    Dec 12 '18 at 23:07
















Can you select the volume and pipe it to Remove-WBVolume?
– root
Dec 11 '18 at 17:32




Can you select the volume and pipe it to Remove-WBVolume?
– root
Dec 11 '18 at 17:32












Yea, that's the issue I have no way to select it, as best as I can tell to use the Get-WBVolume to select the volume you need to specify the VolumePath. the only way I can get it to list is with the Get-WBVolume -AllVolumes, Which show me all of the volumes known to WB. But I can't seem to figure out how to list it individually
– Keith Vinson
Dec 11 '18 at 18:28




Yea, that's the issue I have no way to select it, as best as I can tell to use the Get-WBVolume to select the volume you need to specify the VolumePath. the only way I can get it to list is with the Get-WBVolume -AllVolumes, Which show me all of the volumes known to WB. But I can't seem to figure out how to list it individually
– Keith Vinson
Dec 11 '18 at 18:28












Maybe you can exclude all volumes that have a path, excuse my guesses I'm unable to test at the moment. Get-WBVolume -AllVolumes | Where-Object { $_.MountPath -eq $null }
– root
Dec 11 '18 at 19:14




Maybe you can exclude all volumes that have a path, excuse my guesses I'm unable to test at the moment. Get-WBVolume -AllVolumes | Where-Object { $_.MountPath -eq $null }
– root
Dec 11 '18 at 19:14












Good try, Thanks. But no dice. After I the ran your command (no errors reported) I dumped the variable $Volume. The variable $Volume was empty...Rats
– Keith Vinson
Dec 12 '18 at 23:07




Good try, Thanks. But no dice. After I the ran your command (no errors reported) I dumped the variable $Volume. The variable $Volume was empty...Rats
– Keith Vinson
Dec 12 '18 at 23:07










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382692%2fin-powershell-how-to-get-a-get-wbvolume-without-a-volume-path%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382692%2fin-powershell-how-to-get-a-get-wbvolume-without-a-volume-path%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар