Merge branch 'main' of http://portal.ralfkoop.de/ralfk/zettelkasten
This commit is contained in:
commit
961dc54218
6
Eingang/Csharp.md
Normal file
6
Eingang/Csharp.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# C\# oder Csharp
|
||||||
|
|
||||||
|
|
||||||
|
Operatoren = ??
|
||||||
|
?? und ??=: die NULL-Sammeloperatoren
|
||||||
|
siehe hierzu https://learn.microsoft.com/de-de/dotnet/csharp/language-reference/operators/null-coalescing-operator
|
24
Powershellscripts/get-securestorecredentials.ps1
Normal file
24
Powershellscripts/get-securestorecredentials.ps1
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
|
||||||
|
#Any web application associated with SSS proxy application or central admin
|
||||||
|
$WebAppURL="https://collaboration-int.bauer-de.bauermedia.group"
|
||||||
|
|
||||||
|
#Establish the Context
|
||||||
|
$Provider = New-Object Microsoft.Office.SecureStoreService.Server.SecureStoreProvider
|
||||||
|
$Provider.Context = Get-SPServiceContext -Site $WebAppURL
|
||||||
|
|
||||||
|
#Get All Target Applications
|
||||||
|
$TargetApps = $provider.GetTargetApplications()
|
||||||
|
foreach ($App in $TargetApps)
|
||||||
|
{
|
||||||
|
Write-Output $App.Name
|
||||||
|
|
||||||
|
#Get the credentials for the App
|
||||||
|
$Credentials = $provider.GetCredentials($App.Name)
|
||||||
|
foreach ($Cred in $Credentials)
|
||||||
|
{
|
||||||
|
$EncryptString = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($cred.Credential)
|
||||||
|
$DecryptString = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($EncryptString)
|
||||||
|
|
||||||
|
Write-Output "$($cred.CredentialType): $($DecryptString)"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user