スコア
28
Advertisement
回答 (7)
スコア
26
2011-12-01 18:56:41 +0000
コマンドラインで(ドライブ文字を z に置き換えてください):
net use z: /delete
William Jackson
http://superuser.stackexchange.com/users/107722
Advertisement
解決策が見つかりました
Advertisement
スコア
2
2016-03-04 16:38:54 +0000
マップされたネットワークドライブへのデッドリンクを取り除くために、もっと強力な方法があります。
レジストリ内の参照を削除することができます。
「regedit.exe」を開き、キー「HKEY_CURRENT_USER」とキー「Network」を展開してください。すると、マップされたドライブレターを表す文字が書かれたキーが表示されます。regedit.exe」で文字を削除すると、次のWindows再起動時にマップされたドライブ文字が消えてしまいます。
DrupalFever
http://superuser.stackexchange.com/users/107722
Advertisement
スコア
1
2015-05-22 03:29:44 +0000
接続が切断されたドライブについては、お使いのPCにSQL Server Management Studioがある場合は、このクエリを実行してください。
Exec master.dbo.xp_cmdshell 'net use x: /delete'
- ドライブ名に応じて'x'を変更してください。
- 他のデータベースで動作するかどうかはわかりません。
- xp_cmdshell が動作していないか、アクティブでない場合、このエラーが発生します。
SQL Server blocked access to procedure ‘sys.xp_cmdshell’ of component ‘xp_cmdshell’ of component ‘xp_cmdshell’ because this component is turned off as part of the security configuration for this server. システム管理者は、sp_configure を使用して、'xp_cmdshell’ を有効にすることができます。xp_cmdshell’ を有効にする方法の詳細は、SQL Server Books Online の「表面積構成」を参照してください。
このクエリを実行してxp_cmdshellを有効にします。
-- To allow advanced options to be changed.
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO
Advertisement