full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktUserLikes.ps1
Get-TraktUserLikes.ps1
<# .Synopsis Get items a user likes. This will return an array of standard media objects. You can optionally limit the type of results to return. .DESCRIPTION Get items a user likes. This will return an array of standard media objects. You can optionally limit the type of results to return. .EXAMPLE P...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktRating.ps1
Get-TraktRating.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Remove-TraktUserListLike.ps1
Remove-TraktUserListLike.ps1
<# .Synopsis Returns all custom lists for a user. .DESCRIPTION Returns all custom lists for a user. .EXAMPLE PS C:\> Get-TraktUserProfile -Id 'sean' Description ----------- This example shows how to retrieve the user profile information from sean from Trakt.TV. .INPUTS None ...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktLastActivity.ps1
Get-TraktLastActivity.ps1
<# .Synopsis Gets last activity from Trakt.TV. .DESCRIPTION Gets last activity from Trakt.TV. .EXAMPLE PS C:\> Get-TraktLastActivity Description ----------- This example shows how to retrieve your last activity information from Trakt.TV. .INPUTS None .OUTPUTS PSCustomO...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktHistory.ps1
Get-TraktHistory.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Suspend-TraktScrobble.ps1
Suspend-TraktScrobble.ps1
<# .Synopsis Retrieves people information from Trakt.TV. .DESCRIPTION Retrieves people information from Trakt.TV. .EXAMPLE PS C:\> Get-People -ASinglePerson -Id "bryan-cranston" Description ----------- This example shows how to retrieve information over Bryan Cranston. .EXAMPLE PS...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Update-TraktUserList.ps1
Update-TraktUserList.ps1
<# .Synopsis Returns all custom lists for a user. .DESCRIPTION Returns all custom lists for a user. .EXAMPLE PS C:\> Get-TraktUserProfile -Id 'sean' Description ----------- This example shows how to retrieve the user profile information from sean from Trakt.TV. .INPUTS None ...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Add-TraktComment.ps1
Add-TraktComment.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktUserProfile.ps1
Get-TraktUserProfile.ps1
<# .Synopsis Get a user's profile information. If the user is private, info will only be returned if you send OAuth and are either that user or an approved follower. .DESCRIPTION Get a user's profile information. If the user is private, info will only be returned if you send OAuth and are either that user o...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Add-TraktUserList.ps1
Add-TraktUserList.ps1
<# .Synopsis Returns all custom lists for a user. .DESCRIPTION Returns all custom lists for a user. .EXAMPLE PS C:\> Get-TraktUserProfile -Id 'sean' Description ----------- This example shows how to retrieve the user profile information from sean from Trakt.TV. .INPUTS None ...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Add-TraktWatchList.ps1
Add-TraktWatchList.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktUserSettings.ps1
Get-TraktUserSettings.ps1
<# .Synopsis Get the user's settings so you can align your app's experience with what they're used to on the trakt website. .DESCRIPTION Get the user's settings so you can align your app's experience with what they're used to on the trakt website. .EXAMPLE PS C:\> Get-TraktUserSettings Descript...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktRecommendation.ps1
Get-TraktRecommendation.ps1
<# .Synopsis Gets all recommendations from Trakt.TV. .DESCRIPTION Gets all recommendations from Trakt.TV. .EXAMPLE PS C:\> Get-TraktRecommendation -Movies Description ----------- This example shows how to retrieve all movie recommendations from Trakt.TV. .EXAMPLE PS C:\> Get...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Hide-TraktRecommendation.ps1
Hide-TraktRecommendation.ps1
<# .Synopsis Gets all recommendations from Trakt.TV. .DESCRIPTION Gets all recommendations from Trakt.TV. .EXAMPLE PS C:\> Get-TraktRecommendation -Movies Description ----------- This example shows how to retrieve all movie recommendations from Trakt.TV. .EXAMPLE PS C:\> Get...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktCollection.ps1
Get-TraktCollection.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Update-TraktCollection.ps1
Update-TraktCollection.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Remove-TraktUserList.ps1
Remove-TraktUserList.ps1
<# .Synopsis Returns all custom lists for a user. .DESCRIPTION Returns all custom lists for a user. .EXAMPLE PS C:\> Get-TraktUserProfile -Id 'sean' Description ----------- This example shows how to retrieve the user profile information from sean from Trakt.TV. .INPUTS None ...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktComment.ps1
Get-TraktComment.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktCalendar.ps1
Get-TraktCalendar.ps1
<# .SYNOPSIS Short description .DESCRIPTION Long description .EXAMPLE Example of how to use this cmdlet .EXAMPLE Another example of how to use this cmdlet .INPUTS Inputs to this cmdlet (if any) .OUTPUTS Output from this cmdlet (if any) .NOTES General notes .COMPONENT The ...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktShow.ps1
Get-TraktShow.ps1
<# .Synopsis Gets all shows information form Trakt.TV. .DESCRIPTION Gets all shows information form Trakt.TV. .EXAMPLE PS C:\> Get-TraktShow -Popular Description ----------- This example shows how to retrieve the most popular Shows from Trakt.TV. .EXAMPLE PS C:\> Get-TraktShow -...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Add-TraktUserHiddenItem.ps1
Add-TraktUserHiddenItem.ps1
<# .Synopsis Hide items for a specific section. Here's what type of items can hidden for each section. Section Objects calendar movie, show progress_watched show, season progress_collected show, season recommendations movie, show .DESCRIPTION Hide...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Disconnect-Trakt.ps1
Disconnect-Trakt.ps1
<# .SYNOPSIS Disconnects the module from Trakt.TV. .DESCRIPTION Disconnects the module from Trakt.TV. .EXAMPLE PS C:\> Disconnect-Trakt Description ----------- This example shows how to disconnect from Trakt.TV. .INPUTS None .OUTPUTS PSCustomObject .NOTES None .COMP...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktUserFollowerRequests.ps1
Get-TraktUserFollowerRequests.ps1
<# .Synopsis Lists your pending follow requests so you can either approve or deny them. .DESCRIPTION Lists your pending follow requests so you can either approve or deny them. .EXAMPLE PS C:\> Get-TraktFollowerRequests Description ----------- This example shows how to get your pending...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Remove-TraktRating.ps1
Remove-TraktRating.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktPeople.ps1
Get-TraktPeople.ps1
<# .Synopsis Gets all peoples information from Trakt.TV. .DESCRIPTION Gets all peoples information from Trakt.TV. .EXAMPLE PS C:\> Get-TraktPeople -Summary -Id "bryan-cranston" Description ----------- This example shows how to retrieve people information over Bryan Cranston form Trakt...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Remove-TraktComment.ps1
Remove-TraktComment.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Get-TraktUserComment.ps1
Get-TraktUserComment.ps1
<# .Synopsis Get all collected items in a user's collection. A collected item indicates availability to watch digitally or on physical media. .DESCRIPTION Get all collected items in a user's collection. A collected item indicates availability to watch digitally or on physical media. .EXAMPLE PS C:\> G...
PowerShellCorpus/Github/juniinacio_Trakt-PowerShell/Trakt-PowerShell/Public/Update-TraktComment.ps1
Update-TraktComment.ps1
<# .Synopsis Gets all collected items in a user's collection. .DESCRIPTION Gets all collected items in a user's collection. .EXAMPLE PS C:\> Get-TraktCollection -Type movies Description ----------- This example shows how to get all collected movies from your Trakt.TV collection. .EXA...
PowerShellCorpus/Github/VisualOn_Sat4j.net/build.ps1
build.ps1
param( [string] $ikvmc = "c:\tools\ikvm-8.1.5717.0\bin\ikvmc.exe", [string] $version = "2.3.5", [string] $assemblyversion = "2.0.0", [string] $pre = $null ) New-Item bin -ItemType Directory -ErrorAction SilentlyContinue | Out-Null if($pre) { $version += "-" + $pre } $ikvm_args = @(...
PowerShellCorpus/Github/SubtleScope_windows-scripts/Invoke-ModifyDates.ps1
Invoke-ModifyDates.ps1
function Invoke-ModifyDates { <# .NAME Invoke-ModifyDates .SYNOPSIS Module is used to modify the LastAccess and CreationTime of files in a specified directory given a specific date range. .AUTHOR Nathan Wray (m4dh4tt3r) .USAGE C:\> Invoke-ModifyDates -Path [C:\Path\To\Di...
PowerShellCorpus/Github/SubtleScope_windows-scripts/Get-HostInfo.ps1
Get-HostInfo.ps1
function Get-HostInfo { <# .NAME Get-HostInfo .SYNOPSIS Module is used to gather host information. .AUTHOR Nathan Wray (m4dh4tt3r) .USAGE C:\> Get-HostInfo .EXAMPLE C:\> Import-Module Get-HostInfo.ps1 C:\> Get-HostInfo #> # Get Windows OS Infor...
PowerShellCorpus/Github/JacksonConsulting_exchange-downtime-maintenance/start-maint.ps1
start-maint.ps1
###This is a script to assist in the Exchange bi-monthly downtime### ##You will need to download the RU and place it in the correct folder in order to properly use this script## write-host " " write-host "Welcome to my downtime script. This will assist you in any exchange downtime by running the needed steps f...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/Restart-SOMService.ps1
Restart-SOMService.ps1
Function Restart-SOMService { <# .SYNOPSIS #### .DESCRIPTION #### .PARAMETER Name #### .EXAMPLE #### .EXAMPLE #### .EXAMPLE #### #> [CmdletBinding()] ...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/Get-SOMEventLog.ps1
Get-SOMEventLog.ps1
Function Get-SOMEventLog { <# .SYNOPSIS #### .DESCRIPTION #### .PARAMETER Name #### .EXAMPLE #### .EXAMPLE #### .EXAMPLE #### #> [CmdletBinding()] ...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/Stop-SOMProcess.ps1
Stop-SOMProcess.ps1
Function Stop-SOMProcess { <# .SYNOPSIS #### .DESCRIPTION #### .PARAMETER Name #### .EXAMPLE #### .EXAMPLE #### .EXAMPLE #### #> [CmdletBinding()] ...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/Restart-SOMProcess.ps1
Restart-SOMProcess.ps1
Function Restart-SOMProcess { <# .SYNOPSIS #### .DESCRIPTION #### .PARAMETER Name #### .EXAMPLE #### .EXAMPLE #### .EXAMPLE #### #> [CmdletBinding()] ...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/Get-SOMProcess.ps1
Get-SOMProcess.ps1
Function Get-SOMProcess { <# .SYNOPSIS #### .DESCRIPTION #### .PARAMETER Name #### .EXAMPLE #### .EXAMPLE #### .EXAMPLE #### #> [CmdletBinding()] ...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/New-Menu.ps1
New-Menu.ps1
$title = 'Server Operations Tasks' $path = 'ServerTasks.xml' $hash = [ordered]@{ 'Get Services' = {Get-SOMService | Format-Table} 'Restart Service' = {Restart-SOMService} 'Get Top 5 Processes by CPU' = {Get-SOMProcess -Property CPU} 'Get Top 5 Processes by Memory' = {Get-SOMProcess -Property Mem...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/Get-SOMService.ps1
Get-SOMService.ps1
Function Get-SOMService { <# .SYNOPSIS #### .DESCRIPTION #### .PARAMETER Name #### .EXAMPLE #### .EXAMPLE #### .EXAMPLE #### #> Begin {} Pr...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/Get-SOMVolume.ps1
Get-SOMVolume.ps1
Function Get-SOMVolume{ <# .SYNOPSIS #### .DESCRIPTION #### .PARAMETER Name #### .EXAMPLE #### .EXAMPLE #### .EXAMPLE #### #> Begin {} Process ...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Private/Get-MOTD.ps1
Get-MOTD.ps1
Function Get-MOTD { <# .NAME Get-MOTD .SYNOPSIS Displays system information to a host. .DESCRIPTION The Get-MOTD cmdlet is a system information tool written in PowerShell. .EXAMPLE .VERSION 0.1.0 #> [CmdletBinding()] Param ( [Parameter( Manda...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Public/Invoke-Menu.ps1
Invoke-Menu.ps1
Function Invoke-Menu { <# .SYNOPSIS Systems and server operations menu for service desk personnel. .DESCRIPTION Scaffolding for generating custom operations menus. Can be used for local or remote management. Server management, AD, Exchange, etc... ...
PowerShellCorpus/Github/jasonroth_ServerOpsMenu/Tests/IHGServerOps.Tests.ps1
IHGServerOps.Tests.ps1
̀
PowerShellCorpus/Github/monahancj_PowerCLI/mVMwarePowerCLI/cluster/Wait-mTaskvMotions.ps1
Wait-mTaskvMotions.ps1
<# .SYNOPSIS Will enter a wait/loop if there are running vMotion or svMotion tasks. .DESCRIPTION Checks the tasks and counts the number running vMotion or svMotion tasks. If the number of active tasks is greater than the specified limit then the function sleeps and checks again. The intended is as a thr...
PowerShellCorpus/Github/monahancj_PowerCLI/mVMwarePowerCLI/vm/AllVMs-EnableCpuMemHotAdd.ps1
AllVMs-EnableCpuMemHotAdd.ps1
<# .SYNOPSIS Enables .DESCRIPTION Base code from LucD (again) https://communities.vmware.com/thread/287941?start=0&tstart=0 .PARAMETER VM A VirtualMachine object .EXAMPLE Enable-vCpuAndMemHotAdd (Get-VM -Name vmname) .Notes <Information that does not fit easily into the other sections> .Link ...
PowerShellCorpus/Github/danilabogomolov1983_kidd.software.dotnet.northwind/kidd.software.dotnet.northwind/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/danilabogomolov1983_kidd.software.dotnet.northwind/kidd.software.dotnet.northwind/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/codecomputerlove_carpenter/windows-2016/resources/CleanDrive.ps1
CleanDrive.ps1
Write-Host "Cleaning sxs images ..." dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase Write-Host "Cleaning temp files ..." try { Takeown /d Y /R /f "C:\Windows\Temp\*" Icacls "C:\Windows\Temp\*" /GRANT:r administrators:F /T /c /q 2>&1 Remove-Item "C:\Windows\Temp\*" -Recurse -Force...
PowerShellCorpus/Github/codecomputerlove_carpenter/windows-2016/resources/Configure-WinRmSecureSelfSigned.ps1
Configure-WinRmSecureSelfSigned.ps1
## # Generates a self-signed certificate for the host # then creates the WinRM HTTPS listener with the # generated cert. # # This script should be run *after* generalize. ## $hostname = $env:COMPUTERNAME Write-Host "Generating host certificate for WinRM ..." $cert = New-SelfSignedCertificate -DnsName "$...
PowerShellCorpus/Github/codecomputerlove_carpenter/windows-2016/resources/updates/CleanSxsImages.ps1
CleanSxsImages.ps1
Write-Host "Cleaning sxs images ..." dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
PowerShellCorpus/Github/codecomputerlove_carpenter/windows-2016/resources/updates/EnableMicrosoftUpdates.ps1
EnableMicrosoftUpdates.ps1
$ErrorActionPreference = "Stop" Write-Host "Stopping Windows Update service ..." Stop-Service wuauserv Write-Host "Installing Microsoft Update service manager ..." $mu = New-Object -ComObject Microsoft.Update.ServiceManager -Strict $mu.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"") Write-Host "St...
PowerShellCorpus/Github/codecomputerlove_carpenter/windows-2016/resources/updates/RunWindowsUpdate.ps1
RunWindowsUpdate.ps1
$ErrorActionPreference = "Stop" Write-Host "Installing pre-requisites ..." Install-PackageProvider -Name NuGet -Force Install-Module PSWindowsUpdate -Force Write-Host "Starting Windows Update ..." Get-WUInstall -WindowsUpdate -AcceptAll -UpdateType Software -IgnoreReboot -Verbose
PowerShellCorpus/Github/codecomputerlove_carpenter/windows-2016/resources/base/InstallVBoxGuestAdditions.ps1
InstallVBoxGuestAdditions.ps1
$ErrorActionPreference = "Stop" Write-Host "Finding installer location ..." $driveLetters = 65..89 | ForEach-Object { ([char]$_)+":" } $driveLetter = $driveLetters | Where-Object { ((Test-Path "$_\cert\vbox-sha256.cer")) } if (!$driveLetter) { Write-Error "ERROR: Could not find Oracle certificates." exi...
PowerShellCorpus/Github/codecomputerlove_carpenter/windows-2016/resources/base/InstallVMwareTools.ps1
InstallVMwareTools.ps1
# config $downloadUrl = 'https://packages.vmware.com/tools/esx/6.5/windows/x64/VMware-tools-10.1.0-4449150-x86_64.exe' $checksum = '7A3A9F5183B179DF9D0AF3B6DDCBA69AFAC83252DA58CA8ECD6311DAC2DE8727' # END config $ErrorActionPreference = "Stop" $installArgs = '/S /v"/qn REBOOT=R"' $localDownloadPath = '.\vmware...
PowerShellCorpus/Github/codecomputerlove_carpenter/windows-2016/resources/vagrant/Provision.ps1
Provision.ps1
## # Provisioning for Vagrant box ## $ErrorActionPreference = "Stop" Write-Host "Configuring WinRM ..." winrm set winrm/config/service/auth "@{Basic=`"true`"}" New-NetFirewallRule -DisplayName 'Windows Remote Management (HTTPS-In)' -Name 'WINRM-HTTPS-In-TCP' -Group "Windows Remote Management" -Profile Any -Lo...
PowerShellCorpus/Github/codecomputerlove_carpenter/windows-2016/resources/software/Install-ChefClient.ps1
Install-ChefClient.ps1
$ErrorActionPreference = "Stop"; # config $version = "12.19" # END config if (Get-Command "chef-client" -ErrorAction SilentlyContinue) { Write-Host "Chef client already installed." exit } [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 . { Invoke-WebReque...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackSnapshotCounter.ps1
CloudStackSnapshotCounter.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Volume Snapshot History Listing. .DESCRIPTION Snapshot Counter will iterate through each volume and display a count of the number of snapshots per-volume. .EXAMPLE CloudStackSnapshotCounter.ps1 #> # Writen by Jeff Moody (fifthecho@gmail.com) # # 2013/7/12 v1.0...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackDestroyVM.ps1
CloudStackDestroyVM.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Virtual Machine destruction Scriptlet. .DESCRIPTION Destroy a CloudStack Virtual Machine .PARAMETER instanceid The instance ID of the VM. #> # Writen by Jeff Moody (fifthecho@gmail.com) # # 2013/7/19 v1.0 created Param( [Parameter(Mandatory=$true)] [Str...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackListVirtualMachines.ps1
CloudStackListVirtualMachines.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Virtual Machine Listing Scriptlet. .DESCRIPTION List all virtual machines running within a CloudStack Cloud. .PARAMETER zoneid The zone ID to list VMs from. .EXAMPLE CloudStackListVirtualMachines.ps1 -zoneid e697daf1-a747-4152-a5ac-992bad096653 #> # Writen b...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackDeployVM.ps1
CloudStackDeployVM.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Virtual Machine Desployment Scriptlet .DESCRIPTION Use this script to deploy a virtual machine in a CloudStack Cloud. .PARAMETER templateid The template ID for the VM. .PARAMETER zoneid The zone for the VM .PARAMETER serviceofferingid The Service off...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackListZones.ps1
CloudStackListZones.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Zone Listing Scriptlet. .DESCRIPTION List all Zones of a CloudStack Cloud. .EXAMPLE CloudStackListZones.ps1 #> # Writen by Jeff Moody (fifthecho@gmail.com) # # 2013/5/17 v1.0 created Import-Module CloudStackClient $parameters = Import-CloudStackConfig ...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackHAToggle.ps1
CloudStackHAToggle.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Virtual Machine HA toggling Scriptlet. .DESCRIPTION Alter a virtual machine running within a CloudStack Cloud to be HA Enabled or Disabled.. .PARAMETER instanceid The instance ID of the VM. .PARAMETER state The state of HA, should be "true" or "false" .EXAMPL...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackCreateSecurityGroups.ps1
CloudStackCreateSecurityGroups.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform SecurityGroup Creating Scriptlet. .DESCRIPTION create a security group of a CloudStack Cloud. This function return a ID matching to the securityGroup just created .EXAMPLE CloudStackCreateSecurityGroups.ps1 #> # Writen by Jerome RIVIERE (www.jerome-riviere.r...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackSnapshotVolumeBackground.ps1
CloudStackSnapshotVolumeBackground.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Volume Snapshot Agent in the background (initiates job and then exits). .DESCRIPTION A feature-rich Apache CloudStack/Citrix CloudPlatform API client for issuing commands to the Cloud Management system. .PARAMETER volume The volume parameter is MANDATORY and specif...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackListServiceOfferings.ps1
CloudStackListServiceOfferings.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Service Offering Listing Scriptlet. .DESCRIPTION List all Service Offerings of a CloudStack Cloud. .EXAMPLE CloudStackListServiceOfferings.ps1 #> # Writen by Jeff Moody (fifthecho@gmail.com) # # 2013/5/17 v1.0 created Import-Module CloudStackClient $param...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackListNetworks.ps1
CloudStackListNetworks.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Network Listing Scriptlet. .DESCRIPTION List all Networks of a CloudStack Cloud. .EXAMPLE CloudStackListNetworks.ps1 #> # Writen by Jeff Moody (fifthecho@gmail.com) # # 2013/5/17 v1.0 created Import-Module CloudStackClient $parameters = Import-CloudStackC...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackSnapshotHistoryManager.ps1
CloudStackSnapshotHistoryManager.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Volume Snapshot History Manager. .DESCRIPTION A feature-rich Apache CloudStack/Citrix CloudPlatform API client for issuing commands to the Cloud Management system. .PARAMETER volume The volume parameter is MANDATORY and specifies which volume you are wanting to man...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackSnapshotVolume.ps1
CloudStackSnapshotVolume.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform Volume Snapshot Agent. .DESCRIPTION A feature-rich Apache CloudStack/Citrix CloudPlatform API client for issuing commands to the Cloud Management system. .PARAMETER volume The volume parameter is MANDATORY and specifies which volume you are wanting to take a snapsh...
PowerShellCorpus/Github/fifthecho_CloudStack-PowerShell/CloudStackListSecurityGroups.ps1
CloudStackListSecurityGroups.ps1
<# .SYNOPSIS A CloudStack/CloudPlatform SecurityGroup Listing Scriptlet. .DESCRIPTION List all SecurityGroups of a CloudStack Cloud. Can Get a securitygroup ID by the name who provide .EXAMPLE CloudStackListSecurityGroups.ps1 #> # Writen by Jeff Moody (fifthecho@gmail.com) # Edited by Jerome RIVI...
PowerShellCorpus/Github/janelizhen_DSC/Demo/demo_ipv6.ps1
demo_ipv6.ps1
<# Authorize a configuration for particular node #> configuration config { #Node $computer_name #Node $ipv4_address #Node localhost #Node $ipv6_address <-- not working { ... } } config Start-DscConfiguration -Path .\config -Wait -Verbose -Force <# An IPv6 class resource @ ...
PowerShellCorpus/Github/VasylMalanii_Notes-management/NotesManagement/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/VasylMalanii_Notes-management/NotesManagement/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/VasylMalanii_Notes-management/NotesManagement/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/VasylMalanii_Notes-management/NotesManagement/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/VasylMalanii_Notes-management/NotesManagement/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/VasylMalanii_Notes-management/NotesManagement/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/kamlys_BusinessGame/BusinessGame/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/kamlys_BusinessGame/BusinessGame/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/kamlys_BusinessGame/BusinessGame/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/kamlys_BusinessGame/BusinessGame/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/kamlys_BusinessGame/BusinessGame/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/kamlys_BusinessGame/BusinessGame/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/kamlys_BusinessGame/BusinessGame/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/kamlys_BusinessGame/BusinessGame/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/kamlys_BusinessGame/BusinessGame/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/sylesh687_AzureWithPowershell/CreatingNIc(Part 6).ps1
CreatingNIc(Part 6).ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating NIC # Version: 1.0 #------------------------------------------------------------------ Select-AzureRmProfile -Path "mycredential.json" $LOCATION="South Central US" $RG="Osgroup" $NICNa...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/CreatingResourceGroup(Part2).ps1
CreatingResourceGroup(Part2).ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating Azure Resource Group # Version: 1.0 #------------------------------------------------------------------ #------------------------------------------------------------------ # Function Name: Az...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/CreatingPublicIp(part 5).ps1
CreatingPublicIp(part 5).ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating Public Ip # Version: 1.0 #------------------------------------------------------------------ Select-AzureRmProfile -Path "mycredential.json" $LOCATION="South Central US" $RG="Osgroup" ...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/Stopping and Deleting VM.ps1
Stopping and Deleting VM.ps1
Stop-AzureRmVM -Name osgroup -ResourceGroupName Osgroup Remove-AzureRmVM -Name osgroup -ResourceGroupName Osgroup
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/LinuxVirtualMachine.ps1
LinuxVirtualMachine.ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating a Linux Virtual Machine and PreConfigure # Version: 1.0 #------------------------------------------------------------------ # First Step is to Do a silent login for that we first need to login m...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/myScript.ps1
myScript.ps1
net user John fadf24as /ADD
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/CreatingVnets and Subnets(Part 4).ps1
CreatingVnets and Subnets(Part 4).ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating Vnets and Subnets # Version: 1.0 #------------------------------------------------------------------ Select-AzureRmProfile -Path "mycredential.json" $LOCATION="South Central US" $RG="O...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/SilentLoginAzure(Part 1).ps1
SilentLoginAzure(Part 1).ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Silent Login to Azure # Version: 1.0 #------------------------------------------------------------------ #------------------------------------------------------------------ # Function Name: AzureLogin...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/Centos7.ps1
Centos7.ps1
$Rg="Osgroup" $Vnet="OsgroupVnet" $VmName="osgroup" $Location="South Central US" $Cred=Get-Credential $Nsg="sylesh-nsg" $Nic="osgroupNIC" $Pip="PIPOSGRP" $LinuxPublisher="OpenLogic" $LinuxOffer="CentOS" $Skus="7.1" $VmSize="Standard_D1_v2" Login-AzureRmAccount $VirtualNetwork=Get-AzureRmVirtualNetwor...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/Untitled2.ps1
Untitled2.ps1
################################################################################# # Author: Shailesh Thakur # Description: Send Email Using Powershell # Version:1.0 ################################################################################# ############################### Variables Declaration and Defin...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/Setting Up Virtual Machines For Kubernetes Cluster.ps1
Setting Up Virtual Machines For Kubernetes Cluster.ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating Kubernetes Cluster # Version: 1.0 #------------------------------------------------------------------ #------------------------------------------------------------------ # Variables...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/Creating a Virtual Machine(Part 7).ps1
Creating a Virtual Machine(Part 7).ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating a Virtual Machine # Version: 1.0 #------------------------------------------------------------------ Select-AzureRmProfile -Path "login.json" $RG="Osgroup" $LOCATION="South Central US" ...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/Creating NSrulesandNSG((Part 3).ps1
Creating NSrulesandNSG((Part 3).ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating NS rules and NSG # Version: 1.0 #------------------------------------------------------------------ Select-AzureRmProfile -Path "mycredential.json" $NSGNAME="OsgroupNSG" $LOCATION="Sou...
PowerShellCorpus/Github/sylesh687_AzureWithPowershell/Windows VM And PreConfigure.ps1
Windows VM And PreConfigure.ps1
#------------------------------------------------------------------ # Author: Shailesh Thakur # Description: Creating a Windows VM and PreConfigure # Version: 1.0 #------------------------------------------------------------------ #------------------------------------------------------------------ Login-Azur...
PowerShellCorpus/Github/IonutEnache21_EF/Personal_IE/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...