CredDrive.psm1
Add-Type -path $PSScriptRoot/CredentialManagement.dll . $PSScriptRoot/ConvertTo-PSTypeFormat.ps1 . $PSScriptRoot/CredDrive.class.ps1 function New-CredDrive ($Name = 'CredStore',[Switch]$PassThru) { $CredDrive = New-PSDrive -Name $Name -PSProvider SHIPS -Scope 2 -root 'CredDrive#CredentialManagerDrive' if ($PassThru) {$CredDrive} } |