full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/CriticalPathTraining_SharePoint2013VmSetupGuide/VmSetupGuideScripts/Script05_CreateWorkflowFarm.ps1 | Script05_CreateWorkflowFarm.ps1 | $snapin = Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue -PassThru
if ($snapin -eq $null) {
Write-Error "Unable to load the Microsoft.SharePoint.PowerShell Snapin! Have you installed SharePoint?"
return
}
# add SQL Server login for WINGTIP\SP_Workflow
# add this login to role... |
PowerShellCorpus/Github/CriticalPathTraining_SharePoint2013VmSetupGuide/VmSetupGuideScripts/CreateWorkflowFarmScript.ps1 | CreateWorkflowFarmScript.ps1 | $wfinstallpath = (Get-ItemProperty "HKLM:\Software\Microsoft\Workflow Manager\1.0" INSTALLDIR).INSTALLDIR
$wfinstallpath = $wfinstallpath.TrimEnd('\')
if ($SetDirectory){
Set-Location $wfinstallpath
}
[Environment]::SetEnvironmentVariable("PSModulePath", [Environment]::GetEnvironmentVariable("PSModulePa... |
PowerShellCorpus/Github/CriticalPathTraining_SharePoint2013VmSetupGuide/VmSetupGuideScripts/CreateUserProfileServiceApplicationScript.ps1 | CreateUserProfileServiceApplicationScript.ps1 | $snapin = Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue -PassThru
if ($snapin -eq $null) {
Write-Error "Unable to load the Microsoft.SharePoint.PowerShell Snapin! Have you installed SharePoint?"
return
}
Write-Host
Write-Host "This script is running under the identity of $e... |
PowerShellCorpus/Github/CriticalPathTraining_SharePoint2013VmSetupGuide/VmSetupGuideScripts/Script03_CreateSubscriptionSettingsService.ps1 | Script03_CreateSubscriptionSettingsService.ps1 | # load in SharePoint snap-in
$snapin = Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue -PassThru
if ($snapin -eq $null) {
Write-Error "Unable to load the Microsoft.SharePoint.PowerShell Snapin! Have you installed SharePoint?"
return
}
# assign root domain name to configure URL... |
PowerShellCorpus/Github/CriticalPathTraining_SharePoint2013VmSetupGuide/VmSetupGuideScripts/Script06_CreateUserProfileServiceApplication.ps1 | Script06_CreateUserProfileServiceApplication.ps1 | $snapin = Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue -PassThru
if ($snapin -eq $null) {
Write-Error "Unable to load the Microsoft.SharePoint.PowerShell Snapin! Have you installed SharePoint?"
return
}
$currentScriptPath = $MyInvocation.MyCommand.Path
$scriptFolder = Split... |
PowerShellCorpus/Github/frenchsomething_kace-ftp-backup/OffloadKACEBackupsFTP.ps1 | OffloadKACEBackupsFTP.ps1 | $BackupLocation = "\\server.address.or.ip\FolderShare\" #Destination for backups to be downloaded to (Can also be a local path)
$ServerPath = "kace.domain.com" #Your KACE Server Address
$FTPUser = "kbftp" #User for KACE FTP server (Can only be kbftp)
$FTPPass = "getbxf" #Password for KACE FTP server (getbxf is defau... |
PowerShellCorpus/Github/OPSTest_E2E_NewRepo_1488715541306/.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/Vesperpiano_Folder-Analysis/Analyse-FileSystem.ps1 | Analyse-FileSystem.ps1 | <#
Powershell Script
Written by Barry Smart
.DESCRIPTION
This script steps recursively down through each branch of the folder hierarchy from a specified starting directory.
At each node in this hierarchy it iterates through all files in the directory and does 2 things:
1. It sums up the size of the files ... |
PowerShellCorpus/Github/terrytrent_Delete-Old-Printers/DeleteOldPrinters.ps1 | DeleteOldPrinters.ps1 | $OldPrintServerPrinters = get-wmiobject -class win32_printer | where {$_.SystemName -eq "\\OldPrintServer" -or $_.SystemName -eq "\\OldPrintServer.domain.com"}
Write-Host "Checking for printers located on server OldPrintServer" -ForegroundColor "yellow"
if($OldPrintServerPrinters -ne $NULL){
$NumberPrinters=0
... |
PowerShellCorpus/Github/esbjornlarsen_ClearCredentials/ClearCredentialsForSVNTFS.ps1 | ClearCredentialsForSVNTFS.ps1 | ##
#
# - Simple script to clear out credentials for TFS in
# Visual Studio 2013/2015 TFS and Subversion on a
# local computer.
#
# - Used to ensure all developers are logged out of
# TFS/SVN on a local computer.
#
# - Ensures that the current developer checks in... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/utils/conemu/ConEmu/Addons/AnsiColors24bit.ps1 | AnsiColors24bit.ps1 | # In the current ConEmu version TrueColor is available
# only in the lower part of console buffer
$h = [Console]::WindowHeight
$w = [Console]::BufferWidth
$y = ([Console]::BufferHeight-$h)
# Clean console contents (this will clean TrueColor attributes)
Write-Host (([char]27)+"[9999S")
# Apply default powersh... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/utils/conemu/ConEmu/Addons/RevokeMouseInput.ps1 | RevokeMouseInput.ps1 | # Issue 1886: Change text cursor position with LeftClick was not working
# when PSReadLine was loaded in your $profile.
# Following will remove ENABLE_MOUSE_INPUT from console input mode flags
# Just call this script at the end of your $profile.
# (C) 2015 ConEmu.Maximus5@gmail.com
Add-Type -PassThru '
using ... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/Microsoft.PowerShell_profile.ps1 | Microsoft.PowerShell_profile.ps1 | # update module path to include module subdirectory
$moduleDir = (join-path $PSScriptRoot modules)
$env:PSModulePath = $moduleDir + ";" + $env:PSModulePath
# Load in support modules
Import-Module "Posh-Git"
# load all scripts from scripts subsirectory
$scriptsDir = (join-path $PSScriptRoot scripts)
Get-Child... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/modules/posh-git/TortoiseGit.ps1 | TortoiseGit.ps1 | # TortoiseGit
function private:Get-TortoiseGitPath {
if ((Test-Path "C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe") -eq $true) {
# TortoiseGit 1.8.0 renamed TortoiseProc to TortoiseGitProc.
return "C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe"
}
return "C:\Program Files\Tortoise... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/modules/posh-git/CheckVersion.ps1 | CheckVersion.ps1 | $Global:GitMissing = $false
if (!(Get-Command git -TotalCount 1 -ErrorAction SilentlyContinue)) {
Write-Warning "git command could not be found. Please create an alias or add it to your PATH."
$Global:GitMissing = $true
return
}
$requiredVersion = [Version]'1.7.2'
if ([String](git --version 2> $n... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/modules/posh-git/Utils.ps1 | Utils.ps1 | # General Utility Functions
function Invoke-NullCoalescing {
$result = $null
foreach($arg in $args) {
if ($arg -is [ScriptBlock]) {
$result = & $arg
} else {
$result = $arg
}
if ($result) { break }
}
$result
}
Set-Alias ?? Invoke-N... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/modules/posh-git/GitPrompt.ps1 | GitPrompt.ps1 | # Inspired by Mark Embling
# http://www.markembling.info/view/my-ideal-powershell-prompt-with-git-integration
$global:GitPromptSettings = New-Object PSObject -Property @{
DefaultForegroundColor = $Host.UI.RawUI.ForegroundColor
BeforeText = ' ['
... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/modules/posh-git/GitUtils.ps1 | GitUtils.ps1 | # Inspired by Mark Embling
# http://www.markembling.info/view/my-ideal-powershell-prompt-with-git-integration
function Get-GitDirectory {
if ($Env:GIT_DIR) {
$Env:GIT_DIR
} else {
Get-LocalOrParentPath .git
}
}
function Get-GitBranch($gitDir = $(Get-GitDirectory), [Diagnostics.S... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/modules/posh-git/profile.example.ps1 | profile.example.ps1 | Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-git module from current directory
Import-Module .\posh-git
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git
# Set... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/modules/posh-git/install.ps1 | install.ps1 | param([switch]$WhatIf = $false)
if($PSVersionTable.PSVersion.Major -lt 2) {
Write-Warning "posh-git requires PowerShell 2.0 or better; you have version $($Host.Version)."
return
}
if(!(Test-Path $PROFILE)) {
Write-Host "Creating PowerShell profile...`n$PROFILE"
New-Item $PROFILE -Force -Type ... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/modules/posh-git/GitTabExpansion.ps1 | GitTabExpansion.ps1 | # Initial implementation by Jeremy Skinner
# http://www.jeremyskinner.co.uk/2010/03/07/using-git-with-windows-powershell/
$Global:GitTabSettings = New-Object PSObject -Property @{
AllCommands = $false
}
$subcommands = @{
bisect = 'start bad good skip reset visualize replay log run'
notes = 'edit ... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/scripts/Edit-Profile.ps1 | Edit-Profile.ps1 | function Edit-Profile
{
$profileDir = Split-Path $profile
code-insiders $profileDir
}
|
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/scripts/Add-Path.ps1 | Add-Path.ps1 | function Add-Path
{
<#
.SYNOPSIS
Adds a Directory to the Current Path
.DESCRIPTION
Add a directory to the current path. This is useful for
temporary changes to the path or, when run from your
profile, for adjusting the path within your powershell
prompt.... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/scripts/Docker-Cleanup.ps1 | Docker-Cleanup.ps1 | function Docker-Cleanup
{
docker rm -f $(docker ps -qa)
docker rmi -f $(docker images -qa)
}
|
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/scripts/Prompt.ps1 | Prompt.ps1 | function Test-Administrator {
$user = [Security.Principal.WindowsIdentity]::GetCurrent();
(New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}
function prompt {
$realLASTEXITCODE = $LASTEXITCODE
Write-Host
# Reset colo... |
PowerShellCorpus/Github/michael-wolfenden_Configuration/powershell/scripts/Get-ChildItem-Color.ps1 | Get-ChildItem-Color.ps1 | function Get-ChildItem-Color {
if ($Args[0] -eq $true) {
$ifwide = $true
if ($Args.Length -gt 1) {
$Args = $Args[1..($Args.length - 1)]
} else {
$Args = @()
}
} else {
$ifwide = $false
}
if (($Args[0] -eq "-a") -or ($Args[0] ... |
PowerShellCorpus/Github/OPSTest_E2E_FileUpdate.bg-bg/.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/Nathan-Michael_LocalRepo/ADSync.ps1 | ADSync.ps1 | <#
#################################################################################################
v1.0
Published 11/04/2017
Nathan Michael
Description - this script imports a CSV and populates the AD DEscription based on the server name
populated within the CSV.
###############################################... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/Create-ADREndpointProtection.ps1 | Create-ADREndpointProtection.ps1 | # Define Configuration Manager variables
$coll = Get-CMDeviceCollection -Name 'All Desktop and Server Clients'
$package = Get-CMSoftwareUpdateDeploymentPackage -Name 'Antimalware Definitions'
# 1.0 Create CM Schedule for ADR
$Schedule = New-CMSchedule -RecurInterval Days -RecurCount 1
# 1.1 Create ADR for EAnt... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/New-CMOrganizationalFolder.ps1 | New-CMOrganizationalFolder.ps1 | # Define Configuration Manager variables
$CMSiteCode = 'PS1'
$CMSiteServer = 'CM01.mol.sccmlab.net'
$CMNameSpace = "root\SMS\site_$CMSiteCode"
# 1.0 Create array of names for Folders
$Folders = @()
$Folders += 'Application Deployment'
$Folders += 'Operating System Deployment'
$Folders += 'Software Update ... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/New-CMBoundaryGroup.ps1 | New-CMBoundaryGroup.ps1 | # Define Configuration Manager variables
$CMSiteCode = 'PS1'
$BoundaryName = 'mol.sccmlab.net/Lab'
$BoundaryGroupName = 'Lab Boundaries'
# 1.0 Get Existing Boundary
$Boundary = Get-CMBoundary -BoundaryName $BoundaryName
# 1.1 Create Boundary Group
New-CMBoundaryGroup -Name $BoundaryGroupName `
-Desc... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/New-CMLabApplication.ps1 | New-CMLabApplication.ps1 | # Define Configuration Manager variables
$CMSiteCode = 'PS1'
$CMSiteServer = 'CM01.mol.sccmlab.net'
$CMNameSpace = "root\SMS\site_$CMSiteCode"
$ApplicationName = 'Paint.NET 4.0.9'
# 1.0 Create new Application
New-CMApplication -Name $ApplicationName -LocalizedApplicationName $ApplicationName
$Application... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/New-CMLabTaskSequence.ps1 | New-CMLabTaskSequence.ps1 | # Define Configuration Manager variables
$CMSiteCode = 'PS1'
$CMSiteServer = 'CM01.mol.sccmlab.net'
$CMNameSpace = "root\SMS\site_$CMSiteCode"
# 1.0 Get Deployment Objects
$BootImageID = (Get-CMBootImage -Name 'Boot Image - Windows 10 (x64)').PackageID
$OSImageID = (Get-CMOperatingSystemImage -Name 'Windows... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/Set-CM-ClientInventorySettings.ps1 | Set-CM-ClientInventorySettings.ps1 | # Define Configuration Manager variables
$CMSiteCode = 'PS1'
$CMSiteServer = 'CM01.mol.sccmlab.net'
$CMNameSpace = "root\SMS\site_$CMSiteCode"
$CustomSettingsName = 'Desktop Software Inventory Settings'
# 1.0 Create new Client Settings
New-CMClientSetting -Name $CustomSettingsName -Type Device
# 1.1 Enab... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/New-CMLabPackage.ps1 | New-CMLabPackage.ps1 | # Define Configuration Manager variables
$CMSiteCode = 'PS1'
$CMSiteServer = 'CM01.mol.sccmlab.net'
$CMNameSpace = "root\SMS\site_$CMSiteCode"
$PackageName = 'Notepad++ 6.8.9'
# 1.0 Create new Package
New-CMPackage -Name $PackageName -Path '\\cm01\Sources\Software\Notepad++ 6.8.9'
# 1.1 Create new Progra... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/Set-CMDiscoveryMethods.ps1 | Set-CMDiscoveryMethods.ps1 | # Define Configuration Manager variables
$CMSiteCode = 'PS1'
$CMSiteServer = 'CM01.mol.sccmlab.net'
$CMNameSpace = "rootSMSsite_$CMSiteCode"
# 1.0 - Configure Forest Discovery
Set-CMDiscoveryMethod -ActiveDirectoryForestDiscovery `
-SiteCode $CMSiteCode `
-EnableActiveDirectorySiteBoundaryCreation $t... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/Import-CMDrivers.ps1 | Import-CMDrivers.ps1 | # Define Configuration Manager variables
$CMSiteCode = 'PS1'
$CMSiteServer = 'CM01.mol.sccmlab.net'
$CMNameSpace = "root\SMS\site_$CMSiteCode"
$DriverPackageName = 'Dell Latitude E5440 – Windows 10 x64 - A00'
$DriverPackageSource = '\\cm01\sources\Driver Packages\Dell Latitude E5440 - Windows 10 x64 - A00'
$Dri... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/powershell/New-CMDeviceCollection.ps1 | New-CMDeviceCollection.ps1 | # Define Configuration Manager variables
$CollectionName = 'All Windows 10 Clients'
$LimitingCollectionID = (Get-CMDeviceCollection | Where-Object {$_.Name -eq 'All Desktop and Server Clients'}).CollectionID
$CMSchedule = New-CMSchedule -Start '2014/01/01 00:00:00' -RecurInterval Days -RecurCount 1
# 1.0 Create... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/HydrationConfigMgr/Source/Create-HydrationDeploymentShare.ps1 | Create-HydrationDeploymentShare.ps1 | Param(
[string]$drive = 'C'
)
$driveLetter = $drive + ':'
# Check for elevation
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator'))
{
Write-Warning "You need to run this script from an e... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/HydrationConfigMgr/Source/Extra/CreateGen1VirtualMachines.ps1 | CreateGen1VirtualMachines.ps1 | $VMLocation = "E:\VMs"
$VMISO = "C:\HydrationCM2012R2SP1\ISO\HydrationCM2012R2SP1.iso"
$VMNetwork = "Internal"
# Create CM01
$VMName = "HYD-CM2012R2SP1-CM01"
$VMMemory = 16384MB
$VMDiskSize = 300GB
New-VM -Name $VMName -BootDevice CD -MemoryStartupBytes $VMMemory -SwitchName $VMNetwork -Path $VMLocation -NoVHD... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/HydrationConfigMgr/Source/Extra/CreateGen2VirtualMachines.ps1 | CreateGen2VirtualMachines.ps1 | $VMLocation = "E:\VMs"
$VMISO = "C:\HydrationCM2012R2SP1\ISO\HydrationCM2012R2SP1.iso"
$VMNetwork = "Internal"
# Create CM01
$VMName = "HYD-CM2012R2SP1-CM01"
$VMMemory = 16384MB
$VMDiskSize = 300GB
New-VM -Name $VMName -Generation 2 -BootDevice CD -MemoryStartupBytes $VMMemory -SwitchName $VMNetwork -Path $VML... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/HydrationConfigMgr/Source/Hydration/Applications/Configure - Enterprise CA/Configure-EnterpriseCA.ps1 | Configure-EnterpriseCA.ps1 | <#
Solution: Hydration
Purpose: Used to create the ViaMonstra Root CA
Version: 1.2 - January 10, 2013
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the authors or Deployment Artist.
Author - Johan Arwidmark
Twitter: @jarwidmark
Blog : http://deploy... |
PowerShellCorpus/Github/mazampella_SCCM-MoL/HydrationConfigMgr/Source/Hydration/Applications/Configure - Create AD Subnets/Configure-CreateADSubnets.ps1 | Configure-CreateADSubnets.ps1 | <#
Solution: Hydration
Purpose: Used to create AD Sites and Subnets
Version: 1.2 - January 10, 2013
This script is provided "AS IS" with no warranties, confers no rights and
is not supported by the authors or Deployment Artist.
Author - Johan Arwidmark
Twitter: @jarwidmark
Blog : http://deployment... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_4_14_13_56_3/.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/azjunglist05_avimark_auto_updater/AviMark_Auto_Updater.ps1 | AviMark_Auto_Updater.ps1 | $ZIPUpdate = "\\10.252.70.3\Users\Public\Downloads\AVImark Beta 2016.4.5.zip"
$Destination = "C:\Temp\Avimark"
$AVIMarkZip = "C:\Temp\Avimark\AVImark Beta 2016.4.5.zip"
if ((Test-Path -Path $Destination) -eq $false) {
New-Item -Path $Destination -ItemType Container -Force -Verbose
Copy-Item -Path $ZIPUpd... |
PowerShellCorpus/Github/OPSTest_E2E_NewRepo_1489169139394/.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/OPSTest_E2E_Provision_1487148937297/.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/RocketScienceProjects_jenksfiles/test.ps1 | test.ps1 | $Webclient = New-Object System.Net.WebClient
$Nexusurl = "https://<nexus_url>/nexus/content/repositories/releases/BuildOutput/testsourcing/1.0.0.100"
$Webclient.DownloadFile($Nexusurl,"testsourcing")
|
PowerShellCorpus/Github/dscw_Powershell-Guessing-Game/guessing-game.ps1 | guessing-game.ps1 | # Number Guessing Game witten by David Willingham for IT 230 Fall 2015
Clear-Host
#Initialize replay variable so that the game plays at least once
$replay = 1
## Main game loop here that runs until user decides to quit.
While($replay -ne 0) {
#Initializing pre-game variables
$secretNumber = Get-R... |
PowerShellCorpus/Github/isjwuk_get-encryptionstatus/Get-EncryptionStatus.ps1 | Get-EncryptionStatus.ps1 |
function Get-EncryptionStatus ($InputFile)
#Returns the Encryption Status of the computers listed in the input file
#Input file is a list of hostnames, one per line
#Usage Example
# Get-EncryptionStatus("C:\users\me\desktop\HostnameList.txt")
{
#Read in the contents of the file
$hostnames=get-content $... |
PowerShellCorpus/Github/sergiomokshin_ArduinoRFID/Server/packages/Microsoft.AspNet.Providers.1.1/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
try {
# Set up variables
$timestamp = (Get-Date).ToString('yyyyMMddHHmmss')
$projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar))
$connectionString ="Data Source=.... |
PowerShellCorpus/Github/sergiomokshin_ArduinoRFID/Server/packages/EntityFramework.5.0.0-rc/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' }
if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 )))
{
$thisModuleManifest = 'EntityFramework.PS3.psd1'
}
else
{
$thisModuleManifest = 'EntityFramework.psd1'
}
$thisModule... |
PowerShellCorpus/Github/sergiomokshin_ArduinoRFID/Server/packages/EntityFramework.5.0.0-rc/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project)
{
$appDomain = [AppDomain]::CreateDomain(
'EntityFramework.PowerShell',
$null,
(New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' }))
... |
PowerShellCorpus/Github/sergiomokshin_ArduinoRFID/Server/packages/Unity.2.1.505.2/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/sergiomokshin_ArduinoRFID/Server/packages/EntityFramework.5.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' }
if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 )))
{
$thisModuleManifest = 'EntityFramework.PS3.psd1'
}
else
{
$thisModuleManifest = 'EntityFramework.psd1'
}
$thisModule... |
PowerShellCorpus/Github/sergiomokshin_ArduinoRFID/Server/packages/EntityFramework.5.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project)
{
$appDomain = [AppDomain]::CreateDomain(
'EntityFramework.PowerShell',
$null,
(New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' }))
... |
PowerShellCorpus/Github/sergiomokshin_ArduinoRFID/Server/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/sergiomokshin_ArduinoRFID/Server/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/sergiomokshin_ArduinoRFID/Server/packages/Unity.Interception.2.1.505.2/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/OPS-E2E-Prod_E2E_P_D_NewRepo_2017_5_25_21_2_12/.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/dataweapons_extractUserPst/execMain.ps1 | execMain.ps1 | $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "http://<EXCHANGESERVER>/PowerShell/"; -Authentication Kerberos
Import-PSSession $s -commandname Get-Mailbox,New-MailboxExportRequest | Out-Null
$Export = Get-Mailbox
$Export | %{New-MailboxExportRequest -Malibox $_ -FilePath "\\server\pst\$($_.... |
PowerShellCorpus/Github/dataweapons_extractUserPst/findPst.ps1 | findPst.ps1 | Get-OutlookStores.ps1
<#
.SYNOPSIS
This script uses the Outlook COM object to
display the data stores in the current profile
.DESCRIPTION
This script creates an Outlook object, displays
user information, and the stores currently
attached to the profile.
.NOTES
File Name : Ge... |
PowerShellCorpus/Github/dataweapons_extractUserPst/connectUserMbox.ps1 | connectUserMbox.ps1 | #This script will map multiple pst files automatically
#If you work helpdesk like me, it will save you years on your life (not kidding)
#This bit of code is optional, its just to pretty up the shell
$host.ui.RawUI.WindowTitle = "PST Mapper"
$host.UI.RawUI.BackgroundColor = 'DarkBlue'
$host.UI.RawUI.ForegroundCol... |
PowerShellCorpus/Github/dataweapons_extractUserPst/execImport.ps1 | execImport.ps1 |
#Outlook COM Object how I connect to outlook
[Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Outlook") | out-null
$olFolders = "Microsoft.Office.Interop.Outlook.OlDefaultFolders" -as [type]
$OlClass = "Microsoft.Office.Interop.Outlook.OlObjectClass" -as [type]
$OlSaveAs = "Mi... |
PowerShellCorpus/Github/fwenzlmmm_connector/src/AWSHubService/Properties/PublishProfiles/LocalIIS-publish.ps1 | LocalIIS-publish.ps1 | [cmdletbinding(SupportsShouldProcess=$true)]
param($publishProperties=@{}, $packOutput, $pubProfilePath)
# to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327
try{
if ($publishProperties['ProjectGuid'] -eq $null){
$publishProperties['ProjectGuid'] = '0a7b7058-2fd4-465... |
PowerShellCorpus/Github/ssebs_Scripts/WordToPDF/WordToPDF.ps1 | WordToPDF.ps1 | # Bring all of the word docs in this folder
# Run this command
#C:\Users\tmpsafas\Desktop\batch\
$Files=GET-CHILDITEM ‘*.DOCX’
$Word=NEW-OBJECT –COMOBJECT WORD.APPLICATION
Foreach ($File in $Files) {
$Doc=$Word.Documents.Open($File.fullname)
$Name=($Doc.Fullname).replace(“docx”,”pdf”)
$D... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_5_9_20_0_23/.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/linnwir_ASP.NET/masterPage/masterPage/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/linnwir_ASP.NET/masterPage/masterPage/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/KorolkoIgor_git-repo/ClassWork/packages/WebGrease.1.5.2/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
# Visual Studio execution done via NuGet Package Manager
Function VSExecution($toolsPath, $project)
{
$project.DTE.ExecuteCommand("File.SaveAll", [system.string]::Empty)
# Get the msbuild version of the project and add the import
$msbuild = [Microsof... |
PowerShellCorpus/Github/KorolkoIgor_git-repo/ClassWork/packages/WebGrease.1.5.2/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# Return a relative path with reference to root as Uri object
# $rootPath - root path
# $relativePath - relative path
# $appendToRelativePath - Optional parameter. If provided will be appended to relative Path using Path.Combine()
Function GetRelativeUri($root... |
PowerShellCorpus/Github/KorolkoIgor_git-repo/ClassWork/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.1/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/KorolkoIgor_git-repo/ClassWork/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.1/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/KorolkoIgor_git-repo/ClassWork/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/KorolkoIgor_git-repo/ClassWork/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/KorolkoIgor_git-repo/ClassWork/packages/Modernizr.2.8.3/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/KorolkoIgor_git-repo/ClassWork/packages/Modernizr.2.8.3/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/KorolkoIgor_git-repo/ClassWork/packages/Modernizr.2.8.3/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/KorolkoIgor_git-repo/ClassWork/packages/jQuery.2.2.4/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/KorolkoIgor_git-repo/ClassWork/packages/jQuery.2.2.4/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/KorolkoIgor_git-repo/ClassWork/packages/jQuery.2.2.4/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/My-Random-Thoughts_Server-QA-Checks/QA-Settings-Configurator.ps1 | QA-Settings-Configurator.ps1 | #Requires -Version 4
Set-StrictMode -Version 2
Remove-Variable * -ErrorAction SilentlyContinue
Clear-Host
Write-Host ''
Write-Host ' Starting Server QA Settings Configurator...'
# Icon Image Index: 0: Optional, 1: Gear, 2: Disabled Gear
[Reflection.Assembly]::LoadWithPartialName('System.Windows... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/QA_v3.17.0608-RS.ps1 | QA_v3.17.0608-RS.ps1 | #Requires -Version 2
<#
QA MASTER SCRIPT
DO NOT EDIT THIS FILE - ALL CHANGES WILL BE LOST
THIS FILE IS AUTO-COMPILED FROM SEVERAL SOURCE FILES
VERSION : v3.17.0608
COMPILED: 2017/06/08 20:48
#>[CmdletBinding(DefaultParameterSetName = 'HLP')]
Param (
[Parameter(ParameterSetName='QAC', Ma... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/CompilerRS.ps1 | CompilerRS.ps1 | <#
Compiles all the needed powershell files for QA checks into one master script.
#>
Param ([string]$Settings, [switch]$Silent = $false)
Set-StrictMode -Version 2
If ([string]::IsNullOrEmpty($Settings)) { $Settings = 'default-settings.ini' }
[string]$version = ('v3.{0}.{1}' -f (Get-Date -Format 'yy'), (Ge... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/Compiler.ps1 | Compiler.ps1 | <#
Compiles all the needed powershell files for QA checks into one master script.
#>
Param ([string]$Settings, [switch]$Silent = $false)
Set-StrictMode -Version 2
If ([string]::IsNullOrEmpty($Settings)) { $Settings = 'default-settings.ini' }
[string]$version = ('v3.{0}.{1}' -f (Get-Date -Format 'yy'), (Ge... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/QA_v3.17.0608.ps1 | QA_v3.17.0608.ps1 | #Requires -Version 2
<#
QA MASTER SCRIPT
DO NOT EDIT THIS FILE - ALL CHANGES WILL BE LOST
THIS FILE IS AUTO-COMPILED FROM SEVERAL SOURCE FILES
VERSION : v3.17.0608
COMPILED: 2017/06/08 20:48
#>[CmdletBinding(DefaultParameterSetName = 'HLP')]
Param (
[Parameter(ParameterSetName='QAC', Ma... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-05-system-event-log.ps1 | c-sys-05-system-event-log.ps1 | <#
DESCRIPTION:
Check System Event Log and ensure no errors are present in the last x days. If found, will return the latest y entries
REQUIRED-INPUTS:
GetLatestEntriesAge - Return all entries for this number of days|Integer
GetLatestEntriesCount - Return this number of entrie... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-12-snmp-configuration.ps1 | c-sys-12-snmp-configuration.ps1 | <#
DESCRIPTION:
Check if SNMP role is install on the server. If so, ensure the SNMP community strings follow the secure password policy.
REQUIRED-INPUTS:
None
DEFAULT-VALUES:
None
DEFAULT-STATE:
Enabled
RESULTS:
PASS:
SNMP Serv... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-20-dell-oma-version.ps1 | c-sys-20-dell-oma-version.ps1 | <#
DESCRIPTION:
Check the state of the Dell OpenManage Administrator service and version
REQUIRED-INPUTS:
MinimumVersion - Minimum installed version number allowed|Decimal
ServiceState - "Automatic|Manual|Disabled" - Default state of the service
DEFAULT-VALUES:
MinimumVe... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-18-check-current-ou.ps1 | c-sys-18-check-current-ou.ps1 | <#
DESCRIPTION:
Check that the current server OU path is not in the default location(s). The list of OUs should contain at least the default "Computers" OU, and must be the full distinguished name of the locations.
REQUIRED-INPUTS:
NoInTheseOUs - List of full-path OU names that the serve... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-06-application-event-log.ps1 | c-sys-06-application-event-log.ps1 | <#
DESCRIPTION:
Check Application Event Log and ensure no errors are present in the last x days. If found, will return the latest y entries
REQUIRED-INPUTS:
GetLatestEntriesAge - Return all entries for this number of days|Integer
GetLatestEntriesCount - Return this number of e... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-17-terminal-services-licenced.ps1 | c-sys-17-terminal-services-licenced.ps1 | <#
DESCRIPTION:
If server is a Terminal Services Server ensure it has a licence server set.
REQUIRED-INPUTS:
None
DEFAULT-VALUES:
None
DEFAULT-STATE:
Enabled
RESULTS:
PASS:
Terminal services server is licenced
WARNING:
... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-13-domain-member.ps1 | c-sys-13-domain-member.ps1 | <#
DESCRIPTION:
Checks that the server is a member of the domain.
REQUIRED-INPUTS:
None
DEFAULT-VALUES:
None
DEFAULT-STATE:
Enabled
RESULTS:
PASS:
Server is a domain member
WARNING:
This is a workgroup serv... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-19-hp-smh-version.ps1 | c-sys-19-hp-smh-version.ps1 | <#
DESCRIPTION:
Check the state of the HPe System Management Homepage service and version
REQUIRED-INPUTS:
MinimumVersion - Minimum installed version number allowed|Decimal
ServiceState - "Automatic|Manual|Disabled" - Default state of the service
DEFAULT-VALUES:
MinimumV... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-09-scheduled-tasks.ps1 | c-sys-09-scheduled-tasks.ps1 | <#
DESCRIPTION:
Check to see if any non standard scheduled tasks exist on the server (Any application specific scheduled tasks should be documented with a designated contact point specified).
This check automatically ignores any Microsoft labelled specific tasks.
REQUIRED-INPUTS:
... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-11-autorun-disabled.ps1 | c-sys-11-autorun-disabled.ps1 | <#
DESCRIPTION:
Ensure autorun is disabled.
REQUIRED-INPUTS:
None
DEFAULT-VALUES:
None
DEFAULT-STATE:
Enabled
RESULTS:
PASS:
Autorun is disabled
WARNING:
FAIL:
Autorun is enabled
MANUAL:
... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-14-power-plan.ps1 | c-sys-14-power-plan.ps1 | <#
DESCRIPTION:
Check power plan is set to High Performance.
REQUIRED-INPUTS:
None
DEFAULT-VALUES:
None
DEFAULT-STATE:
Enabled
RESULTS:
PASS:
Power plan is set correctly
WARNING:
FAIL:
Powe... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-01-pending-reboot.ps1 | c-sys-01-pending-reboot.ps1 | <#
DESCRIPTION:
Check for a pending reboot.
REQUIRED-INPUTS:
None
DEFAULT-VALUES:
None
DEFAULT-STATE:
Enabled
RESULTS:
PASS:
Server is not waiting for a reboot
WARNING:
FAIL:
Server is waiting for ... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-03-services-not-started.ps1 | c-sys-03-services-not-started.ps1 | <#
DESCRIPTION:
Check services and ensure all services set to start automatically are running (NetBackup Bare Metal Restore Boot Server,
NetBackup SAN Client Fibre Transport Service and .NET4.0 are all expected to be Automatic but not running).
REQUIRED-INPUTS:
IgnoreTheseServic... |
PowerShellCorpus/Github/My-Random-Thoughts_Server-QA-Checks/checks/system/c-sys-04-services-not-stopped.ps1 | c-sys-04-services-not-stopped.ps1 | <#
DESCRIPTION:
Check services and ensure all listed services are set to disabled and are stopped.
REQUIRED-INPUTS:
CheckTheseServices - List of known serivces that should be in a disabled state
DEFAULT-VALUES:
CheckTheseServices = ('HP System Management Homepage')
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.