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

Newbie question --

$
0
0

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

I am a rank novice at PowerShell.  I decided to plow through an on-line tutorial and try some scripting activity to delete old files on a video server.

For reasons I do not understand I cannot access various PowerShell Providers as discussed in the tutorial and on other resources available to review

PS C:\scripts> get-PSDrive yields a list of PowerShell Providers

Set-Location Env      fails with

Set-Location : Cannot find path 'C:\scripts\ENV' because it does not exist.

At line:1 char:13

+ Set-Location <<<<  ENV

    + CategoryInfo          : ObjectNotFound: (C:\scripts\ENV:String) [Set-Location], ItemNotFoundException

    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

 

The same result occurs for non-disk providers.

Set-Location Function

Set-Location Variable

etc. 

There must be something basic I am missing here.

The operational enlivenment is Windows 7 Professional.

 

 


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images