full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Set-CloudUPNsToMatchEmail.ps1 | Set-CloudUPNsToMatchEmail.ps1 | <#
.SYNOPSIS
Sets up cross-tenant forwarding on mailboxes specified in a CSV file.
.DESCRIPTION
This script assists with setting up cross-tenant forwarding for migrations from one Office 365 tenant to another. It assumes that there is a CSV file available that contains
mailbox information. There should be at l... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/set-licenses1.ps1 | set-licenses1.ps1 | Set-MsolUserLicense -addlicenses "broan:ENTERPRISEPACK" -UserPrincipalName BESTSPA-Room4@broan.com
Set-MsolUserLicense -addlicenses "broan:ENTERPRISEPACK" -UserPrincipalName BESTSPA-Room4@broan.com
Set-MsolUserLicense -addlicenses "broan:ENTERPRISEPACK" -UserPrincipalName BESTSPA-Room6@broan.com
Set-MsolUserLicense ... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Set-TenantMailForwarding.ps1 | Set-TenantMailForwarding.ps1 | <#
.SYNOPSIS
Sets up cross-tenant forwarding on mailboxes specified in a CSV file.
.DESCRIPTION
This script assists with setting up cross-tenant forwarding for migrations from one Office 365 tenant to another. It assumes that there is a CSV file available that contains
mailbox information. There should be at l... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Set-O365SharedMailboxes.ps1 | Set-O365SharedMailboxes.ps1 | <#
.SYNOPSIS
Converts specified mailboxes to Shared Mailboxes.
.DESCRIPTION
.PARAMETER CsvPath
Specifies the CSV file to import to use for shared mailbox generation. The CSV must have 2 columns, Identity and Type. All other columns will be ignored.
The Identity column may contain the Name, Display name, A... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Pilot Group/Set-BroanTenantSettings.ps1 | Set-BroanTenantSettings.ps1 | # Connect to Broan Tenant
$password = get-content C:\projects\broan\broanpassword.txt | convertto-securestring
$UserCredential = new-object -typename System.Management.Automation.PSCredential -argumentlist "broan.wiz@nortek.com",$password
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri ... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Pilot Group/Set-NortekTenantSettings.ps1 | Set-NortekTenantSettings.ps1 | # Connect to Nortek Tenant
$password = get-content C:\projects\broan\nortekpassword.txt | convertto-securestring
$UserCredential = new-object -typename System.Management.Automation.PSCredential -argumentlist "broan.wiz@nortek.com",$password
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUr... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Pilot Group/Second Pilot Batch/Set-BroanUserGroup2.ps1 | Set-BroanUserGroup2.ps1 | # Connect to Broan Tenant
$password = get-content C:\projects\broan\broanpassword.txt | convertto-securestring
$UserCredential = new-object -typename System.Management.Automation.PSCredential -argumentlist "broan.wiz@nortek.com",$password
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri ... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Pilot Group/Second Pilot Batch/Set-NortekUserGroup2.ps1 | Set-NortekUserGroup2.ps1 | # Connect to Nortek Tenant
$password = get-content C:\projects\broan\nortekpassword.txt | convertto-securestring
$UserCredential = new-object -typename System.Management.Automation.PSCredential -argumentlist "broan.wiz@nortek.com",$password
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUr... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Italy Group (Best-Spa.com)/Remove-SharedUserProxyAddresses.ps1 | Remove-SharedUserProxyAddresses.ps1 | $SMTPDomainToRemove = "@best-spa.com"
$AllUsers = Get-ADUser -Filter * -SearchBase "OU=AQH,OU=Shared,OU=Accounts,DC=nortek,DC=com" -Properties proxyAddresses
Foreach($usr In $AllUsers)
{
$NewAddressList = @()
$OldAddressList = $usr.proxyAddresses
Foreach($addr In $OldAddressList)
{
If(!... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Italy Group (Best-Spa.com)/Remove-EmailAddresses.ps1 | Remove-EmailAddresses.ps1 | <#
.SYNOPSIS
Removes email addresses from relevant domains so that the domains may be moved over to the new Office 365 tenant.
.DESCRIPTION
.EXAMPLE
.LINK
.NOTES
Version: 1.0
Date: 03/30/2017
Authors: Michael Epping (mepping@concurrency.com)
Wishlist
- Better error checking and handling... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Italy Group (Best-Spa.com)/Remove-MailUserAddresses.ps1 | Remove-MailUserAddresses.ps1 | $SMTPDomainToRemove = "@best-spa.com"
$AllUsers = Get-ADUser -Filter * -SearchBase "OU=BestSPA,OU=Residential Ventilation,OU=Company,OU=Accounts,DC=nortek,DC=com" -Properties proxyAddresses
Foreach($usr In $AllUsers)
{
$NewAddressList = @()
$OldAddressList = $usr.proxyAddresses
Foreach($addr In $OldA... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Italy Group (Best-Spa.com)/Remove-DisabledAccountProxyAddresses.ps1 | Remove-DisabledAccountProxyAddresses.ps1 | $SMTPDomainToRemove = "@best-spa.com"
$AllUsers = Get-ADUser -Filter * -SearchBase "OU=_Disabled,OU=Accounts,DC=nortek,DC=com" -Properties proxyAddresses
Foreach($usr In $AllUsers)
{
$NewAddressList = @()
$OldAddressList = $usr.proxyAddresses
Foreach($addr In $OldAddressList)
{
If(!($ad... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Italy Group (Best-Spa.com)/Remove-ResourceProxyAddresses.ps1 | Remove-ResourceProxyAddresses.ps1 | $SMTPDomainToRemove = "@best-spa.com"
$AllUsers = Get-ADUser -Filter * -SearchBase "OU=AQH,OU=Resources,OU=Accounts,DC=nortek,DC=com" -Properties proxyAddresses
Foreach($usr In $AllUsers)
{
$NewAddressList = @()
$OldAddressList = $usr.proxyAddresses
Foreach($addr In $OldAddressList)
{
I... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/Set-UserLicenses.ps1 | Set-UserLicenses.ps1 | Start-Transcript
Set-MsolUserLicense -UserPrincipalName Adriano.Pierotti@broan.onmicrosoft.com -AddLicenses "broan:ENTERPRISEPACK"
Set-MsolUserLicense -UserPrincipalName Agata.Dziuba@broan.onmicrosoft.com -AddLicenses "broan:ENTERPRISEPACK"
Set-MsolUserLicense -UserPrincipalName Agnieszka.Pajak@broan.onmicrosoft.com... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/Set-NortekTenantMailPermissions.ps1 | Set-NortekTenantMailPermissions.ps1 | Get-Mailbox -Identity BESTSPA-Room4@best-spa.com | Add-MailboxPermission -AccessRights FullAccess -Automapping $false -User broan.wiz
Get-Mailbox -Identity BESTSPA-Room6@best-spa.com | Add-MailboxPermission -AccessRights FullAccess -Automapping $false -User broan.wiz
Get-Mailbox -Identity BESTSPA-Room5@best-spa.com |... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/Set-ZephyrUserAttributes.ps1 | Set-ZephyrUserAttributes.ps1 | #Create and populate the array
$zephyrUsers = @()
$zephyrUsers = Get-User -OrganizationalUnit "OU=Users,OU=Zephyr,OU=SITES,OU=BROAN,DC=broan,DC=com"
#Process each object one at a time
foreach ($user in $zephyrUsers) {
#Build username values
$Firstname = $user.FirstName.ToString()
$Lastname = ... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/Set-ItalyUserAttributes.ps1 | Set-ItalyUserAttributes.ps1 | $cerretoUsers = @()
$cerretoUsers = Get-User -OrganizationalUnit "OU=Users,OU=Cerreto D'Esi,OU=SITES,OU=BROAN,DC=broan,DC=com"
foreach ($user in $cerretoUsers) {
#Build username values
$Firstname = $user.FirstName.ToString()
$Lastname = $user.LastName.ToString()
$userName = $Firstname+$La... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/New-CloudRoomMailboxes.ps1 | New-CloudRoomMailboxes.ps1 | new-mailbox -room -PrimarySmtpAddress BESTSPA-Room4@broan.onmicrosoft.com -Name "BSRM04" -DisplayName "BSRM04"
new-mailbox -room -PrimarySmtpAddress BESTSPA-Room6@broan.onmicrosoft.com -Name "BSRM06" -DisplayName "BSRM06"
new-mailbox -room -PrimarySmtpAddress BESTSPA-Room5@broan.onmicrosoft.com -Name "BEST SPA - Room... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/Convert-MailboxesToShared.ps1 | Convert-MailboxesToShared.ps1 | Set-Mailbox -Type Shared -Identity sap_auto@broan.onmicrosoft.com
Set-Mailbox -Type Shared -Identity Volker.Adamek@broan.onmicrosoft.com
Set-Mailbox -Type Shared -Identity Agnieszka.Rusnarczyk@broan.onmicrosoft.com
Set-Mailbox -Type Shared -Identity Diego.Gentili@broan.onmicrosoft.com
Set-Mailbox -Type Shared -Iden... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/New-SharedMailboxes.ps1 | New-SharedMailboxes.ps1 | New-Mailbox -Shared -Name "sap_auto" -DisplayName "sap_auto" -OrganizationalUnit "OU=Resources,OU=Cerreto D'Esi,OU=SITES,OU=BROAN,DC=broan,DC=com" -UserprincipalName sap_auto@best-spa.com
New-Mailbox -Shared -Name "Volker Adamek" -DisplayName "Volker Adamek" -OrganizationalUnit "OU=Resources,OU=Cerreto D'Esi,OU=SITES,... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/New-RoomMailboxes.ps1 | New-RoomMailboxes.ps1 | New-Mailbox -Room -Name "BSRM04" -DisplayName "BSRM04" -OrganizationalUnit "OU=Resources,OU=Cerreto D'Esi,OU=SITES,OU=BROAN,DC=broan,DC=com" -UserprincipalName BESTSPA-Room4@best-spa.com
New-Mailbox -Room -Name "BSRM06" -DisplayName "BSRM06" -OrganizationalUnit "OU=Resources,OU=Cerreto D'Esi,OU=SITES,OU=BROAN,DC=broan... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/RemoteRoutingAddressFixup.ps1 | RemoteRoutingAddressFixup.ps1 | Set-RemoteMailbox -Identity BESTSPA-Room4@best-spa.com -RemoteRoutingAddress BESTSPA-Room4@broan.mail.onmicrosoft.com
Set-RemoteMailbox -Identity BESTSPA-Room6@best-spa.com -RemoteRoutingAddress BESTSPA-Room6@broan.mail.onmicrosoft.com
Set-RemoteMailbox -Identity BESTSPA-Room5@best-spa.com -RemoteRoutingAddress BESTS... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/Remove-NortekAddresses.ps1 | Remove-NortekAddresses.ps1 | #Gather user data
$remotemailboxes = @()
$remotemailboxes = Get-RemoteMailbox -ResultSize Unlimited
$remotemailboxes | ForEach-Object {
for ($i=0;$i -lt $_.EmailAddresses.Count; $i++)
{
$address = $_.EmailAddresses[$i]
if ($address.IsPrimaryAddress -eq $false -and $address.SmtpAddress... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Non-Reusable Scripts/Set-SharedandRoomLicenses.ps1 | Set-SharedandRoomLicenses.ps1 | Set-MsolUserLicense -UserPrincipalName sap_auto@broan.onmicrosoft.com -RemoveLicenses "broan:ENTERPRISEPACK"
Set-MsolUserLicense -UserPrincipalName Volker.Adamek@broan.onmicrosoft.com -RemoveLicenses "broan:ENTERPRISEPACK"
Set-MsolUserLicense -UserPrincipalName Agnieszka.Rusnarczyk@broan.onmicrosoft.com -RemoveLicens... |
PowerShellCorpus/Github/RickBankers_posh-PrintersUI/PrintersUI.ps1 | PrintersUI.ps1 |
function GenerateForm {
########################################################################
# Created By: Rick Bankers
# Date Modified: 10/12/2015
########################################################################
#region Import the Assemblies
[reflection.assembly]::loadwithpartialname("System.Draw... |
PowerShellCorpus/Github/xiaogangya_ops-repo/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstorageinternal.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source u... |
PowerShellCorpus/Github/meganbradley_meganbradleyRepo1213005238/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source url: ... |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/jQuery.1.10.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/jQuery.1.10.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# VS 11 and above supports the new intellisense JS files
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersio... |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/Modernizr.2.6.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
if ($scriptsFolderProjectItem -eq $null) {
# No Scripts folder
Write-Host "No Scripts folder found"
exit
}
# Update the _references.js file
AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName... |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
}
catch {
# _references.js file not found
return
}
if ($referencesFileProject... |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/EntityFramework.6.1.1/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/EntityFramework.6.1.1/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/h-6017_csharp/homeless_shelter/packages/Newtonsoft.Json.6.0.4/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# open json.net splash page on package install
# don't open if json.net is installed as a dependency
try
{
$url = "http://james.newtonking.com/json"
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq "Package Manager Con... |
PowerShellCorpus/Github/mrkurtz_PS-ODBC/invoke-odbc.ps1 | invoke-odbc.ps1 | function invoke-odbcread($dsnName,$username,$pass,$query)
{
# Assumes user/pass stored in DSN
# user is probably unnecessary
#
# example
# invoke-odbcread -dsnName "pgsql-darknet" -username "postgres" -pass "" -query "select * from naming"
# craft connection ... |
PowerShellCorpus/Github/dtfs_WebUI/src/WebUI/Properties/PublishProfiles/blue-publish.ps1 | blue-publish.ps1 | [cmdletbinding(SupportsShouldProcess=$true)]
param($publishProperties=@{}, $packOutput, $pubProfilePath)
# to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327
try{
if ($publishProperties['ProjectGuid'] -eq $null){
$publishProperties['ProjectGuid'] = '8b084d63-22e6-44f... |
PowerShellCorpus/Github/corang_quizSite/site/packages/jQuery.1.9.1/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/corang_quizSite/site/packages/jQuery.1.9.1/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# VS 11 and above supports the new intellisense JS files
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersio... |
PowerShellCorpus/Github/corang_quizSite/site/packages/jQuery.1.9.1/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/corang_quizSite/packages/jQuery.1.9.1/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/corang_quizSite/packages/jQuery.1.9.1/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# VS 11 and above supports the new intellisense JS files
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersio... |
PowerShellCorpus/Github/corang_quizSite/packages/jQuery.1.9.1/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/RogerSik_PowerShell-Check-Scripts/check_cpu_core_load.ps1 | check_cpu_core_load.ps1 | (Get-WmiObject -Query "select Name, PercentProcessorTime from Win32_PerfFormattedData_PerfOS_Processor") | foreach-object { write-host "$($_.Name): $($_.PercentProcessorTime)" };
|
PowerShellCorpus/Github/RogerSik_PowerShell-Check-Scripts/check_procs_state.ps1 | check_procs_state.ps1 | Param(
[string]$process
)
if ((get-process "$process" -ea SilentlyContinue) -eq $Null)
{
echo "WARNING - $process is not running"
exit 2
}
else
{
echo "OK - $process is running"
exit 0
}
|
PowerShellCorpus/Github/RogerSik_PowerShell-Check-Scripts/check_if_file_exists.ps1 | check_if_file_exists.ps1 | Param(
[string]$folder,
[string]$warning,
[string]$critical
)
$result = (dir $folder | measure).Count;
If ($result -lt $warning){
Write-Host "OK - $result File exists!|files=$result;"
exit 0
}
If ($result -gt $warning){
Write-Host "Warning - $result File exists!|files=$result;"
... |
PowerShellCorpus/Github/RogerSik_PowerShell-Check-Scripts/check_odbc_query.ps1 | check_odbc_query.ps1 | # Source from
# https://blog.netways.de/2011/11/07/odbc-datenbankzugriff-mit-powershell/
Param(
[string]$server,
[string]$database,
[string]$uid,
[string]$pwd,
[string]$query,
[string]$critical # warn if x is greater than
)
$DBDSN="Driver={SQL Server};Server=$server;Database=$database;UID=$uid;PWD=$pwd;"
... |
PowerShellCorpus/Github/RogerSik_PowerShell-Check-Scripts/check_drive_accessibility.ps1 | check_drive_accessibility.ps1 | Param(
[string]$drive
)
Get-PSDrive $drive -EA SilentlyContinue | out-null
if ($drive -eq "") {
Write-Host "No Drive Letter as Argument!"
exit 2
}
elseif ($? -eq "TRUE") {
Write-Host "$drive drive Accessible"
exit 0
}
else {
Write-Host "$drive drive NOT Accessible / Pr... |
PowerShellCorpus/Github/RogerSik_PowerShell-Check-Scripts/check_test_path.ps1 | check_test_path.ps1 | Param(
[string]$Path
)
$Command = Test-Path $Path
if ($command -eq "True") {
Write-Host "OK -" $Path "is reachable"
exit 0
}
Else {
Write-Host "Warning -" $Path "is NOT reachable"
exit 2
}
|
PowerShellCorpus/Github/RogerSik_PowerShell-Check-Scripts/check_eventlog.ps1 | check_eventlog.ps1 | Param(
[string]$LogName,
[string]$EntryType,
[string]$Hour,
[string]$warning # warn if x is greater than
)
$Count = Get-EventLog -LogName $LogName -EntryType $EntryType -ErrorAction SilentlyContinue -After (Get-Date).AddHours(-$Hour) | Measure-Object | Select-Object -expand Count
$Output = Get-EventLog -LogN... |
PowerShellCorpus/Github/RogerSik_PowerShell-Check-Scripts/check_files_age.ps1 | check_files_age.ps1 | Param(
[string]$Path,
[string]$ExclusionFilter1,
[string]$ExclusionFilter2,
[string]$critical
)
$Status=Get-ChildItem $Path | where-object {(new-timespan $_.LastWriteTime).minutes -gt $critical} | where { $ExclusionFilter1 -notcontains $_ } | where { $ExclusionFilter2 -notcontains $_ }
$StatusNumber=$S... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-FromMsi.ps1 | Install-FromMsi.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Downloads an installs a MSI package.
.Description
Downloads a... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-VSBuildTools2015InstallationPath.ps1 | Get-VSBuildTools2015InstallationPath.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the location of a Visual Studio Build Tools 2015 installati... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-Flex.ps1 | Install-Flex.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs flex.
.Description
Downloads the specified release o... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-Gperf.ps1 | Install-Gperf.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs gperf.
.Description
Downloads the specified release ... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Select-VSEnvironment.ps1 | Select-VSEnvironment.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Selects and initializes the Visual Studio environment for use.
.... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-VSBuildTools2015.ps1 | Install-VSBuildTools2015.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs Visual Studio Build Tools 2015.
.Description
Downloa... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-SourceCodeRelease.ps1 | Get-SourceCodeRelease.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the source code for a project.
.Parameter Name
The ... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-VSBuildTools2017InstallationPath.ps1 | Get-VSBuildTools2017InstallationPath.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the location of a Visual Studio Build Tools 2017 installati... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-Bison.ps1 | Install-Bison.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs bison.
.Description
Downloads the specified release ... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-VSBuildTools2015VCVarsAllPath.ps1 | Get-VSBuildTools2015VCVarsAllPath.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the default location for `vcvarsall.bat` within Visual Stud... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Expand-SourceArchive.ps1 | Expand-SourceArchive.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Expands a source code archive.
.Description
Recursively expan... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-Git.ps1 | Install-Git.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs Git for Windows.
.Description
Downloads the specifie... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-WebKitGitHubUrl.ps1 | Get-WebKitGitHubUrl.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the location of WebKit's GitHub mirror.
#>
Function Get-W... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Update-ScriptPath.ps1 | Update-ScriptPath.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Updates the `env:PATH` variable to the current machine's value.
... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-WebKitSVNSnapshotUrl.ps1 | Get-WebKitSVNSnapshotUrl.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the location of WebKit's SVN snapshot.
#>
Function Get-We... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Initialize-VSEnvironment.ps1 | Initialize-VSEnvironment.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Initializes the Visual Studio C++ environment.
.Description
P... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-WebKitGitUrl.ps1 | Get-WebKitGitUrl.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the location of WebKit's git repository.
#>
Function Get-... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-Ruby.ps1 | Install-Ruby.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs Ruby.
.Description
Downloads the specified release o... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Register-SystemPath.ps1 | Register-SystemPath.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Registers a path on the host system.
.Description
Adds a path... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-VSBuildTools2017VCVarsAllPath.ps1 | Get-VSBuildTools2017VCVarsAllPath.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the location for `vcvarsall.bat` within Visual Studio Build... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-SVN.ps1 | Install-SVN.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs TortoiseSVN.
.Description
Downloads the specified re... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Initialize-NinjaEnvironment.ps1 | Initialize-NinjaEnvironment.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Initializes the Ninja build environment.
.Description
Powersh... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Invoke-CMakeBuild.ps1 | Invoke-CMakeBuild.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Invokes a CMake Build.
.Description
Powershell wrapper for ca... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-CMake.ps1 | Install-CMake.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs CMake.
.Description
Downloads the specified release ... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-Perl.ps1 | Install-Perl.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs Strawberry Perl.
.Description
Downloads the specifie... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-VSBuildTools2017.ps1 | Install-VSBuildTools2017.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs Visual Studio Build Tools 2017.
.Description
Downloa... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-Python.ps1 | Install-Python.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs Python.
.Description
Downloads the specified release... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-FromExe.ps1 | Install-FromExe.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Downloads an installs a MSI package.
.Description
Downloads a... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Get-WebKitSVNUrl.ps1 | Get-WebKitSVNUrl.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Retrieves the location of WebKit's SVN repository.
#>
Function Get-... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-Ninja.ps1 | Install-Ninja.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Installs the Ninja build system.
.Description
Downloads the s... |
PowerShellCorpus/Github/donny-dont_powershell-webkit-dev/WebKitDev/Functions/Install-FromArchive.ps1 | Install-FromArchive.ps1 | # Copyright (c) 2017, the WebKit for Windows project authors. Please see the
# AUTHORS file for details. All rights reserved. Use of this source code is
# governed by a BSD-style license that can be found in the LICENSE file.
<#
.Synopsis
Downloads an installs a package from an archive format.
.Descrip... |
PowerShellCorpus/Github/RamblingCookieMonster_PSLDAPQueryLogging/PSLDAPQueryLogging/Private/Get-RegValue.ps1 | Get-RegValue.ps1 | function Get-RegValue
{
<#
.SYNOPSIS
Sets the default value (REG_SZ) of the registry key on local or remote computers.
.DESCRIPTION
Use Get-RegValue to set the default value (REG_SZ) of the registry key on local or remote computers.
.PARAMETER ComputerName
An array of com... |
PowerShellCorpus/Github/RamblingCookieMonster_PSLDAPQueryLogging/PSLDAPQueryLogging/Private/Set-RegDWord.ps1 | Set-RegDWord.ps1 | function Set-RegDWord
{
<#
.SYNOPSIS
Sets or creates a 32-bit binary number (REG_DWORD) on local or remote computers.
.DESCRIPTION
Use Set-RegDWord to set or create a 32-bit binary number (REG_DWORD) on local or remote computers.
.PARAMETER ComputerName
An array of comput... |
PowerShellCorpus/Github/RamblingCookieMonster_PSLDAPQueryLogging/PSLDAPQueryLogging/Public/Get-LDAPQueryLogging.ps1 | Get-LDAPQueryLogging.ps1 | function Get-LDAPQueryLogging {
<#
.SYNOPSIS
Check the diagnostic LDAP query logging settings on a domain controller
.DESCRIPTION
Check the diagnostic LDAP query logging settings on a domain controller
.FUNCTIONALITY
Active Directory
.PARAMETER ComputerName
... |
PowerShellCorpus/Github/RamblingCookieMonster_PSLDAPQueryLogging/PSLDAPQueryLogging/Public/Enable-LDAPQueryLogging.ps1 | Enable-LDAPQueryLogging.ps1 | Function Enable-LDAPQueryLogging {
<#
.SYNOPSIS
Enable diagnostic LDAP query logging on a domain controller
.DESCRIPTION
Enable diagnostic LDAP query logging on a domain controller
We set the Field Engineering data to 5, and set a few parameters to help catch the data
... |
PowerShellCorpus/Github/RamblingCookieMonster_PSLDAPQueryLogging/PSLDAPQueryLogging/Public/Disable-LDAPQueryLogging.ps1 | Disable-LDAPQueryLogging.ps1 | Function Disable-LDAPQueryLogging {
<#
.SYNOPSIS
Disable diagnostic LDAP query logging on a domain controller
.DESCRIPTION
Disable diagnostic LDAP query logging on a domain controller
We set the Field Engineering data to 0, and set a few parameters back to the defaults
.... |
PowerShellCorpus/Github/RamblingCookieMonster_PSLDAPQueryLogging/PSLDAPQueryLogging/Public/Test-LDAPQueryLoggingPrerequisites.ps1 | Test-LDAPQueryLoggingPrerequisites.ps1 | function Test-LDAPQueryLoggingPrerequisites {
<#
.SYNOPSIS
Check if prerequisites for diagnostic LDAP query logging are in place on a domain controller
.DESCRIPTION
Check if prerequisites for diagnostic LDAP query logging are in place on a domain controller
Prerequisites:
... |
PowerShellCorpus/Github/ebauman_zabbix/Scripts/PrinterAutodiscover.ps1 | PrinterAutodiscover.ps1 | $printerList = Get-Printer | Select -ExpandProperty "Name"
$printerObjArray = @()
Foreach ($rawPrinter in $printerList)
{
$printerObj = New-Object -TypeName PSObject
$printerObj | Add-Member -MemberType NoteProperty -Name "{#QUEUENAME}" -Value $rawPrinter
$printerObjArray += $printerObj
}
$masterObject = New... |
PowerShellCorpus/Github/cemvarol_powershelltest2/LAB2B.ps1 | LAB2B.ps1 | ######Ex1
#Task1
get-process
get-process | sort name -Descending |select name,id,vm,pm
help ConvertTo-Html -ShowWindow
Get-Process |sort -Descending |ConvertTo-Html -Property name,id,vm,pm
Get-Process |sort -Descending |ConvertTo-Html -Property name,id,vm,pm |Out-File ProcReport.html
invoke-expression .\ProcRepo... |
PowerShellCorpus/Github/cemvarol_powershelltest2/Lab2A.ps1 | Lab2A.ps1 | #Task1
Get-Date
get-date -dayofyear
get-date |Get-Member
get-date |Select-Object -Property dayofyear
#Task2
help *hotfix*
get-hotfix | Get-Member
Get-HotFix | Select-Object -Property hofixid,ınstalledon,installedby
#Task3
help *scope*
help Get-DhcpServerv4Scope -ShowWindow
get-dhcpserverv4scope -ComputerNam... |
PowerShellCorpus/Github/ebrucucen_theThreeRs.Languages.Powershell/main.build.ps1 | main.build.ps1 | $TestLocation=Join-Path -Path $PSScriptRoot -ChildPath "Public"
$TestOutputDirectory=Join-Path -Path $TestLocation -ChildPath "Tests"
$Timestamp= Get-date -format "ddMM_hhmmss"
task Test {
$TestFiles= Get-ChildItem -Path $TestLocation -Filter "*.tests.*"
foreach ($TestFile in $TestFiles){
$T... |
PowerShellCorpus/Github/ebrucucen_theThreeRs.Languages.Powershell/PSSqlBackupFTP/main.build.ps1 | main.build.ps1 | $TestLocation=Join-Path -Path $PSScriptRoot -ChildPath "Public"
$Timestamp= Get-date -format "ddMM_hhmmss"
task Test {
$TestFiles= Get-ChildItem -Path $TestLocation -Filter "*.tests.*"
foreach ($TestFile in $TestFiles){
$TestOutputFileName= Join-path -path $Testfile.Directory -ChildPath "$($T... |
PowerShellCorpus/Github/ebrucucen_theThreeRs.Languages.Powershell/PSSqlBackupFTP/Public/Copy-FileToFTPBySession.tests.ps1 | Copy-FileToFTPBySession.tests.ps1 | # this is a Pester test file
#region source all functions into memory
. ($PSCommandPath -replace '\.tests\.ps1$', '.ps1')
#endregion
#Tests for Copy-FileToFTPBySession
Describe 'Copy-FileToFTPBySession' {
BeforeAll {
#Import-Module (Join-Path -PAth $PSScriptRoot -ChildPath "..\PSSqlBackupFTP.psm1")
... |
PowerShellCorpus/Github/ebrucucen_theThreeRs.Languages.Powershell/PSSqlBackupFTP/Public/Backup-Database.tests.ps1 | Backup-Database.tests.ps1 | # this is a Pester test file
#region source all functions into memory
. ($PSCommandPath -replace '\.tests\.ps1$', '.ps1')
#endregion
#Test set for the function Backup-Database
Describe 'Backup-Database' {
BeforeAll{
#Add-Type -Path 'C:\Program Files\Microsoft SQL Server\130\SDK\Assemblies\Microsoft... |
PowerShellCorpus/Github/ebrucucen_theThreeRs.Languages.Powershell/PSSqlBackupFTP/Public/Connect-FTPServer.tests.ps1 | Connect-FTPServer.tests.ps1 | # this is a Pester test file
#region source all functions into memory
. ($PSCommandPath -replace '\.tests\.ps1$', '.ps1')
#endregion
# describes the function Connect-FTP
Describe -Name 'Connect-FTPServer Function Basic Tests' -Tags 'Basic,Connect-FTPServer' -Fixture {
BeforeAll {
#Create a va... |
PowerShellCorpus/Github/ebrucucen_theThreeRs.Languages.Powershell/PSSqlBackupFTP/Public/Connect-FTPServer.ps1 | Connect-FTPServer.ps1 | #require PS3
function Connect-FTPServer {
<#
.SYNOPSIS
Creates a FTPRequest object driven by HttpWebRequest
.DESCRIPTION
To backup up files we need to establish a request to ftp server.
.PARAMETER Uri
The fullpath that the script will connect, and put files underneath. ... |
PowerShellCorpus/Github/ebrucucen_theThreeRs.Languages.Powershell/PSSqlBackupFTP/Public/Copy-FileToFTPBySession.ps1 | Copy-FileToFTPBySession.ps1 | function Copy-FileToFTPBySession{
<#
.SYNOPSIS
Puts the backup files to ftp location
.DESCRIPTION
For each given file, the function copies the file to the destination folder, overwrites if it is chosen.
.PARAMETER LocalAbsolutePath
The local location of the file to copie... |
PowerShellCorpus/Github/ebrucucen_theThreeRs.Languages.Powershell/PSSqlBackupFTP/Public/Backup-Database.ps1 | Backup-Database.ps1 | function Backup-Database{
<#
.SYNOPSIS
Backs the database up on the specified instace to a custom location if specified.
Call the Backup-SqlDatabase cmdlet [https://docs.microsoft.com/en-us/powershell/sqlserver/sqlserver-module/vlatest/Backup-SqlDatabase]
.DESCRIPTION
Creates a b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.