0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

powershell 共有フォルダ(ネットワークドライブ)の接続の仕方

Last updated at Posted at 2018-07-24

1.概要

powershellでネットワークドライブに接続する方法。
自分用の覚書なので悪しからず。

2.環境

powershell : 5.1

3.コード

net_use.ps1
net use ドライブ名 /delete #ネットワークドライブの接続を切断
net use ドライブ名 \\コンピュータ名\共有名 パスワード /user:コンピュータ名\ユーザー名 #接続

4.コード補足説明

ネットワークドライブは接続済みの場合、正しく挙動しない場合があるので一旦切断している

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?