Solved

Creating REFS volumes with PowerShell

Posted on 2016-08-18
4
81 Views
Last Modified: 2016-09-10
I'm trying to create an REFS formatted volume for my Exchange 2016 server.  I'm using the following powershell command to attempt to do so and everytime I run this it fails with an error


get-disk 1| Initialize-Disk -PartitionStyle GPT -PassThru|New-Partition -AssignDriveLetter -UseMaximumSize|Format-Volume -DriveLetter D -FileSystem REFS -NewFileSystemLabel "Exchange Data" -SetIntegrityStreams $false

Format-Volume : The input object cannot be bound to any parameters for the command either because the command does no
take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
At line:1 char:89
+ get-disk 1| Initialize-Disk -PartitionStyle GPT -PassThru|New-Partition -UseMaxi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (MSFT_Partition ...et = 135266304):PSObject) [Format-Volume], Paramete
   BindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Format-Volume

If I run the command without -assigndriveletter and -drive letter no issues.  I'm trying to do everything in one command.

et-disk 1| Initialize-Disk -PartitionStyle GPT -PassThru|New-Partition -UseMaximumSize|Format-Volume -FileSystem REFS -NewFileSystemLabel "Exchange Data" -SetIntegrityStreams $false
0
Comment
Question by:georgedschneider
  • 2
4 Comments
 
LVL 68

Expert Comment

by:Qlemo
ID: 41762302
Logic dictates that the combination of New-Partition -AssignDriveLetter and Format-Volume -DriveLetter D does not make sense. It should work if you just remove the -DriveLetter D from Format-Volume - you do not need to specify the partition by using the drive letter, you already provided the partition object via pipeline.
0
 

Author Comment

by:georgedschneider
ID: 41762897
How would I tell the command what drive letter to assign if I ran the below:

get-disk 1| Initialize-Disk -PartitionStyle GPT -PassThru|New-Partition -AssignDriveLetter -UseMaximumSize|Format-Volume -FileSystem REFS -NewFileSystemLabel "Exchange Data" -SetIntegrityStreams $false
0
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points (awarded by participants)
ID: 41765349
get-disk 1|
  Initialize-Disk -PartitionStyle GPT -PassThru |
  New-Partition -AssignDriveLetter -DriveLetter D -UseMaximumSize | 
  Format-Volume -FileSystem REFS -NewFileSystemLabel "Exchange Data" -SetIntegrityStreams $false

Open in new window

if I read the docu correctly.
0

Featured Post

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now