Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Creating REFS volumes with PowerShell

Posted on 2016-08-18
4
250 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 69

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 69

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

856 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