Publish Credential and Proxy. Intended for salt https://github.com/sabinio/salt
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Functions
LICENSE
README.md
SeaSalt.psd1
SeaSalt.psm1

README.md

SeaSalt

Import-Module SeaSalt -Force
Clear-Host
Add-Type -Path "C:\Program Files\Microsoft SQL Server\140\SDK\Assemblies\Microsoft.SqlServer.Smo.dll"
$svrConnstring = "SERVER=.;Integrated Security=True;Database=master"
$Password = "WhatIsMyPassword123"
# RunAsAccount can be one of hte following -  
# $global:RunAsAccount = "$Env:USERDOMAIN\$env:UserName"
# $global:RunAsAccount = "$Env:computername\$env:UserName"
Publish-Credential -sqlConnectionString $svrConnstring -RunAs $RunAsAccount -Password $Password
Publish-Proxy -sqlConnectionString $svrConnstring -RunAs $RunAsAccount