PowerShell 3 – Attempting to perform the InitializeDefaultDrives operation on the ‘FileSystem’ provider failed.

Hi folks

I found that after upgrade PowerShell to version 3 you may discover the following error on startup:

Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.

The most probably this is caused by disconnected network drive in My computer

network-location

You can try to disconnect unused drives.

You can also try to fix it by setting some registry key using the following PowerShell script:

Set-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLinkedConnection -Value 1 -Type DWord
Advertisements

About mnaoumov

Senior .NET Developer in Readify
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

2 Responses to PowerShell 3 – Attempting to perform the InitializeDefaultDrives operation on the ‘FileSystem’ provider failed.

  1. David Zokaites says:

    It’s nice to clear that error. I never would have guessed that this file system error was related to network drives, thanks for figuring it out for me. : – )

  2. Deepak Sharma says:

    I’m facing this error while creating a commit in Git. Tried the above solution but no luck!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s