SCCMWebService..::..SetCacheDirectory Method
Sets the ccm cache directory.
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public bool SetCacheDirectory( string computerName, string cacheDirectory )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function SetCacheDirectory ( _ computerName As String, _ cacheDirectory As String _ ) As Boolean
[SoapHeaderAttribute] [WebMethodAttribute] public: bool^ SetCacheDirectory( String^ computerName, String^ cacheDirectory )
Parameters
- computerName
- Type: String
Name of the computer.
- cacheDirectory
- Type: String
The cache directory.
Return Value
true if succeeded, otherwise false.Exceptions
Exception | Condition |
---|---|
Exception | Computer name must not be empty! or Cache directory must not be empty! or Unable to get DNS host name for computer + computerName + ! or Unable to delete cache on computer + computerName + because host is unreachable! or Directory + RemotecacheDirectory + not found! or Unable to stop service CcmExec on computer + computerName + ! or Unable to start service CcmExec on computer + computerName + ! |