16 questions
2
votes
1
answer
57
views
Is it possible to use Copy-Item between providers via a custom implementation of CopyItem in a provider?
Background
I am using the google cloud sdk which implements a provider to its storage service. Inside this provider, I can gci and cd around just fine, but when I want to cp an object onto my local ...
1
vote
1
answer
89
views
PSProvider development: Get-ChildItem calls GetItem
I have a class that extends ContainerCmdletProvider, in which I've overridden the following methods: NewDrive, IsValidPath, ItemExists, HasChildItems, GetItem and GetChildItems.
I can create a new ...
1
vote
0
answers
65
views
Adding tab completion to the ItemType parameter of "New-Item" for a custom PowerShell provider
I am creating a custom PowerShell provider using PowerShellStandard.Library.
When implementing the New-Item cmdlet, I would like to be able to provide support for argument completion of the -ItemType ...
0
votes
1
answer
3k
views
Powershell "Provider execution stopped because the provider does not support this operation."
I am trying to write a script to check a remote server for a certificate by FriendlyName. Once this is returned I want to confirm a removal of this cert.
Currently the code below returns "Provider ...
1
vote
2
answers
438
views
Loading a Powershell Module from the C# code of a custom Provider
I've been working on a VERY specific functionality "need" to tie into a custom Provider I'm writing in C#.
Basically I set out to find a way to replicate the
A:
B:
etc functions defined when ...
0
votes
2
answers
306
views
Powershell Provider - GetItem Path Error - Custom File as Drive
I'm trying to emulate my custom project file as new PS Drive. I am trying to create my custom Powershell Provider that is derived from NavigationCmdletProvider. I have overridden PSDriveInfo to read ...
2
votes
1
answer
749
views
Set-Location Powershell provider
I'm having some trouble browsing a powershell I have created.
I have implemented the methods listed here
The documentation also says
Set-Location: This cmdlet sets the current working location to ...
0
votes
1
answer
775
views
How does the command "cd WSMan:\localhost\shell" work? How can I reproduce it?
I am able to use Powershell to configure WinRM using a special "cd" command. Can anyone explain how it works and how I can implement that type of plug in for my own app?
2
votes
4
answers
1k
views
PowerShell provider relative path tab-completion issue
I've implemented a simple PowerShell NavigationCmdletProvider.
For those who don't know, this means I can create a snap-in with a cmdlet which is effectively a virtual filesystem drive; this drive ...
6
votes
1
answer
1k
views
In a PowerShell Provider, when do you refresh vs cache data?
I am writing a PowerShell provider in C#. The provider exposes an applications domain objects through a drive-like interface. For example:
my:\Users\[email protected]
my:\Customers\Marty
This data ...
2
votes
2
answers
517
views
How to support powershell tab expansion in psprovider?
I'm implementing Powershell PSProvider for some internal hierarchical data. Everything works fine, I can navigate through the tree with usual cd/dir commands, the only thing doesn't work is tab ...
2
votes
2
answers
4k
views
PowerShell custom provider RemoveItem
I'm implementing a custom PowerShell provider. I'm now working on the remove-item cmdlet implementation.
The RemoveItem method has the following signature:
protected override void RemoveItem(string ...
1
vote
1
answer
906
views
PowerShell InitializeDefaultDrive
In my custom powershell provider I want the user to be able to skip the internal call to InitializeDefaultDrives.
The InitializeDefaultDrives method is called when the provider starts. I guess this ...
2
votes
1
answer
1k
views
How to make zip etc. files appear as folders in PowerShell?
How can I make zip etc. files appear as folders in powershell? Does PowerShell have a concept of folder (item) providers akin to drive providers? Can this be done without implementing a drive provider?...
1
vote
1
answer
602
views
How do I persist Powershell provider drive information?
In my Powershell provider, which is a business-logic layer over an SQL database, the Powershell drives equate to database connection settings. This collection of connection settings is persisted to ...