< Back

Set-PhpDownloadCache

Sat Jan 18, 2020 6:49 pm

NAME Set-PhpDownloadCache



SYNOPSIS

Sets the path to a local directory where downloaded files should be cached.





SYNTAX

Set-PhpDownloadCache [[-Path] <String>] [[-Persist] <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Path <String>

The path to a local directory.

If Path does not exist, it will be created.

If Path is not specified (or if it's an empty directory), the cache will be disabled.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Persist <String>

If set and not 'No', this setting should be persisted for the current user ('CurrentUser'), for any user

('AllUsers').



Required? false

Position? 2

Default value No

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-PhpDownloadCache C:\\Download\\Cache













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-PhpDownloadCache C:\\Download\\Cache CurrentUser













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Set-PhpDownloadCache C:\\Download\\Cache AllUsers













-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Set-PhpDownloadCache













-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Set-PhpDownloadCache '' CurrentUser













-------------------------- EXAMPLE 6 --------------------------



PS C:\\>Set-PhpDownloadCache '' AllUsers















RELATED LINKS