Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Provider setting question/confusion

$
0
0

 am puzzled by the PowerShell syntax and/or Provider concepts.

Possibly someone can set me straight.

Consider the variable $strXX = \\192.168.0.240\Test\ZZZ

    Set-Location $strXX sets the current location to the variable value

Of more interest is that in front of all further prompts is text ‘Microsoft.PowerShell.Core\FileSystem::'

My assumption is that this is the current the Provider

If I change Providers, e.g.

   Set-Location Env:

Then all future prompts indicate that the Provider - in this case Env.

 

 

Two questions ...

How do I change the Provider back to the file system ‘Microsoft.PowerShell.Core\FileSystem::'

Put differently, what did I do to have PowerShell pick the ‘Microsoft.PowerShell.Core\FileSystem::' Provider in my initial  Set-Location command.

Any help would be appreciated since there must be some concept here I am missing.

Normal 0 false false false EN-US X-NONE X-NONE


Viewing all articles
Browse latest Browse all 6937

Trending Articles