
當我在 Powershell 中執行這段程式碼時:
net use \\$computerName\c$\ $adminPW /user:$adminUN /Persistent:No
我得到:
System error 53 has occurred.
The network path was not found.
但是,如果我運行:
net use \\$computerName\c$\subfolder $adminPW /user:$adminUN /Persistent:No
假設存在它會成功執行subfolder
。為什麼會發生這種情況?我運行此程式碼是為了最終在 中建立一個資料夾c$
,也許還有其他方法?