Public/Export-AnyStackConfiguration.ps1
|
function Export-AnyStackConfiguration { <# .SYNOPSIS Export-AnyStackConfiguration - A specialized AnyStack Enterprise tool. .DESCRIPTION Autogenerated production cmdlet for AnyStack.ConfigurationAsCode. #> [CmdletBinding(SupportsShouldProcess=$true)] param( [Parameter(Mandatory=$true)] [string]$Server ) process { $ErrorActionPreference = 'Stop' if ($PSCmdlet.ShouldProcess($Server, "Export-AnyStackConfiguration")) { try { Write-Host "[ANYSTACK] Running Export-AnyStackConfiguration on server $Server" -ForegroundColor Cyan } catch { Write-Error "Failed to execute Export-AnyStackConfiguration: $$($_.Exception.Message)" } } } } |