查詢遠端有什麼share folder
wmic /note:"test-pc"
share list
or
share list brief
wmic:root\cli>share list brief
Description Name Path
Outlook Personal C:\Documents and Settings\adminuser.INTRANET\Lo.....
遠端 IPC IPC$
預設共用 D$ D:\
遠端管理 ADMIN$ C:\WINDOWS
預設共用 C$ C:\
看到想要刪除的share folder name。EX:Outlook Personal
wmic:root\cli>share where name="outlook personal" call delete
Execute (\\test-pc\ROOT\CIMV2:Win32_Share.Name="Outlook Personal")->delete() (Y/N/?)? Y
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 0;
其它參考資訊
http://theinterw3bs.com/wiki/index.php?title=WMIC_Commands#Display_Shares
http://hi.baidu.com/99168/blog/item/2cb7580facf673276159f37c.html
沒有留言:
張貼留言