Windows FileServer 預設共用「D$」無法寫入 , 用「Net share」來解決

在 Server 2003 將磁碟槽設定為預設共用,再由其它台電腦以管理員身份存取分享目錄資源。正常來說登入者應該對這共用分享目錄是擁有寫入的權限,但是實際上卻只能讀不能寫。

後來設定分享的操作也重複試了幾遍,也重開機了幾次。但都還是沒辦法讓共用的磁碟槽給予登入者寫入的權限。直到發現 「net share」指令也可以用來創建分享目錄,想說就來試試看。結果一試就讓共用磁碟槽可以有寫入的權限了。

讓 「D」 磁碟槽做為預設共用「D$」,讓「administrators」群組擁有完全控制權限。

net share D$=D: /grant:administrators,full


net share syntax

net share [ShareName]
net share [ShareName=Drive:Path
	 [{/users:Number | /unlimited}]
	 [/remark:"Text"]
	 [/cache: {manual | automatic | no}]
	]
net share [ShareName
	 [{/users:Number | unlimited}]
	 [/remark:"Text"]
	 [/cache: {manual | automatic | no}]
	]
net share [{ShareName | Drive:Path} /delete]

What is these parameters

ShareName
Specifies the name of the shared resource as it should display on the network.

Drive:Path
Defines the absolute path of the directory to be shared.

/remark:"Text"
Adds a description about the resource. Do not forget to enclose it in quotation marks.

/users:Number
Used to set the maximum number of users who can simultaneously access the shared resource.

/unlimited
This setting specifies an unlimited number of users who can simultaneously access the shared resource.

/cache:manual
Enables offline client caching with manual reintegration.

/cache:automatic
Enables offline client caching with automatic reintegration.

/cache:documents
Enables automatic caching of documents from this share.

/cache:programs
Enables automatic caching of documents and programs.

/cache:no
Disables caching.

/delete
Stops sharing the shared resource.

net helpCommand
Displays Help for the specified net command.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s