Publish version 1.0.x #45
@ -57,9 +57,9 @@ function Connect-To {
|
|||||||
Connect-To -RemoteHost "exchange01.myside.local" -Type ExchangeHTTPS
|
Connect-To -RemoteHost "exchange01.myside.local" -Type ExchangeHTTPS
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
File Name : Connect-To.ps1
|
- File Name : Connect-To.ps1
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Requires :
|
- Requires :
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
|
@ -51,9 +51,9 @@ function Disconnect-From {
|
|||||||
Disconnect-From -RemoteHost "exchange01.myside.local" -Type ExchangeHTTPS
|
Disconnect-From -RemoteHost "exchange01.myside.local" -Type ExchangeHTTPS
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
File Name : Disconnect-From.ps1
|
- File Name : Disconnect-From.ps1
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Requires :
|
- Requires :
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
|
@ -17,22 +17,22 @@ function Test-CSConnection {
|
|||||||
[None]
|
[None]
|
||||||
|
|
||||||
.OUTPUTS
|
.OUTPUTS
|
||||||
[Boolean]
|
[bool]
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
.\Test-CMConnection -RemoteHost "r0-i01-vcr01.p0r.kivbf-cloud.net" -Type VMware
|
Test-CMConnection -RemoteHost "vcr01.internal.net" -Type VMware
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
File Name : Test-CSConnection.ps1
|
- File Name : Test-CSConnection.ps1
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Requires :
|
- Requires :
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
#>
|
#>
|
||||||
|
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
[OutputType([boolean])]
|
[OutputType([bool])]
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory = $true)]
|
[Parameter(Mandatory = $true)]
|
||||||
[ValidateNotNullOrEmpty()]
|
[ValidateNotNullOrEmpty()]
|
||||||
|
@ -32,8 +32,8 @@ function Get-CredentialStoreItem {
|
|||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
- File Name : Get-CredentialStoreItem.ps1
|
- File Name : Get-CredentialStoreItem.ps1
|
||||||
- Author : Marco Blessing - marco.blessing@googlemail.com
|
- Author : Messing - marco.blessing@googlemail.com
|
||||||
- Requires : dfgdfg
|
- Requires :
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
|
@ -31,11 +31,10 @@ function New-CredentialStoreItem {
|
|||||||
New-CredentialStoreItem -Path "C:\TMP\mystore.json" -RemoteHost "esx01.myside.local"
|
New-CredentialStoreItem -Path "C:\TMP\mystore.json" -RemoteHost "esx01.myside.local"
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : New-CredentialStoreItem.ps1
|
||||||
File Name : New-CredentialStoreItem.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
#>
|
#>
|
||||||
@ -91,15 +90,6 @@ function New-CredentialStoreItem {
|
|||||||
Write-Error @MessageParams
|
Write-Error @MessageParams
|
||||||
}
|
}
|
||||||
|
|
||||||
# Read the file content based on the given ParameterSetName
|
|
||||||
<#
|
|
||||||
if ($PSCmdlet.ParameterSetName -eq 'Private') {
|
|
||||||
$CSContent = Get-CredentialStore
|
|
||||||
}
|
|
||||||
elseif ($PSCmdlet.ParameterSetName -eq 'Shared') {
|
|
||||||
$CSContent = Get-CredentialStore -Shared -Path $Path
|
|
||||||
}
|
|
||||||
#>
|
|
||||||
$CSContent = Get-CredentialStore -Shared -Path $Path
|
$CSContent = Get-CredentialStore -Shared -Path $Path
|
||||||
|
|
||||||
$CurrentDate = Get-Date -UFormat "%Y-%m-%d %H:%M:%S"
|
$CurrentDate = Get-Date -UFormat "%Y-%m-%d %H:%M:%S"
|
||||||
|
@ -39,11 +39,9 @@ function Remove-CredentialStoreItem {
|
|||||||
Remove-CredentialStoreItem -RemoteHost "esx01.myside.local" -Identifier svc
|
Remove-CredentialStoreItem -RemoteHost "esx01.myside.local" -Identifier svc
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : Remove-CredentialStoreItem.ps1
|
||||||
File Name : Remove-CredentialStoreItem.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
|
@ -30,11 +30,9 @@ function Set-CredentialStoreItem {
|
|||||||
Set-CredentialStoreItem -Path "C:\TMP\mystore.json" -RemoteHost "esx01.myside.local" -Identifier svc
|
Set-CredentialStoreItem -Path "C:\TMP\mystore.json" -RemoteHost "esx01.myside.local" -Identifier svc
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : Set-CredentialStoreItem.ps1
|
||||||
File Name : Set-CredentialStoreItem.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
|
@ -37,11 +37,9 @@ function Test-CredentialStoreItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : Test-CredentialStoreItem.ps1
|
||||||
File Name : Test-CredentialStoreItem.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
|
@ -16,9 +16,9 @@ function Get-DefaultCredentialStorePath {
|
|||||||
$Path = Get-DefaultCredentialStorePath
|
$Path = Get-DefaultCredentialStorePath
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
File Name : Get-DefaultCredentialStorePath.ps1
|
- File Name : Get-DefaultCredentialStorePath.ps1
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Requires :
|
- Requires :
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
@ -30,7 +30,7 @@ function Get-DefaultCredentialStorePath {
|
|||||||
[switch]$Shared
|
[switch]$Shared
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {}
|
begin { }
|
||||||
|
|
||||||
process {
|
process {
|
||||||
if ($Shared.IsPresent) {
|
if ($Shared.IsPresent) {
|
||||||
@ -57,5 +57,5 @@ function Get-DefaultCredentialStorePath {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
end {}
|
end { }
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,9 @@ function Get-ModuleBase {
|
|||||||
Returns the base path as string
|
Returns the base path as string
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
File Name : Get-ModuleBase.ps1
|
- File Name : Get-ModuleBase.ps1
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Requires :
|
- Requires :
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
@ -21,9 +21,9 @@ function Get-ModuleBase {
|
|||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
[OutputType()]
|
[OutputType()]
|
||||||
param()
|
param()
|
||||||
begin {}
|
begin { }
|
||||||
process {
|
process {
|
||||||
return $MyInvocation.MyCommand.Module.ModuleBase
|
return $MyInvocation.MyCommand.Module.ModuleBase
|
||||||
}
|
}
|
||||||
end {}
|
end { }
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,9 @@ function Get-RandomAESKey {
|
|||||||
.\Get-RandomAESKey
|
.\Get-RandomAESKey
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
File Name : Get-RandomAESKey.ps1
|
- File Name : Get-RandomAESKey.ps1
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Requires :
|
- Requires :
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
@ -28,7 +28,7 @@ function Get-RandomAESKey {
|
|||||||
[OutputType([byte[]])]
|
[OutputType([byte[]])]
|
||||||
param()
|
param()
|
||||||
|
|
||||||
begin {}
|
begin { }
|
||||||
|
|
||||||
process {
|
process {
|
||||||
$key = [byte[]]::new(32)
|
$key = [byte[]]::new(32)
|
||||||
@ -40,5 +40,5 @@ function Get-RandomAESKey {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
end {}
|
end { }
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,9 @@ function Get-TempDir {
|
|||||||
Get-TempDir
|
Get-TempDir
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
File Name : Get-TempDir.ps1
|
- File Name : Get-TempDir.ps1
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Requires :
|
- Requires :
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
|
@ -40,11 +40,9 @@ function Resolve-Dependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : ResolveDependency.ps1
|
||||||
File Name : ResolveDependency.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
@ -69,7 +67,7 @@ function Resolve-Dependency {
|
|||||||
}
|
}
|
||||||
|
|
||||||
process {
|
process {
|
||||||
$SelectedDependency = $Dependency.Optional | Where-Object {$_.Name -match $Name}
|
$SelectedDependency = $Dependency.Optional | Where-Object { $_.Name -match $Name }
|
||||||
# return true if there is no dependency defined
|
# return true if there is no dependency defined
|
||||||
if ($null -eq $SelectedDependency) {
|
if ($null -eq $SelectedDependency) {
|
||||||
return $true
|
return $true
|
||||||
|
@ -34,11 +34,9 @@ function Test-Module {
|
|||||||
.\Test-Dependency -Name 'VMware.PowerCLI' -Type 'Module' -StopIfFails
|
.\Test-Dependency -Name 'VMware.PowerCLI' -Type 'Module' -StopIfFails
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : Test-Module.ps1
|
||||||
File Name : Test-Module.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
@ -58,7 +56,7 @@ Could not find the required {0} called {1}. Please install the required {0} to r
|
|||||||
[Parameter(Mandatory = $false)]
|
[Parameter(Mandatory = $false)]
|
||||||
[switch]$StopIfFails
|
[switch]$StopIfFails
|
||||||
)
|
)
|
||||||
begin {}
|
begin { }
|
||||||
|
|
||||||
process {
|
process {
|
||||||
$Message = $MessagePattern -f $Type, $Name
|
$Message = $MessagePattern -f $Type, $Name
|
||||||
@ -75,5 +73,5 @@ Could not find the required {0} called {1}. Please install the required {0} to r
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
end {}
|
end { }
|
||||||
}
|
}
|
||||||
|
@ -25,11 +25,9 @@ function Get-CredentialStore {
|
|||||||
$CSContent = Get-CredentialStore -Path "C:\TMP\mystore.json"
|
$CSContent = Get-CredentialStore -Path "C:\TMP\mystore.json"
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : Get-CredentialStore.ps1
|
||||||
File Name : Get-CredentialStore.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
#>
|
#>
|
||||||
@ -45,7 +43,7 @@ function Get-CredentialStore {
|
|||||||
[switch]$Shared
|
[switch]$Shared
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {}
|
begin { }
|
||||||
|
|
||||||
process {
|
process {
|
||||||
# Set the CredentialStore for private, shared or custom mode.
|
# Set the CredentialStore for private, shared or custom mode.
|
||||||
@ -83,6 +81,6 @@ function Get-CredentialStore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
end {}
|
end { }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -42,11 +42,10 @@ function New-CredentialStore {
|
|||||||
# Creates a new shared CredentialStore in the given location.
|
# Creates a new shared CredentialStore in the given location.
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : New-CredentialStore.ps1
|
||||||
File Name : New-CredentialStore.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
#>
|
#>
|
||||||
|
@ -15,11 +15,10 @@ function Test-CredentialStore {
|
|||||||
can be decrypted across systems.
|
can be decrypted across systems.
|
||||||
|
|
||||||
.NOTES
|
.NOTES
|
||||||
```
|
- File Name : Test-CredentialStore.ps1
|
||||||
File Name : Test-CredentialStore.ps1
|
- Author : Marco Blessing - marco.blessing@googlemail.com
|
||||||
Author : Marco Blessing - marco.blessing@googlemail.com
|
- Requires :
|
||||||
Requires :
|
|
||||||
```
|
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/OCram85/PSCredentialStore
|
https://github.com/OCram85/PSCredentialStore
|
||||||
#>
|
#>
|
||||||
@ -60,6 +59,6 @@ function Test-CredentialStore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
end {}
|
end { }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user