Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Creating REFS volumes with PowerShell

Posted on 2016-08-18
4
Medium Priority
?
818 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
[X]
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
  • 2
4 Comments
 
LVL 71

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 71

Accepted Solution

by:
Qlemo earned 2000 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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

636 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