-
Notifications
You must be signed in to change notification settings - Fork 0
Format RemoteDrive
Mateusz Czerniawski edited this page Feb 20, 2018
·
3 revisions
PPoShTools -> Format-RemoteDrive.ps1
Formats all RAW drives on a remote system.
Format-RemoteDrive [-ComputerName] <String> [[-NewFileSystemLabel] <String>]
[[-FileSystem] <String>] [[-Credential] <Object>] [<CommonParameters>]
Using Invoke-Command will connect to remote system (ComputerName) and will format all RAW drives with given properties
Name of a remote system to connect to using Invoke-Command.
- PipelineInput: true (ByValue, ByPropertyName)
- Required: true
Drive label (i.e. "MyData") for all drives to be formatted.
- PipelineInput: true (ByValue, ByPropertyName)
- Required: false
FileSystem to be choosen for drives (ReFS and NTFS available)
- Valid values: NTFS, ReFS
- PipelineInput: true (ByValue, ByPropertyName)
- Required: false
Alternate credentials to use to connect to ComputerName
- PipelineInput: true (ByValue, ByPropertyName)
- Required: false
Format-RemoteDrive -ComputerName SomeServer -NewFileSystemLabel DATA -FileSystem ReFS -Credential (Get-Credential)
Will connect to SomeServer using given credentials and will format all RAW drives to ReFS with DATA label