full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/v-peliao_TestForProvisionMSDN/.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/stephan1024_ps_scripts/BulkCreateVMs.ps1 | BulkCreateVMs.ps1 | #BulkCreateVMs.ps1
$ParentVHD = "C:\ClusterStorage\Library1\Centos-6.3-Template\Centos-6.3-Template.vhdx"
$path = "C:\ClusterStorage\Library1\vms\VMs.csv"
import-csv -path $path|ForEach-Object {
$erroractionpreference = 0
$vmName = $_.Name
[int]
$vmmemory = $_.Memory
$vmstartmemory=$vmmemory*1073741824
... |
PowerShellCorpus/Github/dsolodow_IndyPoSH/Profile.ps1 | Profile.ps1 | <#
NAME: Profile.ps1
AUTHOR: Damien Solodow , Harrison College
DATE CREATED : 5/4/2012
COMMENT: intended for use as $profile.CurrentUserAllHosts
#>
#region Global variables for environment specific settings
$beserver = 'ServerName' # Symantec Backup Exec server; BEMCLI is in BE 2012+
$xaserver = 'ServerNam... |
PowerShellCorpus/Github/starkfell_PoshUtility/Host_DNS_and_Port_Test_v1.0.ps1 | Host_DNS_and_Port_Test_v1.0.ps1 | <# --- [Host_DNS_and_Port_Test_v1.0.ps1] PowerShell Script ---
Author(s): Ryan Irujo
Inception: 10.21.2014
Last Modified: 10.22.2014
Description: Script performs a DNS and set of Port Checks based upon a list of Hosts provided in a text file
named 'Hosts.tx... |
PowerShellCorpus/Github/kobilutil_console-settings/tests/colors-test.ps1 | colors-test.ps1 | function colors-test() {
function write-helper($c) {
Write-Host "123ABC`t$c" -ForegroundColor $c
}
write-helper Blue
write-helper DarkBlue
write-helper Cyan
write-helper DarkCyan
write-helper White
write-helper Gray
write-helper DarkGray
write-helper Black
write-helper Green
write-h... |
PowerShellCorpus/Github/allensanborn_Chocolatey-Packages/convert-windowsimage/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = 'convert-windowsimage'
$version = '1.0.0.0'
$url = "http://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f/file/59237/2/Convert-WindowsImage.ps1"
$url64 = $url
$destDir = join-path $env:ChocolateyInstall "\lib\$packageName.$version\"
$destFile = "Convert-WindowsImage.ps1... |
PowerShellCorpus/Github/scombs_psdump/Test_Add-RelayIP.ps1 | Test_Add-RelayIP.ps1 | function Add-RelayIP {
<#
.Name
Add-ReplayIP
.Synopsis
Adds SMTP ip addresses to the relay configured for exchange 2013
.Syntax
.Description
Uses a file containing ip addresses that need to be added to your SMTP relay. After the IP addresses
are in the file specify the location for $file.... |
PowerShellCorpus/Github/scombs_psdump/Enter-PSExchange.ps1 | Enter-PSExchange.ps1 | function Enter-PSExchange {
<#
.Name
Enter-PSExchange
.Synopsis
Starts an a session with an exchange server and loads the exchange management console
.Syntax
.Description
Easy function to connect into a remove exchange box with the exchange tools loaded in.
After you're done in the sessio... |
PowerShellCorpus/Github/scombs_psdump/Add-IntSmtpRelay.ps1 | Add-IntSmtpRelay.ps1 | <#
.Name
Add-IntSmtpRelay
.Synopsis
Adds SMTP ip addresses to the internal relay configured for exchange 2013
.Syntax
.Description
Uses a file containing ip addresses that need to be added to your SMTP internal relay. after the IP addresses
are in the file specify the location for $file.
... |
PowerShellCorpus/Github/scombs_psdump/Get-MobileDevices.ps1 | Get-MobileDevices.ps1 | <#
.Name
Get-MobileDevices
.Synopsis
Used when you need to find all the mobile devices linked into your exchange enviornment.
.Syntax
.Description
This is an example from TechNet (https://technet.microsoft.com/en-us/library/aa996908%28v=exchg.150%29.aspx) modified
to pull the data I want... |
PowerShellCorpus/Github/scombs_psdump/Notification_AccountLockout.ps1 | Notification_AccountLockout.ps1 | <#
.Name
Notification_AccountLockout
.Synopsis
Get notifications for when accounts on the domain get locked out
.Syntax
.Description
You set this as a local task on your DC to run when the even is triggered. It will then
pull the information from the even and send a message to the whoever is set i... |
PowerShellCorpus/Github/scombs_psdump/Term-Employee.ps1 | Term-Employee.ps1 | <#
.Name
Term-Employee
.Synopsis
Partially automates the term process used by the help desk team.
.Syntax
Run by right clicking on the script and running with powershell. It will provide a pop up box that you will put in the users
employee code.
Partial Revert Commands
$user = 'smtptest... |
PowerShellCorpus/Github/scombs_psdump/Get-VHDInfo.ps1 | Get-VHDInfo.ps1 | <#
.Name
Get-VHDInfo
.Synopsis
Get all vm vhd info from the current host.
.Syntax
.Description
Was creted to pull all vhd info for all vms on the current host. Primarily to get an idea of the space being used, the number of vhd's, and the path due to
some vm's having vhd's accross diffe... |
PowerShellCorpus/Github/scombs_psdump/Update-IntegrationServices.ps1 | Update-IntegrationServices.ps1 | <#
.Name
Update-IntegrationServices
.Synopsis
Automates the process of updating the integration services of guest VMs on a per host basis.
.Syntax
You specify the hostservers you want to use along with the credentials that will give you access to the share and the server.
.Examples
Example... |
PowerShellCorpus/Github/scombs_psdump/Add-ExtSmtpRelay.ps1 | Add-ExtSmtpRelay.ps1 | <#
.Name
Add-ExtSmtpRelay
.Synopsis
Adds SMTP ip addresses to the external relay configured for exchange 2013
.Syntax
.Description
Uses a file containing ip addresses that need to be added to your SMTP external relay. after the IP addresses
are in the file specify the location for $file.
... |
PowerShellCorpus/Github/scombs_psdump/Get-LockedAccounts.ps1 | Get-LockedAccounts.ps1 | <#
.Name
Get-LockedAccounts
.Synopsis
Locked accounts and Unlock accounts
.Syntax
.Description
When running this function you'll be asked to enter your domain credentials before being able to unlock an account.
This function searches active directory for locked accounts and displays them o... |
PowerShellCorpus/Github/scombs_psdump/wip-Suspend-HypervRep.ps1 | wip-Suspend-HypervRep.ps1 | $vmhosts = 'vmhost01','vmhost02'
#Suspend
foreach($vmhost in $vmhosts) {
invoke-command -ComputerName $vmhost -ScriptBlock {get-vmreplication | Suspend-VMReplication}
}
#Resume
foreach($vmhost in $vmhosts) {
invoke-command -ComputerName $vmhost -ScriptBlock {get-vmreplication | Resume-VMReplication}
} |
PowerShellCorpus/Github/scombs_psdump/Notification_DFSR_2213.ps1 | Notification_DFSR_2213.ps1 | <#
.Name
Notification_DRSR_2213
.Synopsis
Get notifications for when Event ID 2213 appears on this server
.Syntax
.Description
You set this as a local task to run when the event is triggered. It will then
pull the information from the eventlog and send a message to whoever is set in the t... |
PowerShellCorpus/Github/scombs_psdump/profile.ps1 | profile.ps1 | $host.PrivateData.ErrorForegroundColor = "White"
$host.PrivateData.ErrorBackgroundColor = "DarkCyan"
#change homeshare path to your personal share and root share
new-psdrive -name S -psprovider filesystem -root '\\fqdn\share'
new-psdrive -name U -psprovider filesystem -root '\\fqdn\share\%username%'
new-psdrive ... |
PowerShellCorpus/Github/scombs_psdump/Get-DriverInfo.ps1 | Get-DriverInfo.ps1 | function get-driverinfo {
<#
.Name
Get-DriverInfo
.Synopsis
Used to easily pull driver info from servers.
.Syntax
.Description
When you need to find driver version info easily this will allow you to input the PC/Server name and then it'll list
the drivers installed on that machine. Next i... |
PowerShellCorpus/Github/scombs_psdump/reset-susid.ps1 | reset-susid.ps1 | stop-service wuauserv
stop-service bits
stop-service msiserver
start-sleep -seconds 10
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /va /f
start-service wuauserv
start-service bits
start-service msiserver
start-sleep -seconds 20
wuauclt /resetauthorization
start-sleep -seconds 5
wu... |
PowerShellCorpus/Github/scombs_psdump/Notification_PasswordReminder.ps1 | Notification_PasswordReminder.ps1 | <#
.Name
Notification_PasswordReminder
.Synopsis
Script to Automated Email Reminders when Users Passwords due to Expire.
.Syntax
.Description
Set this script to run as a scheduled weekly task to have it automatically notify users.
Version 1.1 May 2014
Robert Pearman (WSS... |
PowerShellCorpus/Github/scombs_psdump/Update-DNS.ps1 | Update-DNS.ps1 | <#
.Name
Update-DNS
.Synopsis
.Syntax
.Description
#>
$primarydns = "10.x.x.x"
$secondarydns = "10.x.x.x"
$searchbase = "ou=servers,dc=domain,dc=com"
$servers = get-adcomputer -filter * -Searchbase $searchbase | Select-Object -ExpandProperty name
#you can use the following variabl... |
PowerShellCorpus/Github/scombs_psdump/Get-GroupsAndMembers.ps1 | Get-GroupsAndMembers.ps1 | <#
.Name
Get-GroupsAndMembers
.Synopsis
Queries active directory for all groups and displays them with the users that are members
.Syntax
.Description
#>
$groups = get-adgroup -filter * | sort-object name #| select-object name
foreach($group in $groups) {
Get-ADGroupMember -identity $group... |
PowerShellCorpus/Github/scombs_psdump/Notification_ServerAdditions.ps1 | Notification_ServerAdditions.ps1 | <#
.Name
Notification_ServerAdditions
.Synopsis
Computers added to the domain last week
.Syntax
.Description
This is a script to be set to run weekly via task scheduler that will email the recipients all the servers added to the domain last week.
I created this so on monday mornings the te... |
PowerShellCorpus/Github/scombs_psdump/Get-YearLastLogon.ps1 | Get-YearLastLogon.ps1 | <#
.Name
Get-YearLastLogon
.Synopsis
Used when you need to find users that have not logged on in over a year
.Syntax
.Description
Looks at all users accounts in an OU and checks whether or not the last logon date is less then the date specified, which below is
looking at todays date and... |
PowerShellCorpus/Github/scombs_psdump/Get-CompareDir.ps1 | Get-CompareDir.ps1 | <#
.Name
Get-CompareDir
.Synopsis
.Syntax
.Description
Used to grab all the files and folders that are in the specified directories and then compare those files based
on the property 'creationtime'.
This was created for the purpose of DFSR issue we experienced which caused wrong way rep... |
PowerShellCorpus/Github/maximefortier_SharePointQuickWins-Backups/Scripts/eDMSBackupRetentionAndArchiving.ps1 | eDMSBackupRetentionAndArchiving.ps1 | #*************************************************************************************************
#
# Name: eDMSBackupRetentionAndArchiving.ps1
# Description: This Powershell Script deletes the eDMS Backups that are expired.
# Author: Maxime Fortier - www.maximefortier.com
# Version 1.0
#
#****************... |
PowerShellCorpus/Github/maximefortier_SharePointQuickWins-Backups/Scripts/eDMSDatabaseSizingReport.ps1 | eDMSDatabaseSizingReport.ps1 | #*************************************************************************************************
#
# Name: eDMSDatabaseSizingReport.ps1
# Description: This Powershell Script sends capacity information of the eDMS' databases.
# Author: Maxime Fortier - www.maximefortier.com
# Version 1.0
#
#***************... |
PowerShellCorpus/Github/maximefortier_SharePointQuickWins-Backups/Scripts/eDMSFarmDiffBackupWithEmailReport.ps1 | eDMSFarmDiffBackupWithEmailReport.ps1 | #*************************************************************************************************
#
# Name: eDMSFarmDiffBackupWithEmailReport.ps1
# Description: This Powershell Script performs a differential backup of the eDMS.
# Author: Maxime Fortier - www.maximefortier.com
# Version 1.0
#
#*************... |
PowerShellCorpus/Github/maximefortier_SharePointQuickWins-Backups/Scripts/eDMSFarmFullBackupWithEmailReport.ps1 | eDMSFarmFullBackupWithEmailReport.ps1 | #*************************************************************************************************
#
# Name: eDMSFarmFullBackupWithEmailReport.ps1
# Description: This Powershell Script performs a full backup of the eDMS.
# Author: Maxime Fortier - www.maximefortier.com
# Version 1.0
#
#*********************... |
PowerShellCorpus/Github/OPSTest_E2E_NewRepo_1488787540460/.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/ChrisGibson1982_Azure/ARMTest001/ARMTest001/bin/Debug/staging/ARMTest001/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = 'ARMTest001',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageAccountResourceGroupName,
[string] $StorageContainerName = $ResourceGroupName.ToLowerI... |
PowerShellCorpus/Github/ChrisGibson1982_Azure/ARMTest001/ARMTest001/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = 'ARMTest001',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageAccountResourceGroupName,
[string] $StorageContainerName = $ResourceGroupName.ToLowerI... |
PowerShellCorpus/Github/ChrisGibson1982_Azure/Azure_Runbooks/Stop-AzureVMs.ps1 | Stop-AzureVMs.ps1 | <#
.SYNOPSIS
Stops all the Azure VMs in a specific Azure Resource Group
.DESCRIPTION
This sample runbooks stops all of the virtual machines in the specified Azure Resource Group.
For more information about how this runbook authenticates to your Azure subscription, see the
... |
PowerShellCorpus/Github/ChrisGibson1982_Azure/Azure_Runbooks/Get-AzureVMTutorial.ps1 | Get-AzureVMTutorial.ps1 | <#
.DESCRIPTION
An example runbook which prints out the first 10 Azure VMs in your subscription (ordered alphabetically).
For more information about how this runbook authenticates to your Azure subscription, see our documentation here: http://aka.ms/fxu3mn
.NOTES
AUTHOR: Azure Aut... |
PowerShellCorpus/Github/Skokanek_Test/AsyncApp/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/Skokanek_Test/AsyncApp/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/cchitsiang_sharepoint/sharepoint2013-dev/01_05_SetupADDSRole.ps1 | 01_05_SetupADDSRole.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Configure the domain controller
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
########################################################################
Get-Content "config.txt" | foreach-object -b... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/03_03_CreateADAccounts.ps1 | 03_03_CreateADAccounts.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Creates the accounts needed by AutoSPInstaller
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
# 1.2 2014-02-16 Make sure to add user with a never expiring password
################################... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/01_02_SetupNetwork.ps1 | 01_02_SetupNetwork.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Sets up the windows network to work in a bridged environment
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
########################################################################
Get-Content "co... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/03_01_InstallVisualStudio2013.ps1 | 03_01_InstallVisualStudio2013.ps1 | ven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Installs Visual Studio 2013 ultimate (the product must later be activated with a proper key
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
# 1.2 2014-02-15 Fixed bug in path/arguments
################... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/01_03_DisableFirewall.ps1 | 01_03_DisableFirewall.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Disables the windows firewall
#
# History
# 1.0 2014-01-03 Initial version
########################################################################
ο»Ώ# we turn the firewall off alltogether
Get-NetFirewallProfile | Set-NetFirewallPr... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/03_02_InstallShP2013Prerequisites.ps1 | 03_02_InstallShP2013Prerequisites.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Installs the Sharepoint 2013 pre-requisites
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
########################################################################
Get-Content "config.txt" | forea... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/01_01_RenameComputer.ps1 | 01_01_RenameComputer.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Renames the server
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
########################################################################
Get-Content "config.txt" | foreach-object -begin {$h=@{}} ... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/02_02_ConfigureSQLServer.ps1 | 02_02_ConfigureSQLServer.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Configures the sysprepped MSSQLServer
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
########################################################################
Get-Content "config.txt" | foreach-obj... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/01_04_InstallADDSRole.ps1 | 01_04_InstallADDSRole.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Installs the ADDS role
#
# History
# 1.0 2014-01-03 Initial version
########################################################################
$addsState = Get-WindowsFeature | where {$_.name -eq "AD-Domain-Services"}
if ($addsS... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/02_03_CreateSqlServerAlias.ps1 | 02_03_CreateSqlServerAlias.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Creates an alias to be used by connections
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
########################################################################
Get-Content "config.txt" | foreach... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/02_04_TestSqlServerConnection.ps1 | 02_04_TestSqlServerConnection.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Creates an alias to be used by connections
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
########################################################################
Get-Content "config.txt" | foreach... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/02_01_SysPrepSqlServer.ps1 | 02_01_SysPrepSqlServer.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# syspreps MSSQLServer
#
# History
# 1.0 2014-01-03 Initial version
# 1.1 2014-02-14 Externalized config
########################################################################
Get-Content "config.txt" | foreach-object -begin {$h=@{... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/AutoSPInstaller/AutoSPInstaller/AutoSPInstallerFunctionsCustom.ps1 | AutoSPInstallerFunctionsCustom.ps1 | # ===================================================================================
# CUSTOM FUNCTIONS - Put your new or overriding functions here
# =================================================================================== |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/AutoSPInstaller/AutoSPInstaller/AutoSPInstallerMain.ps1 | AutoSPInstallerMain.ps1 | param
(
[string]$inputFile = $(throw '- Need parameter input file (e.g. "\\SPSERVER01\C$\SP\AutoSPInstaller\AutoSPInstallerInput.xml")'),
[string]$targetServer = "",
[string]$remoteAuthPassword = "",
[switch]$unattended
)
# Globally update all instances of "localhost" in the input file to actu... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/AutoSPInstaller/AutoSPInstaller/AutoSPInstallerFunctions.ps1 | AutoSPInstallerFunctions.ps1 | # ===================================================================================
# EXTERNAL FUNCTIONS
# ===================================================================================
# Check that the version of the script matches the Version (essentially the schema) of the input XML so we don't have any ... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/AutoSPInstaller/AutoSPInstaller/AutoSPInstallerConfigureRemoteTarget.ps1 | AutoSPInstallerConfigureRemoteTarget.ps1 |
# Configures the server for WinRM and WSManCredSSP
Write-Host "Configuring PowerShell remoting..."
$winRM = Get-Service -Name winrm
If ($winRM.Status -ne "Running") {Start-Service -Name winrm}
Set-ExecutionPolicy Bypass -Force
Enable-PSRemoting -Force
Enable-WSManCredSSP -Role Server -Force | Out-Null
# Increa... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/BI Features/02_01_SetupPowerPivot.ps1 | 02_01_SetupPowerPivot.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Installs the Powerpivot features for Sharepoint 2013#
# History
# 1.0 2014-04-05 Initial version
########################################################################
Get-Content "..\config.txt" | foreach-object -begin {$h=@{}} -... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/BI Features/01_02_AddPowerPivotInstance.ps1 | 01_02_AddPowerPivotInstance.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Adds an SSAS instance named POWERPIVOT
#
# History
# 1.0 2014-04-05 Initial version
########################################################################
Get-Content "..\config.txt" | foreach-object -begin {$h=@{}} -process { $k =... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/BI Features/02_02_ConfigurePowerPivot.ps1 | 02_02_ConfigurePowerPivot.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Installs the Powerpivot features for Sharepoint 2013#
# History
# 1.0 2014-04-05 Initial version
########################################################################
Get-Content "..\config.txt" | foreach-object -begin {$h=@{}} -... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/BI Features/01_01_Configure_BI_Features.ps1 | 01_01_Configure_BI_Features.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Installs SSAS (tabular mode), SSIS, SSRS (integrated)
#
# History
# 1.0 2014-04-05 Initial version
########################################################################
Get-Content "..\config.txt" | foreach-object -begin {$h=@{}} ... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/BI Features/01_03_AddMultidimentionalInstance.ps1 | 01_03_AddMultidimentionalInstance.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Adds an SSAS instance named POWERPIVOT
#
# History
# 1.0 2014-09-28 Initial version
########################################################################
Get-Content "..\config.txt" | foreach-object -begin {$h=@{}} -process { $k =... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/office365/Office365_CreateSiteCollection.ps1 | Office365_CreateSiteCollection.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Creates a site collection on office365 using the office online commandlets
#
# History
# 1.0 2014-02-01 Initial version
########################################################################
$user = "sven.knispel@svenknis... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/office365/Office365_CreateSites.ps1 | Office365_CreateSites.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Add a site to a site collection using CSOM
#
# History
# 1.0 2014-02-01 Initial version
########################################################################
$url = "https://svenknispel.sharepoint.com/sites/teamsitecollecti... |
PowerShellCorpus/Github/cchitsiang_sharepoint/sharepoint2013-dev/azure/MakeRelease.ps1 | MakeRelease.ps1 | # by Sven Knispel under ter terms of the Ms-PL license (see license.txt)
#
# Make a new release of the master VHD
#
# History
# 1.0 2014-02-16 Initial version
########################################################################
# This script pushes a release the sharepoint dev image to
# the master stora... |
PowerShellCorpus/Github/imfrancisd_yabs/buildPSScriptAnalyzer.ps1 | buildPSScriptAnalyzer.ps1 | #requires -version 5
<#
.Synopsis
Yet another build script for PSScriptAnalyzer (https://github.com/PowerShell/PSScriptAnalyzer) without Visual Studio or .Net Core.
.Description
==================
Updated 2017-06-24
==================
Build PSScriptAnalyzer project (https://github.com/PowerShell/PSScriptAna... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_Provision_2017_5_26_15_58_31/.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/OpenLocalizationTestOrg_azure-docs-pr6_it-IT/.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/OPS-E2E-Prod_E2E_P_Provision_2017_4_1_13_55_10/.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/salehram_GAM-Bulk-Signature-Creator-PS/Add-GAppsUserSignature.ps1 | Add-GAppsUserSignature.ps1 | # This script is written by: Saleh Ramadan (salehram@gmail.com) - http://www.is-linux.com
# The script is provided AS IS and I cannot provide directed support other than fixing bugs and maintaining the stability of the script.
# I accept NO liabilty or responsiblity for the improper use of this script.
#
# This scr... |
PowerShellCorpus/Github/torkelo_BBoneTrader/BBoneTrader.Web/packages/SassAndCoffee.Core.2.0.2.0/tools/install.ps1 | install.ps1 | [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$pkgDefContent = @"
; Visual Basic
[`$RootKey`$\Projects\{F184B08F-C81C-45f6-A57F-5ABD9991F28F}\FileExtensions\.coffee]
"DefaultBuildAction"="Content"
[`$RootKey`$\Projects\{F184B08F-C81C-45f6-A57F-5ABD9991F28F}\FileExtensions\.sass]
... |
PowerShellCorpus/Github/torkelo_BBoneTrader/BBoneTrader.Web/packages/AspNetWebPages.Core.2.0.20126.16343/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/torkelo_BBoneTrader/BBoneTrader.Web/packages/AspNetWebPages.Core.2.0.20126.16343/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/torkelo_BBoneTrader/BBoneTrader.Web/packages/AspNetRazor.Core.2.0.20126.16343/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/torkelo_BBoneTrader/BBoneTrader.Web/packages/AspNetRazor.Core.2.0.20126.16343/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/jQuery.1.6.4/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
#Forcibly delete the -vsdoc file
#$projectFolder = Split-Path -Parent $project.FileName
$projectFolder = $project.Properties.Item("FullPath").Value
$projVsDocPath = Join-Path $projectFolder Scripts\jquery-1.6.4-vsdoc.js
$origVsDocPath = Join-Path $installPath C... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/jQuery.1.6.4/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
$extId = "JScriptIntelliSenseParaExtension.Microsoft.039ee76c-3c7f-4281-ad23-f6528ab18623"
$extManager = [Microsoft.VisualStudio.Shell.Package]::GetGlobalService([Microsoft.VisualStudio.ExtensionManager.SVsExtensionManager])
$copyOverParaFile = $false
try {
... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/SassAndCoffee.Core.2.0.2.0/tools/install.ps1 | install.ps1 | [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$pkgDefContent = @"
; Visual Basic
[`$RootKey`$\Projects\{F184B08F-C81C-45f6-A57F-5ABD9991F28F}\FileExtensions\.coffee]
"DefaultBuildAction"="Content"
[`$RootKey`$\Projects\{F184B08F-C81C-45f6-A57F-5ABD9991F28F}\FileExtensions\.sass]
... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/AspNetWebPages.Core.2.0.20126.16343/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/AspNetWebPages.Core.2.0.20126.16343/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/EntityFramework.4.3.1/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.AppDomain]::CurrentDomain.GetAssemblies() | ?{ $_.GetName().Name -eq 'EntityFramework' })
{
Write-Warning 'There is already a version of EntityFramework.dll loaded. You may need to restart Visual Studio for the commands to work properly.'
}
if... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/EntityFramework.4.3.1/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
$invoker = @"
public class ConnectionFactoryConfiguratorInvoker
{
public static void Invoke(string assemblyPath, object project)
{
var appDomain = System.AppDomain.CreateDomain(
"EntityFramework.PowerShell",
null,
... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/AspNetRazor.Core.2.0.20126.16343/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/torkelo_BBoneTrader/packages/AspNetRazor.Core.2.0.20126.16343/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/logicappsio_ConsumptionToAppServicePlan/ConsumptionToAppService.ps1 | ConsumptionToAppService.ps1 | Param(
[string] $AppService_RG = '<app-service-rg>',
[string] $AppService_Name = '<app-service-name>',
[string] $LogicApp_RG = '<logic-app-rg>',
[string] $LogicApp_Name = '<logic-app-name>',
[string] $subscriptionId = '<subscription-id>'
)
Login-AzureRmAccount
$subscription = Get-AzureRmS... |
PowerShellCorpus/Github/brutaldev_chocolatey-packages/Screenpresso/tools/chocolateyuninstall.ps1 | chocolateyuninstall.ps1 |
$ErrorActionPreference = 'Stop';
$packageArgs = @{
packageName = 'screenpresso'
fileType = 'exe'
silentArgs = '-uninstall pf -silent'
validExitCodes = @(0)
softwareName = 'Screenpresso'
file = $env:programfiles + '\Learnpulse\Screenpresso\Screenpresso.exe'
}
Uninstall... |
PowerShellCorpus/Github/brutaldev_chocolatey-packages/Screenpresso/tools/chocolateyinstall.ps1 | chocolateyinstall.ps1 |
$ErrorActionPreference = 'Stop';
$packageArgs = @{
packageName = 'screenpresso'
unzipLocation = '$(Split-Path -parent $MyInvocation.MyCommand.Definition)'
fileType = 'exe'
url = '{{DownloadUrl}}'
url64bit = '{{DownloadUrl}}'
softwareName = 'Screenpresso'
checksum ... |
PowerShellCorpus/Github/brutaldev_chocolatey-packages/Xplorer2Pro/chocolateyInstall.ps1 | chocolateyInstall.ps1 |
$packageName = 'xplorer2pro'
$installerType = 'exe'
$url = 'http://zabkat.com/xplorer2_setup.exe'
$url64 = 'http://zabkat.com/xplorer2_setup64.exe'
$silentArgs = '/S'
$validExitCodes = @(0)
Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" "$url64" -validExitCodes $validExitCodes... |
PowerShellCorpus/Github/brutaldev_chocolatey-packages/LammerContextMenu/chocolateyInstall.ps1 | chocolateyInstall.ps1 |
$packageName = 'lammercontextmenu'
$installerType = 'exe'
$url = 'http://www.wedev4you.com/Downloader.axd?ctx=app&uuid=4a55194a-5830-4cbf-8140-188e76fae213&fn=LammerContextMenu.v.1.0.3.19.zip'
$silentArgs = '/S'
try {
$unzipLocation = "$env:TEMP\chocolatey\$packageName"
if (!(Test-Path $unzipLocat... |
PowerShellCorpus/Github/brutaldev_chocolatey-packages/MediaInfo/chocolateyInstall.ps1 | chocolateyInstall.ps1 |
$packageName = 'mediainfo'
$installerType = 'exe'
$url = 'http://mediaarea.net/download/binary/mediainfo-gui/0.7.70/MediaInfo_GUI_0.7.70_Windows.exe'
$url64 = $url
$silentArgs = '/S'
$validExitCodes = @(0)
Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" "$url64" -validExitCodes... |
PowerShellCorpus/Github/brutaldev_chocolatey-packages/Xplorer2/chocolateyInstall.ps1 | chocolateyInstall.ps1 |
$packageName = 'xplorer2'
$installerType = 'exe'
$url = 'http://zabkat.com/xplorer2_lite_setup.exe'
$url64 = $url
$silentArgs = '/S'
$validExitCodes = @(0)
Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" "$url64" -validExitCodes $validExitCodes
|
PowerShellCorpus/Github/brutaldev_chocolatey-packages/MusicBee/tools/chocolateyuninstall.ps1 | chocolateyuninstall.ps1 | $ErrorActionPreference = "Stop";
$packageName = "musicbee"
$softwareName = "MusicBee 3.0"
$installerType = "EXE"
$silentArgs = "/S"
$validExitCodes = @(0)
$uninstalled = $false
$is64bit = Get-ProcessorBits 64
if ($is64bit) {
$setupExePath = (Get-ItemProperty HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows... |
PowerShellCorpus/Github/brutaldev_chocolatey-packages/MusicBee/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $ErrorActionPreference = "Stop";
$packageName = "musicbee"
$zipFile = "MusicBeeSetup_3_0_Update5.zip"
$exeFile = "MusicBeeSetup_3_0_Update5.exe"
$url = "http://musicbee.niblseed.com/$zipFile"
$checksum = "7085C153787AC3E6688491997936107F"
$checksumType = "md5"
$silentArgs = "/S"
$validExitCodes = @(0)
$choc... |
PowerShellCorpus/Github/oneoffdallas_check_ioc/check_ioc.ps1 | check_ioc.ps1 | #
# check_ioc.ps1 - v1.4 - 6November2016 - by Dallas Haselhorst
# Look for the associated SANS Gold Paper to describe this work in greater detail as well if you'd like to learn more.
# https://www.sans.org/reading-room/whitepapers/critical/uncovering-indicators-compromise-ioc-powershell-event-logs-traditional-monito... |
PowerShellCorpus/Github/CalumThomson_NetworkScanner/Ping Sweep.ps1 | Ping Sweep.ps1 | # Author: Calum Thomson
# Date: 21/07/2016
# Description: Scans for active clients and resolves their MAC addresses. Will be tied
# in with a MAC address API to check which vendors detected clients are from.
Write-host "
. .
.n ... |
PowerShellCorpus/Github/sbourdeaud_zerto/set-zerto-settings.ps1 | set-zerto-settings.ps1 | <#
.SYNOPSIS
This script can be used to import a Zerto ZVM settings, including VPG information read from an input csv file.
.DESCRIPTION
The script uses the export-settings Zerto cmdlet to retrieve current ZVM settings and VPGs, then reads information from a source csv to insert additional VPGs and re-imports t... |
PowerShellCorpus/Github/sbourdeaud_zerto/get-zerto-vras.ps1 | get-zerto-vras.ps1 | <#
.SYNOPSIS
This script retrieves information about Zerto Virtual Replication Agents (VRA).
.DESCRIPTION
The script retrieves the following information about VRAs: VRA name, ,ip, count of VPGs, count of protected VMs.
.PARAMETER help
Displays a help message (seriously, what did you think this was?)
.PARAM... |
PowerShellCorpus/Github/sbourdeaud_zerto/kroll-rename-vms.ps1 | kroll-rename-vms.ps1 | <#
.SYNOPSIS
This is a summary of what the script is.
.DESCRIPTION
This is a detailed description of what the script does and how it is used.
.PARAMETER help
Displays a help message (seriously, what did you think this was?)
.PARAMETER history
Displays a release history for this script (provided the edit... |
PowerShellCorpus/Github/sbourdeaud_zerto/clone-zerto-test-vms.ps1 | clone-zerto-test-vms.ps1 | <#
.SYNOPSIS
This is a summary of what the script is.
.DESCRIPTION
This is a detailed description of what the script does and how it is used.
.PARAMETER help
Displays a help message (seriously, what did you think this was?)
.PARAMETER history
Displays a release history for this script (provided the edit... |
PowerShellCorpus/Github/sbourdeaud_zerto/remove-zerto-vpg.ps1 | remove-zerto-vpg.ps1 | <#
.SYNOPSIS
This script removes Zerto VPGs bqsed on the specified status qnd substatus.
.DESCRIPTION
The script retrieves all VPGs from the specified ZVM, then filters VPGs on specified status and substatus and invokes the delete REST method on them. Status and SubStatus are translated into human readable text... |
PowerShellCorpus/Github/sbourdeaud_zerto/get-zerto-vpginfo.ps1 | get-zerto-vpginfo.ps1 | <#
.SYNOPSIS
This script retrieves information about protected virtual machines from a Zerto Virtual Manager (ZVM) and outputs the results to a csv file.
.DESCRIPTION
The script retrieves the following information about protected VMs: VmName, VpgName, ProvisionedStorageInMB, UsedStorageInMB, Status, SubStatus, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.