full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/ghostsquad_AetherCore/functions/Get-DelegateType.ps1 | Get-DelegateType.ps1 | #http://www.exploit-monday.com/2012/05/accessing-native-windows-api-in.html
# Create a delegate type with CalcFunction function signature
# $CalcFunctionDelegateType = Get-DelegateType @([Int32], [Int32]) ([Int32])
# This scriptblock will serve as the callback function
# $Action = {
# # Define params in place ... |
PowerShellCorpus/Github/chelnak_Azure-Automation/Runbooks/Set-AzureRMSQLDatabasePricingTier.ps1 | Set-AzureRMSQLDatabasePricingTier.ps1 | <#
.SYNOPSIS
Scale an Azure SQL database in Azure Automation
.DESCRIPTION
Scale an Azure SQL database in Azure Automation.
.PARAMETER ResourceGroupName
The name of the resource group that contains the Azure SQL instance
.PARAMETER ServerName
The name of the Azure SQL server... |
PowerShellCorpus/Github/rpwjanzen_GitPreferences/hooks/pre-commit.ps1 | pre-commit.ps1 | ##############################################################################
#
# Line Length Check for Git pre-commit hook for Windows PowerShell
#
# Author: Ryan Janzen <rpwjanzen@gmail.com>
#
###############################################################################
### INSTRUCTIONS ###
# Place the... |
PowerShellCorpus/Github/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/jespinoza22_Requerimiento/Proyecto/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/damienbod_ELDBLogging/WebApp/packages/EnterpriseLibrary.Common.5.0.505.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Import-Module (Join-Path $toolsPath Utils.psm1)
$relativeInstallPath = Get-RelativePath ([System.Io.Path]::GetDirectoryName($dte.Solution.FullName)) $installPath
$folder = (Join-Path (Join-Path $relativeInstallPath "lib") "NET35")
Add-ToolFolder $folder
... |
PowerShellCorpus/Github/damienbod_ELDBLogging/WebApp/packages/EnterpriseLibrary.Logging.5.0.505.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Import-Module (Join-Path $toolsPath Utils.psm1)
$relativeInstallPath = Get-RelativePath ([System.Io.Path]::GetDirectoryName($dte.Solution.FullName)) $installPath
$folder = (Join-Path (Join-Path $relativeInstallPath "lib") "NET35")
Add-ToolFolder $folder
... |
PowerShellCorpus/Github/damienbod_ELDBLogging/WebApp/packages/Unity.2.1.505.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Import-Module (Join-Path $toolsPath Utils.psm1)
$relativeInstallPath = Get-RelativePath ([System.Io.Path]::GetDirectoryName($dte.Solution.FullName)) $installPath
$folder = (Join-Path (Join-Path $relativeInstallPath "lib") "NET35")
Add-ToolFolder $folder
... |
PowerShellCorpus/Github/damienbod_ELDBLogging/WebApp/packages/Unity.Interception.2.1.505.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Import-Module (Join-Path $toolsPath Utils.psm1)
$relativeInstallPath = Get-RelativePath ([System.Io.Path]::GetDirectoryName($dte.Solution.FullName)) $installPath
$folder = (Join-Path (Join-Path $relativeInstallPath "lib") "NET35")
Add-ToolFolder $folder
... |
PowerShellCorpus/Github/damienbod_ELDBLogging/WebApp/packages/EntLibContrib.Logging.5.0.505.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Import-Module (Join-Path $toolsPath Utils.psm1)
$relativeInstallPath = Get-RelativePath ([System.Io.Path]::GetDirectoryName($dte.Solution.FullName)) $installPath
$folder = (Join-Path (Join-Path $relativeInstallPath "lib") "NET35")
Add-ToolFolder $folder
... |
PowerShellCorpus/Github/Justa3122_RSS/RSS/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/Justa3122_RSS/RSS/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/tmcmil_ip2urldns/ip2urldns.ps1 | ip2urldns.ps1 | ###################################################################################################################
# ip2urldns.ps1
# tmcmil
# Resolve DNS and landing page of an i... |
PowerShellCorpus/Github/bhaskar39_AllScripts/VMConfig.ps1 | VMConfig.ps1 | $JSON = @{}
$sizes = Get-AzureRmVMSize -Location 'westus'
$array = New-Object System.Collections.ArrayList
$PSScriptRoot = Split-Path -Path $MyInvocation.MyCommand.Definition
foreach($a in $sizes)
{
$Prop = @{}
$Prop['Name'] = $a.Name
$Prop['NumberOfCores']= $a.NumberOfCores
$Prop['MemoryIn... |
PowerShellCorpus/Github/bhaskar39_AllScripts/ServersRolesInfo_Org.ps1 | ServersRolesInfo_Org.ps1 | <#
.SYNOPSIS
Script to get the server information i.e Roles, features and applicaitions and creating json and inventory information files as output
.DESCRIPTION
Script to get the server information i.e Roles, features and applicaitions and creating json and inventory information files as output
... |
PowerShellCorpus/Github/bhaskar39_AllScripts/Get-ServerInventory.ps1 | Get-ServerInventory.ps1 | <# ==============================================================================================
Name : Server Inventory (Get-ServerInventory.ps1)
Description : Get informations from remote servers with WMI and ouput in an Excel File
Author : Pierre-Alexandre Braeken
Date : 1... |
PowerShellCorpus/Github/bhaskar39_AllScripts/InventoyScript.ps1 | InventoyScript.ps1 | <#
.SYNOPSIS
Script to get the server information i.e Roles, features and applicaitions and creating json and inventory information files as output
.DESCRIPTION
Script to get the server information i.e Roles, features and applicaitions and creating json and inventory information files as output
... |
PowerShellCorpus/Github/bhaskar39_AllScripts/Generate_JsonInputWithInFile.ps1 | Generate_JsonInputWithInFile.ps1 | ##getting database name from commandline args
[String]$SQLDBName = $args[0]
###############################Connecting MAP Local database and executing query ######################################
Function Get_Conn
{
param([String]$SqlQuery)
Try
{
$SQLServer = "localhost" #use Server\Instance for named SQL i... |
PowerShellCorpus/Github/bhaskar39_AllScripts/FilterScriptOnJSON.ps1 | FilterScriptOnJSON.ps1 | Param
(
[string]$JSONPath,
[string]$FilterFile
)
Try
{
$PSScriptRoot = Split-Path -Path $MyInvocation.MyCommand.Definition
if((Test-Path $JSONPath) -and (Test-Path $FilterFile))
{
$data = Get-Content -Path $JSONPath | ConvertFrom-Json
$data1 = $data.inventory_additional
... |
PowerShellCorpus/Github/bhaskar39_AllScripts/ServersRolesInfo.ps1 | ServersRolesInfo.ps1 | <#
.SYNOPSIS
Script to get the server information i.e Roles, features and applicaitions and creating json and inventory information files as output
.DESCRIPTION
Script to get the server information i.e Roles, features and applicaitions and creating json and inventory information files as output
... |
PowerShellCorpus/Github/bhaskar39_AllScripts/Generate_JsonInput.ps1 | Generate_JsonInput.ps1 | <#
.SYNOPSIS
The script is to fetch the inventory information from MAP Tool database
.DESCRIPTION
The script is to fetch the inventory information from MAP Tool database
.PARAMETER SQLDBName
MAP Tool database name from where the inventory information can be fetched
.EXAMPLE
... |
PowerShellCorpus/Github/bhaskar39_AllScripts/Generate_JsonInput_Org.ps1 | Generate_JsonInput_Org.ps1 | ##getting database name from commandline args
[String]$SQLDBName = $args[0]
###############################Connecting MAP Local database and executing query ######################################
Function Get_Conn
{
param([String]$SqlQuery)
Try
{
$SQLServer = "localhost" #use Server\Instance for named SQL i... |
PowerShellCorpus/Github/bhaskar39_AllScripts/InventoyScriptv2.ps1 | InventoyScriptv2.ps1 | <#
.SYNOPSIS
Script to get the server information i.e Roles, features and applicaitions and creating json and inventory information files as output
.DESCRIPTION
Script to get the server information i.e Roles, features and applicaitions and creating json and inventory information files as output
... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/TopCPUQueries.ps1 | TopCPUQueries.ps1 |
## ---------- Working with SQL Server ---------- ##
## - Get SQL Server Table data:
Try
{
$SQLServer = 'localhost'
$SqlQuery = @'
select top 10 --rank() over(order by total_worker_time desc,sql_handle,statement_start_offset) as row_no
--, (rank() over(order by total_worker_time d... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/DBBackup.ps1 | DBBackup.ps1 |
## ---------- Working with SQL Server ---------- ##
## - Get SQL Server Table data:
Try
{
$SQLServer = 'localhost'
$SqlQuery = @'
Declare @dbname varchar(60)
Declare @backuptype varchar(30)
Declare @filedate varchar(20)
Declare @fullpath varchar(200)
Declare @diffpath varchar(200)
Declare ... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/SQLServerReport.ps1 | SQLServerReport.ps1 | # Get the Server Name
$hostname = $env:COMPUTERNAME
# Get the available SQL Server Instances in the Server
$SQLServerInstances = (Get-ItemProperty 'HKLM:\Software\Microsoft\Microsoft SQL Server').InstalledInstances
# SQL Query Text for fetching the data
$sqlquery = @"
--drop table #jobstst
--drop table #jobs... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/Untitled2.ps1 | Untitled2.ps1 | $PSScriptRoot = Split-Path -Path $MyInvocation.MyCommand.Definition
New-Item -Path "$PSScriptRoot\..\test2" -ItemType Directory -Force |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/Top10Waits.ps1 | Top10Waits.ps1 | ## ---------- Working with SQL Server ---------- ##
## - Get SQL Server Table data:
Try
{
$SQLServer = 'sqlclusterdemo'
$SqlQuery = @'
WITH [Waits] AS
(SELECT
[wait_type],
[wait_time_ms] / 1000.0 AS [WaitS],
([wait_time_ms] - [signal_wait_time_ms]) / 1000.0 AS [Res... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/DeadLock.ps1 | DeadLock.ps1 |
## ---------- Working with SQL Server ---------- ##
## - Get SQL Server Table data:
Try
{
$SQLServer = 'localhost'
$SqlQuery = @'
WITH events_cte AS (
SELECT
xevents.event_data,
DATEADD(mi,
DATEDIFF(mi, GETUTCDATE(), CURRENT_TIMESTAMP),
xevents.event_data.value('(event/@t... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/BringDBOnline.ps1 | BringDBOnline.ps1 |
## ---------- Working with SQL Server ---------- ##
## - Get SQL Server Table data:
Try
{
$ErrorActionPreference = "Stop"
$SQLServer = 'localhost'
$SqlQuery = @'
declare @dbname varchar(60)
declare @State tinyint
declare @sqlstmt varchar(2000)
declare cur_Fix cursor
for
select name,... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/Automated_Fix.ps1 | Automated_Fix.ps1 |
## ---------- Working with SQL Server ---------- ##
## - Get SQL Server Table data:
Try
{
$ErrorActionPreference = "Stop"
$SQLServer = 'localhost'
$Database = $args[0]
$SqlQuery = @'
/*Auto fix fragmentation above 5% and performs log backup for every index operation*/
SET NOCOUNT O... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/TopIOPS.ps1 | TopIOPS.ps1 |
## ---------- Working with SQL Server ---------- ##
## - Get SQL Server Table data:
Try
{
$SQLServer = 'sqlclusterdemo'
$SqlQuery = @'
select top 10 --rank() over (order by total_logical_reads+total_logical_writes desc,sql_handle,statement_start_offset ) as row_no
--, (rank() over (order... |
PowerShellCorpus/Github/bhaskar39_AllScripts/SQL AutoScripts/BlockingScript.ps1 | BlockingScript.ps1 | ## ---------- Working with SQL Server ---------- ##
## - Get SQL Server Table data:
Try
{
$SQLServer = 'localhost'
$SqlQuery = @'
SELECT dtl.request_session_id AS WaitingSessionID,
der.blocking_session_id AS BlockingSessionID,
--dowt.resource_description,
der.wa... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/E2K10_Architecture_CMD_V2.02.ps1 | E2K10_Architecture_CMD_V2.02.ps1 | ####################################################################
# Exchange 2010 Architecture Report
#
# File : E2K10_Architecture_CMD.ps1
# Version : 2.0
# Author : Pascal Theil & Franck Nerot
# Author Mail : skall_21@hotmail.com & fnerot66@hotmail.com
# Creation date : 12/09/2011
# Modification date : 26/... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/RPCClientAccess.ps1 | RPCClientAccess.ps1 | #===================================================================
# RPCClientAccess
#===================================================================
#Write-Output "..RPCClientAccess"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings.ViewEntireF... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestOWServices.ps1 | TestOWServices.ps1 | #===================================================================
# Test OutlookWebServices
#===================================================================
#write-Output "..Test OutlookWebServices"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSett... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/WEBServicesConnectivity.ps1 | WEBServicesConnectivity.ps1 | #===================================================================
# Test Web Services Connectivity
#===================================================================
#Write-Output "..Test Web Services Connectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/HUBInformation.ps1 | HUBInformation.ps1 | #===================================================================
# HUB Transport Information
#===================================================================
#Write-Output "..Hub Transport Information"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRV... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestOWAConnectivity.ps1 | TestOWAConnectivity.ps1 | #===================================================================
# Test OWA Connectivity
#===================================================================
#Write-Output "..Test OWA Connectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/PublicFolderDB.ps1 | PublicFolderDB.ps1 | #===================================================================
# Public Folder Database
#===================================================================
#write-Output "..Public Folder Database"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettin... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/DAGReplication.ps1 | DAGReplication.ps1 | #===================================================================
# Database Availability Group - Replication
#===================================================================
#write-Output "..Database Availability Group - Replication"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings ... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/CASCertificates.ps1 | CASCertificates.ps1 | #===================================================================
# Client Access Server - Exchange Certificates
#===================================================================
#write-Output "..Client Access Server - Exchange Certificates"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSet... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/CASServerInformation.ps1 | CASServerInformation.ps1 | #===================================================================
# Client Access Server Information
#===================================================================
#write-Output "..Client Access Server Information"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSett... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/DAGDBCopy.ps1 | DAGDBCopy.ps1 | #===================================================================
# Database Availability Group - DatabaseCopy
#===================================================================
#write-Output "..Database Availability Group - DatabaseCopy"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSetting... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/MBXInformation.ps1 | MBXInformation.ps1 | #===================================================================
# Mailbox Server - Information
#===================================================================
#write-Output "..Mailbox Server - Information (Out of DAG servers)"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestPWSConnectivity.ps1 | TestPWSConnectivity.ps1 | #===================================================================
# Test PowershellConnectivity
#===================================================================
#write-Output "..Test PowershellConnectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if (... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestPowershellConnectivity.ps1 | TestPowershellConnectivity.ps1 | #===================================================================
# Test Powershell Connectivity
#===================================================================
#Write-Output "..Powershell Connectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SR... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/MBXRPCClientAccessServer.ps1 | MBXRPCClientAccessServer.ps1 | #===================================================================
# Mailbox Server - RPCClientAccessServer
#===================================================================
# write-Output "..Mailbox Server - RPCClientAccessServer"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/MBXBackup.ps1 | MBXBackup.ps1 | #===================================================================
# Mailbox Server - Backup
#===================================================================
# write-Output "..Mailbox Server - Backup"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSet... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/ExchangeRollupE2K7.ps1 | ExchangeRollupE2K7.ps1 | #===================================================================
# Exchange Rollup (Edge server excluded)
#===================================================================
#write-Output "..Exchange Servers Rollup (E2K7 Only)"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADS... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/DAGDBSize.ps1 | DAGDBSize.ps1 | #===================================================================
# Database Availability Group - Database Size and Availability
#===================================================================
#write-Output "..Database Availability Group - Database Size and Availability"
Add-PSSnapin Microsoft.Exchange.Mana... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/CASOAB.ps1 | CASOAB.ps1 | #===================================================================
# Client Access Server - OAB Virtual Directory
#===================================================================
#write-Output "..Client Access Server - OAB Virtual Directory"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSet... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestASConnectivity.ps1 | TestASConnectivity.ps1 | #===================================================================
# Test ActiveSync Connectivity
#===================================================================
#Write-Output "..Test ActiveSync Connectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/PowershellVD.ps1 | PowershellVD.ps1 | #===================================================================
# Client Access Server - Powershell Virtual Directory
#===================================================================
#write-Output "..Powershell Virtual Directory"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = G... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/ExchangeServices.ps1 | ExchangeServices.ps1 | #===================================================================
# Exchange Services
#===================================================================
#Write-Output "..Exchange Services"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings.ViewEnt... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/DAGRPCClientAccessServer.ps1 | DAGRPCClientAccessServer.ps1 | #===================================================================
# Database Availability Group - RPCClientAccessServer
#===================================================================
#write-Output "..Database Availability Group - RPCClientAccessServer"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/HardwareInformation.ps1 | HardwareInformation.ps1 | #===================================================================
# Hardware information
#===================================================================
#write-Output "..Hardware Information"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings.V... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/DiskInformation.ps1 | DiskInformation.ps1 | #===================================================================
# Disk Report Information
#===================================================================
#Write-Output "..Logical Disk & MountPoint Report Information"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerS... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/CASWebServices.ps1 | CASWebServices.ps1 | #===================================================================
# Client Access Server - WebServices Virtual Directory
#===================================================================
#write-Output "..Client Access Server - WebServices Virtual Directory"
Add-PSSnapin Microsoft.Exchange.Management.PowerShel... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/DAGNetwork.ps1 | DAGNetwork.ps1 | #===================================================================
# Database Availability Group - Network
#===================================================================
#write-Output "..Database Availability Group - Network"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-AD... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/Header.ps1 | Header.ps1 | ####################################################################
# MICROSOFT - Exchange 2010 Architecture Report
#
# File : E2K10_Architecture.ps1
# Version : 2.0
# Author : Pascal Theil & Franck Nerot
# Author Company : MICROSOFT
# Author Mail : ptheil@microsoft.com & franckn@microsoft.com
# Creation date ... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestMailflow.ps1 | TestMailflow.ps1 | #===================================================================
# Test Mailflow
#===================================================================
#Write-Output "..Test Mailflow"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings.ViewEntireFores... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/CASActiveSync.ps1 | CASActiveSync.ps1 | #===================================================================
# Client Access Server - ActiveSync Virtual Directory
#===================================================================
#write-Output "..Client Access Server - ActiveSync Virtual Directory"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/CASOWA.ps1 | CASOWA.ps1 | #===================================================================
# Client Access Server - OWA Virtual Directory
#===================================================================
#write-Output "..Client Access Server - OWA Virtual Directory"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSet... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/ExchangeServersInformation.ps1 | ExchangeServersInformation.ps1 | #===================================================================
# Exchange Servers Information
#===================================================================
#write-Output "..Exchange Servers Information"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/DAGInformation.ps1 | DAGInformation.ps1 | #===================================================================
# Database Availability Group - Information
#===================================================================
#write-Output "..Database Availability Group - Information"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings ... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestOLConnectivity.ps1 | TestOLConnectivity.ps1 | #===================================================================
# Test OutlookConnectivity
#===================================================================
#write-Output "..Test OutlookConnectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSe... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/ExchangeRollup.ps1 | ExchangeRollup.ps1 | #===================================================================
# Exchange Rollup (Edge server excluded)
#===================================================================
#write-Output "..Exchange Servers Rollup (E2K10 Only)"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-AD... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/ActiveDirectory.ps1 | ActiveDirectory.ps1 | #===================================================================
# Active Directory Information
#===================================================================
#Write-Host "..Active Directory Information"
#start-Transcript -path .\ActiveDirectory.log -append
#$error.clear()
Add-PSSnapin Microsoft.Exchang... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/SetSPNDupl.ps1 | SetSPNDupl.ps1 | #===================================================================
# SetSPN - Duplicate
#===================================================================
#write-Output "..SetSPN - Duplicate"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings.ViewE... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/DAGBackup.ps1 | DAGBackup.ps1 | #===================================================================
# Database Availability Group - Backup
#===================================================================
#write-Output "..Database Availability Group - Backup"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADSe... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/HUBBackPressure.ps1 | HUBBackPressure.ps1 | #===================================================================
# HUB Transport - Back Pressure (E2K10 Only)
#===================================================================
#write-Output "..HUB Transport - Back Pressure Events (E2K10 Only)"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRV... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/SetSPNView.ps1 | SetSPNView.ps1 | #===================================================================
# SetSPN - Viewing
#===================================================================
#write-Output "..SetSPN - Viewing"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings.ViewEntir... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/MBXCalRepairAssistant.ps1 | MBXCalRepairAssistant.ps1 | #===================================================================
# Mailbox Server - Calendar Repair Assistant
#===================================================================
#Write-Output "..Mailbox Server - Calendar Repair Assistant"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSetting... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/MBXOAB.ps1 | MBXOAB.ps1 | #===================================================================
# Mailbox Server - OfflineAddressBook
#===================================================================
#write-Output "..OfflineAddressBook"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestMAPIConnectivity.ps1 | TestMAPIConnectivity.ps1 | #===================================================================
# Test MAPI Connectivity - Mailbox and Public Folder Databases
#===================================================================
#Write-Output "..Test MAPI Connectivity - Mailbox and Public Folder Databases"
Add-PSSnapin Microsoft.Exchange.Mana... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/CASAutodiscover.ps1 | CASAutodiscover.ps1 | #===================================================================
# Client Access Server - Autodiscover Virtual Directory
#===================================================================
#write-Output "..Client Access Server - Autodiscover Virtual Directory"
Add-PSSnapin Microsoft.Exchange.Management.PowerSh... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/MBXDBSize.ps1 | MBXDBSize.ps1 | #===================================================================
# Mailbox Server - Database Size and Availability
#===================================================================
#write-Output "..Mailbox Server - Database Size and Availability"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestECPConnectivity.ps1 | TestECPConnectivity.ps1 | #===================================================================
# Test ECP Connectivity
#===================================================================
#Write-Output "..Test ECP Connectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettin... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/TestOutlookWebServices.ps1 | TestOutlookWebServices.ps1 | #===================================================================
# Test Outlook Web Services
#===================================================================
#Write-Output "..Outlook Web Services"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSetti... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts - Copy/CASECP.ps1 | CASECP.ps1 | #===================================================================
# Client Access Server - ECP Virtual Directory
#===================================================================
#write-Output "..Client Access Server - ECP Virtual Directory"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSet... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/RPCClientAccess.ps1 | RPCClientAccess.ps1 | #===================================================================
# RPCClientAccess
#===================================================================
#Write-Output "..RPCClientAccess"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings.ViewEntireF... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/TestOWServices.ps1 | TestOWServices.ps1 | #===================================================================
# Test OutlookWebServices
#===================================================================
#write-Output "..Test OutlookWebServices"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSett... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/WEBServicesConnectivity.ps1 | WEBServicesConnectivity.ps1 | #===================================================================
# Test Web Services Connectivity
#===================================================================
#Write-Output "..Test Web Services Connectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/HUBInformation.ps1 | HUBInformation.ps1 | #===================================================================
# HUB Transport Information
#===================================================================
#Write-Output "..Hub Transport Information"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRV... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/TestOWAConnectivity.ps1 | TestOWAConnectivity.ps1 | #===================================================================
# Test OWA Connectivity
#===================================================================
#Write-Output "..Test OWA Connectivity"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettings... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/PublicFolderDB.ps1 | PublicFolderDB.ps1 | #===================================================================
# Public Folder Database
#===================================================================
#write-Output "..Public Folder Database"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSettings
if ($SRVSettin... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/DAGReplication.ps1 | DAGReplication.ps1 | #===================================================================
# Database Availability Group - Replication
#===================================================================
#write-Output "..Database Availability Group - Replication"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings ... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/CASCertificates.ps1 | CASCertificates.ps1 | #===================================================================
# Client Access Server - Exchange Certificates
#===================================================================
#write-Output "..Client Access Server - Exchange Certificates"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSet... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/CASServerInformation.ps1 | CASServerInformation.ps1 | #===================================================================
# Client Access Server Information
#===================================================================
#write-Output "..Client Access Server Information"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get-ADServerSett... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/DAGDBCopy.ps1 | DAGDBCopy.ps1 | #===================================================================
# Database Availability Group - DatabaseCopy
#===================================================================
#write-Output "..Database Availability Group - DatabaseCopy"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSetting... |
PowerShellCorpus/Github/bhaskar39_AllScripts/AD and Exchange/Scripts/MBXInformation.ps1 | MBXInformation.ps1 | #===================================================================
# Mailbox Server - Information
#===================================================================
#write-Output "..Mailbox Server - Information (Out of DAG servers)"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
$SRVSettings = Get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.