| external help file | Module Name | online version | schema |
|---|---|---|---|
PSWriteOffice-help.xml |
PSWriteOffice |
2.0.0 |
Protects a Word document with a password.
Protect-OfficeWordDocument [-Password] <string> [-Document <WordDocument>] [-ProtectionType <DocumentProtectionValues>] [-PassThru] [<CommonParameters>]Protects a Word document with a password.
PS>Protect-OfficeWordDocument -Password 'secret'Applies read-only protection to the current document.
Document to protect when provided explicitly.
Type: WordDocument
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueEmit the protected document.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePassword to apply.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueProtection type (defaults to ReadOnly).
Type: DocumentProtectionValues
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
OfficeIMO.Word.WordDocument
System.Object
- None