Set-SCStorageFileServer
VMM 관리에서 스토리지 파일 공유를 추가하거나 제거합니다.
Syntax
Set-SCStorageFileServer
-StorageFileServer <StorageFileServer>
[-JobGroup <Guid>]
[-Description <String>]
[-RemoveStorageFileShareFromManagement <StorageFileShare[]>]
[-AddDiskWitnessFromStoragePool <StoragePool>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCStorageFileServer
-AddExistingComputer <String[]>
-StorageFileServer <StorageFileServer>
[-JobGroup <Guid>]
[-Description <String>]
[-SkipClusterValidation]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCStorageFileServer
-RemoveExistingComputer <StorageFileServerNode[]>
-StorageFileServer <StorageFileServer>
[-JobGroup <Guid>]
[-CleanupDisks]
[-Description <String>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCStorageFileServer
-StorageFileServer <StorageFileServer>
[-JobGroup <Guid>]
[-Description <String>]
-AddStorageFileShareToManagement <StorageFileShare[]>
[-StorageClassificationAssociation <StorageClassification[]>]
[-RemoveStorageFileShareFromManagement <StorageFileShare[]>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Set-SCStorageFileServer
-StorageFileServer <StorageFileServer>
[-JobGroup <Guid>]
[-Description <String>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Description
참고
새 매개 변수 [-DCBSettings] 가 VMM 2019 UR1 이상에 포함됩니다. 자세한 내용은 매개 변수를 참조하세요.
Set-SCStorageFileServer cmdlet은 VMM(Virtual Machine Manager) 관리에서 스토리지 파일 공유를 추가하거나 제거합니다.
예제
예제 1: VMM 관리에 스토리지 파일 공유 추가
PS C:\> $FileServer = Get-SCStorageFileServer -Name "FileServer01.Contoso.com"
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> Set-SCStorageFileServer -StorageFileServer $FileServer -AddStorageFileShareToManagement $FileShare
첫 번째 명령은 Get-SCStorageFileServer cmdlet을 사용하여 FileServer01이라는 스토리지 파일 서버 개체를 가져옵니다. 명령은 해당 개체를 $FileServer 변수에 저장합니다.
두 번째 명령은 Get-SCStorageFileShare cmdlet을 사용하여 FileShare01이라는 스토리지 파일 공유 개체를 가져옵니다. 명령은 해당 개체를 $FileShare 변수에 저장합니다.
마지막 명령은 VMM 관리에서 FileShare01을 가져옵니다.
예제 2: VMM 관리에서 스토리지 파일 공유 제거
PS C:\> $FileServer = Get-SCStorageFileServer -Name "FileServer01.Contoso.com"
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> Set-SCStorageFileServer -StorageFileServer $FileServer -RemoveStorageFileShareFromManagement $FileShare
첫 번째 명령은 FileServer01이라는 스토리지 파일 서버 개체를 가져오고 해당 개체를 $FileServer 변수에 저장합니다.
두 번째 명령은 FileShare01이라는 스토리지 파일 공유 개체를 가져오고 해당 개체를 $FileShare 변수에 저장합니다.
마지막 명령은 VMM 관리에서 FileShare01을 제거합니다.
매개 변수
-AddDiskWitnessFromStoragePool
스토리지 풀 개체를 지정합니다.
Type: | StoragePool |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AddExistingComputer
이 cmdlet에서 추가하는 컴퓨터의 배열을 지정합니다. 운영 체제가 있는 네트워크에 있는 서버의 FQDN(정규화된 도메인 이름), NetBIOS 이름 또는 IP 주소를 지정합니다.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AddStorageFileShareToManagement
VMM을 통해 지정된 스토리지 파일 공유를 관리할 수 있습니다.
Type: | StorageFileShare[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CleanupDisks
{{Fill CleanupDisks Description}}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DCBSettings
클러스터에 구성된 DCB 설정을 지정합니다.
참고
이 매개 변수는 VMM 2019 UR1 이상에 적용할 수 있습니다.
Type: | DCBSettings |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
스토리지 파일 서버에 대한 설명을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobGroup
동일한 작업 그룹 식별자를 포함하는 최종 명령이 실행되기 직전에 집합으로 실행되는 일련의 명령에 대한 식별자를 지정합니다.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
작업 진행률을 추적하고 저장하는 변수를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
이 작업을 트리거한 PRO 팁(성능 및 리소스 최적화 팁)의 ID를 지정합니다. 이 매개 변수를 사용하면 PRO 팁을 감사할 수 있습니다.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveExistingComputer
이 cmdlet에서 제거하는 컴퓨터의 배열을 지정합니다. 운영 체제가 있는 네트워크에 있는 서버의 FQDN, NetBios 이름 또는 IP 주소를 지정합니다.
Type: | StorageFileServerNode[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveStorageFileShareFromManagement
이 cmdlet이 VMM 관리에서 제거하는 스토리지 파일 공유의 배열을 지정합니다.
Type: | StorageFileShare[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
컨트롤이 명령 셸로 즉시 반환되도록 작업이 비동기적으로 실행됨을 나타냅니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SkipClusterValidation
이 cmdlet은 클러스터를 만들 때 클러스터 유효성 검사 테스트를 건너뛰는 것을 나타냅니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageClassificationAssociation
스토리지 풀과 연결된 스토리지 분류 개체의 배열을 지정합니다.
Type: | StorageClassification[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageFileServer
스토리지 파일 서버 개체를 지정합니다.
Type: | StorageFileServer |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
출력
StorageFileServer
이 cmdlet은 StorageFileServer 개체를 반환합니다.