Condividi tramite


Filescrn filegroup modify

 

Applies To: Windows Server 2008

Modifies an existing file group.

Note

To use this command, you must be logged on as an administrator or a member of the Administrators group.

For examples of how to use this command, see Examples.

Syntax

filescrn filegroup modify /filegroup:<FgName> 
   [/new-filegroup:<NewFgName>] [/members:<Members>] 
   [/nonmembers:<NonMembers>] [/remote:<ComputerName>]

Parameters

Parameter

Description

/filegroup:<FgName>

Modifies the file group with name FgName. If the file group name contains a space, enclose the name in quotation marks.

/new-filegroup:<NewFgName>

Renames the file group to NewFgName. If the new file group name contains a space, enclose the name in quotation marks

/members:<Members>

Specifies file name patterns that are included in the file group (members).

Members is a list of one or more file name patterns. If the list contains more than one file name pattern, enclose Members in quotation marks and separate patterns with a pipe character (|). Wildcard characters can be used in file name patterns.

/nonmembers:<NonMembers>

Specifies file name patterns that are excluded from the group (nonmembers).

NonMembers is a list of one or more file name patterns. If the list contains more than one file name pattern, enclose NonMembers in quotation marks and separate patterns with a pipe character (|). You can use wildcard characters in file name patterns.

/remote:<ComputerName>

Performs the operation on the remote computer ComputerName.

Remarks

  • The shortest sequence of characters that uniquely identifies a parameter can be used as an abbreviation. For example, the following two commands are equivalent:

    filescrn f m /f:"Log Files" /ne:"History Files"
    filescrn filegroup modify /filegroup:"Log Files" /new-filegroup:"History Files"
    
  • To perform operations on a remote computer by using the **/remote:**ComputerName parameter:

    • You must be logged on with a domain account that is a member of the Administrators group on both the local computer and the remote computer.

    • The remote computer must be running Windows Server 2008, and File Server Resource Manager must be installed.

    • The Remote File Server Resource Manager Management exception on the remote computer must be enabled. You enable this exception by using Windows Firewall in Control Panel.

Examples

  • To exclude the file ~syslog.tmp from the Temporary Files group, type:

    filescrn filegroup modify /filegroup:"Temporary Files" /nonmembers:~syslog.tmp
    
  • To change the name of the Log Files group to History Files, type:

    filescrn filegroup modify /filegroup:"Log Files" /new-filegroup:"History Files"
    

Additional references

Command-Line Syntax Key

Filescrn filegroup