Quick start (Windows)
This guide explains how to create an SMB file system in the CFS console and mount it to a Baidu Cloud Compute (BCC) instance (Windows) for data reading and writing.
Prerequisites
- The Cloud File System (CFS) service has been activated. When signing into the Cloud File System (CFS) console for the first time, you need to activate the CFS service as guided on the page.
- The target BCC instance has been created for mounting the CFS file system. For BCC creation methods, refer to: Quick Configuration of Windows Cloud Servers.
Mounting steps
Step 1: Create a CFS file system
- Click "Create File System" in the CFS console.
- On the Create File System panel, fill in details such as the file system name, availability zone, protocol type, and storage class. For detailed parameter descriptions, refer to Create File System.
Description:
①For optimal performance, it is recommended to deploy CFS file systems in the same availability zone as BCC instances
②This document selects the SMB, indicating that BCC instances running Windows OS will mount and access the CFS file system via SMB

- Click "OK" and follow the on-screen instructions to complete the creation of the CFS file system.
Step 2: Create mount target
- Click the File System Name in CFS console to access the Basic Information page
- Click Add Mount Target, and select the subnet and permission group in the pop-up page. For more permission group details, refer to Permission Group Management
- Click Confirm to view the mount target information. Please record the domain name of a mount target (cfs-***.baidubce.com) here for subsequent mount operations.

Step 3: Mount CFS file system
- Sign in to the target BCC instance in the BCC console. This document uses VNC for login. For other login methods, refer to Baidu Cloud Compute (BCC) Login Methods.
- After login, open PowerShell or the cmd command line in the target BCC instance and execute the following mount command
1net use <Client Local Drive Letter>: \\<Domain Name of a Mount Target>\cfs
Description:
is the local drive letter of the CFS file system to be mounted (e.g., z) and cannot be duplicated with existing drive letters; can be found in the file system’s mount target list (see Step 2); - cfs is a fixed SMB share name and cannot be modified.
Example:
1net use z: \\cfs-***.lb-b768ef66.cfs.bj.baidubce.com\cfs
Step 4: Verify the mount
- After mounting, you can use Windows Command Line or PowerShell to view the mounted file systems with the following commands.
1net use
Alternatively, you can open Windows Explorer to check the drive letters in the network locations.

- Once mounted successfully, the CFS file system can be accessed and used like a regular local directory on the BCC.
Unmounting steps
- Sign in to the Baidu Cloud Compute (BCC) where the CFS file system is mounted.
- To unmount the file system, use the following command.
1net use <Target Drive Letter>: /del
2 ## Among which, <target drive letter> refers to the local drive letter of the CFS file system to be unmounted.
- Execute the
net usecommand to check unmounting results. If the mounted CFS file system information is not found in the echo, it means the file system's directory has been successfully unmounted.
FAQs
How to resolve system error 1272?
If Windows Server displays the following error (System Error 1272), it is because Windows security policies block users accessing SMB file systems via Guest Auth

Solution: Run the following PowerShell command as administrator
1reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f
2net stop lanmanworkstation /y ; net start lanmanworkstation ; net start SessionEnv
Alternatively, run the following cmd as an administrator:
1reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f
2net stop lanmanworkstation /y && net start lanmanworkstation && net start SessionEnv
