Reference Guide

-list
compname=<com
p_name>
Display all SPNs for the specified FQDN server, both for the SMB server and for
the KDC Windows AD entry.
-add <SPN>
compname=<com
p_name>,domain
=<full_domain_n
ame>,admin=<ad
min_name>
Add the specified SPN to both the NAS server and AD.
-delete <SPN> Delete the specified SPN for both the NAS server and AD.
-smbhash
Troubleshoot issues with the Microsoft Windows Branch caching mechanism. BranchCache V1 and
BranchCache V2 are supported.
Usage:
svc_nas_cifssupport --server SERVERNAME | ALL -args="-smbhash
-hashgen <path> [-recursive] [-minsize <size>]
| -hashdel <path> [-recursive]
| -abort <id>
| -info
| -fsusage <fs_name>
| -exclusionfilter <filter>
| -audit {enable | disable} [-task] [-service] [-access]
| -cleanup <fs_name> [-all | -unusedfor <days> | -unusedsince
<date>]"
-hashgen <path>
[-recursive] [-
minsize <size>]
Generate all SMB hash files for the specified path. If -recursive is used, the
SMB hash is recursively generated for the subdirectories.
-hashdel <path>
[-recursive]
Delete all SMB hash files for the specified path.
-abort <id> Cancel the specified pending or ongoing request (hash file generation or deletion).
The ID for the request is in the output of -info.
-info Show detailed information for the hash generation service.
-fsusage
<fs_name>
Display the SMB hash file disk usage for the specified file system.
-exclusionfilter
<filter>
Do not generate an SMB hash file for files that match the exclusion filter.
-audit {enable |
disable} [-task]
[-service] [-
access]
Enable the generation of audits in the smbhash event log.
-cleanup
<fs_name> [-all |
-unusedfor
<days> | -
unusedsince
<date>
Clean up the SMB hash files for the specified file system.
-Unjoin
Unjoin the specified machine from its AD domain. If dynamic DNS is employed, the entry is removed from
AD and DNS. The password for the specified account with domain administrator privileges must be
provided when prompted.
Usage:
svc_nas_cifssupport --server SERVERNAME | ALL -args="-Unjoin
-compname <comp_name> -domain <full_domain_name> -admin
<admin_name>"
Service Commands
49