Prihláste sa s kontom Microsoft
Prihláste sa alebo si vytvorte konto.
Dobrý deň,
Vyberte iné konto.
Máte viacero kont
Vyberte konto, s ktorým sa chcete prihlásiť.
angličtina
Ľutujeme, tento článok nie je dostupný vo vašom jazyku.

Summary

This article describes how to create a share on a remote computer by using the Windows Management Instrumentation Command-Line tool (WMIC).

More Information

Note: To use this feature, you must have administrative permissions, and the folder that you want to share must already exist on the target computer.

You can access Windows Management Instrumention (WMI) by using WMIC. Although you can share an existing folder, you cannot set the permissions on the share directly from WMIC.
To create a share on a remote computer by using WMIC:

  1. At a command prompt, type wmic, and then press ENTER.

  2. Type /node:computer name where computer nameis the name of the target computer. If you want to pass administrator credentials, type /user:"domain\username", to receive a prompt for a password.

  3. Type the following line where
    c:\test is the path to the folder that you want to share:

    share call create "", "this is the comments section", "maximum number of connections", "this is the share name", "", "C:\test", 0

For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:

290216 A Description of the WMI Command-Line Utility

295292 How to Set WMI Namespace Security

Potrebujete ďalšiu pomoc?

Chcete ďalšie možnosti?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Boli tieto informácie užitočné?

Čo sa vám páčilo, prípadne čo nie?
Stlačením tlačidla Odoslať sa vaše pripomienky použijú na zlepšenie produktov a služieb spoločnosti Microsoft. Váš správca IT bude môcť tieto údaje zhromažďovať. Vyhlásenie o ochrane osobných údajov.

Ďakujeme za vaše pripomienky!

×