full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Disconnect-AzureADOnline.ps1
Disconnect-AzureADOnline.ps1
function Disconnect-AzureADOnline { [CmdletBinding()] param () try { Disconnect-AzureAD -ErrorAction Stop Remove-Module -Name AzureAD -Force -ErrorAction Stop Write-Verbose -Message 'Azure AD Session is now closed.' -Verbose } catch { Write-Warnin...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Disconnect-Office365.ps1
Disconnect-Office365.ps1
function Disconnect-Office365 { <# .SYNOPSIS Disconnect from one or more Office 365 services using Powershell. .DESCRIPTION Disconnect from one or more Office 365 services using Powershell. Some services requires the installation of separate PowerShell modules...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Get-SfBOnlineSession.ps1
Get-SfBOnlineSession.ps1
function Get-SfBOnlineSession { [CmdletBinding()] param () try { Get-PSSession -ErrorAction Stop | Get-OnlinePSSession -FilterComputerName 'online.lync.com' -FilterConfigurationName 'Microsoft.PowerShell' } catch { Write-Warning -Message ('Unable to get active ...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Connect-SfBOnline.ps1
Connect-SfBOnline.ps1
function Connect-SfBOnline { [CmdletBinding()] param( [Parameter( ValueFromPipeline = $true, Mandatory = $true, HelpMessage = 'Credentials in Azure AD to access Office 365.' )] [System.Management.Automation.Credential()] [PSCredent...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Connect-AzureADOnline.ps1
Connect-AzureADOnline.ps1
function Connect-AzureADOnline { [CmdletBinding()] param( [Parameter( ValueFromPipeline = $true, Mandatory = $true, HelpMessage = 'Credentials in Azure AD to access Office 365.' )] [System.Management.Automation.Credential()] ...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Connect-ExchangeOnlineProt.ps1
Connect-ExchangeOnlineProt.ps1
function Connect-ExchangeOnlineProt { [CmdletBinding()] param( [Parameter( ValueFromPipeline = $true, Mandatory = $true, HelpMessage = 'Credentials in Azure AD to access Office 365.' )] [System.Management.Automation.Credenti...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Get-OnlinePSSession.ps1
Get-OnlinePSSession.ps1
function Get-OnlinePSSession { param( [Parameter( Mandatory = $true, ValueFromPipeline = $true, HelpMessage = 'PSSessions' )] [Management.Automation.Runspaces.PSSession[]]$Session, [Parameter( Mandatory = $true, ...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Connect-ExchangeOnline.ps1
Connect-ExchangeOnline.ps1
function Connect-ExchangeOnline { [CmdletBinding()] param( [Parameter( ValueFromPipeline = $true, Mandatory = $true, HelpMessage = 'Credentials in Azure AD to access Office 365.' )] [System.Management.Automation.Credential()] [PSCr...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Get-ExchangeOnlineSession.ps1
Get-ExchangeOnlineSession.ps1
function Get-ExchangeOnlineSession { [CmdletBinding()] param () try { Get-PSSession -ErrorAction Stop | Get-OnlinePSSession -FilterComputerName outlook.office365.com -FilterConfigurationName Microsoft.Exchange -FilterSessionName 'ExchangeOnline' } catch { Write...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Disconnect-SfBOnline.ps1
Disconnect-SfBOnline.ps1
function Disconnect-SfBOnline { [CmdletBinding()] param () try { $SfBOSession = Get-SfBOnlineSession if ($null -ne $SfBOSession) { Remove-PSSession -Session ($SfBOSession) -ErrorAction Stop Remove-Module -Name 'SkypeOnlineConnector' -Force -Er...
PowerShellCorpus/PowerShellGallery/Office365Connect/1.5.0/Connect-Office365.ps1
Connect-Office365.ps1
function Connect-Office365 { <# .SYNOPSIS Connect to one or more Office 365 services using Powershell. .DESCRIPTION Connect to one or more Office 365 services using Powershell and a Azure AD account. Some services requires the installation of separate PowerShe...
PowerShellCorpus/PowerShellGallery/WindowsFever/1.1.0/Examples/FileExplorerNamespace.ps1
FileExplorerNamespace.ps1
# Get all file explorer namespaces for the current user. Get-FileExplorerNamespace # Create a complex Workspace file explorer namespace by specified every # parameter including a specific icon. Add-FileExplorerNamespace -Name 'Workspace' -Icon '%SystemRoot%\System32\imageres.dll,156' -TargetFolderPath "$HOME\Workspac...
PowerShellCorpus/PowerShellGallery/WindowsFever/1.1.0/Examples/WatchPath.ps1
WatchPath.ps1
# Watch the C:\Demo\file.txt for changes and write them to the host. Start-WatchPath -Path 'C:\Demo' -Filter 'file.txt' -ChangedAction { $Event.SourceArgs[1].FullPath | Out-File -FilePath 'C:\Log\changed.log' } # Stop watching on C:\Demo. Stop-WatchPath -Path 'C:\Demo'
PowerShellCorpus/PowerShellGallery/WindowsFever/1.1.0/Tests/Unit/Get-FileExplorerNamespace.Tests.ps1
Get-FileExplorerNamespace.Tests.ps1
$modulePath = Resolve-Path -Path "$PSScriptRoot\..\..\.." | Select-Object -ExpandProperty Path $moduleName = Resolve-Path -Path "$PSScriptRoot\..\.." | Get-Item | Select-Object -ExpandProperty BaseName Remove-Module -Name $moduleName -Force -ErrorAction SilentlyContinue Import-Module -Name "$modulePath\$moduleName" -...
PowerShellCorpus/PowerShellGallery/HPRESTCmdlets/1.1.0.1/HPRESTExamples.ps1
HPRESTExamples.ps1
<# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP Licensed under the Apache License, Version 2.0 (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at     http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
PowerShellCorpus/PowerShellGallery/HPRESTCmdlets/1.1.0.1/ShowLicense.ps1
ShowLicense.ps1
<# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development LP #> Add-Type @' public class AsyncPipeline { public System.Management.Automation.PowerShell Pipeline ; public System.IAsyncResult AsyncResult ; } '@ function Create-ThreadPool { [Cmdletbinding()] Param ( [Parame...
PowerShellCorpus/PowerShellGallery/PSProfileSauce/0.0.2/Module/SaucedPrompt.ps1
SaucedPrompt.ps1
# # Prompt.ps1 # $global:GitPromptSettings.BeforeText = '[' $global:GitPromptSettings.AfterText = '] ' function SaucedPrompt { $origLastExitCode = $LASTEXITCODE Write-VcsStatus $curPath = $ExecutionContext.SessionState.Path.CurrentLocation.Path if ($curPath.ToLower().StartsWith($Home.ToL...
PowerShellCorpus/PowerShellGallery/PSProfileSauce/0.0.2/Tests/PSProfileSauce.tests.ps1
PSProfileSauce.tests.ps1
# # This is a PowerShell Unit Test file. # You need a unit test framework such as Pester to run PowerShell Unit tests. # You can download Pester from http://go.microsoft.com/fwlink/?LinkID=534084 # $PSVersion = $PSVersionTable.PSVersion.Major Import-Module $PSScriptRoot\..\PSProfileSauce -Force Describe "...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Private/New-ScriptMessage.ps1
New-ScriptMessage.ps1
function New-ScriptMessage { <# .SYNOPSIS Helper Function to show default message used in VERBOSE/DEBUG/WARNING .DESCRIPTION Helper Function to show default message used in VERBOSE/DEBUG/WARNING and... HOST in some case. This is helpful to standardize the output messages .PARAMETER Message ...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMNoticeEvent.ps1
Get-CAMNoticeEvent.ps1
function Get-CAMNoticeEvent { <# .SYNOPSIS Function to retrieve NoticeEvent from the Cireson Asset Management .DESCRIPTION Function to retrieve NoticeEvent from the Cireson Asset Management .EXAMPLE Get-CAMNoticeEvent .EXAMPLE Get-CAMNoticeEvent -DisplayName "*Pro" .EXAMPLE Get-CAMNoticeEve...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/New-CAMObject.ps1
New-CAMObject.ps1
Function New-CAMObject { <# .SYNOPSIS Function to create a new Cireson Asset Management Object .DESCRIPTION Function to create a new Cireson Asset Management Object .PARAMETER TypeName Specifies the type of Object you want to create .PARAMETER Hashtable Specifies the...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMRelatedCustodian.ps1
Get-CAMRelatedCustodian.ps1
Function Get-CAMRelatedCustodian { <# .SYNOPSIS Function to retrieve the Related Custodian of an object .DESCRIPTION Function to retrieve the Related Custodian of an object .PARAMETER WorkItemObject Specifies the Object to process .EXAMPLE PS C:\> Get-CAMRelatedCustodian -WorkItemObject $...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMRelatedVendor.ps1
Get-CAMRelatedVendor.ps1
Function Get-CAMRelatedVendor { <# .SYNOPSIS Function to retrieve the Vendor associate with a specific CAM class .DESCRIPTION Function to retrieve the Vendor associate with a specific CAM class. I'm using this for Support Contracts. .PARAMETER WorkItemObject Specify the Object .EXAMPLE ...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMLocation.ps1
Get-CAMLocation.ps1
function Get-CAMLocation { <# .SYNOPSIS Function to retrieve Location from the Cireson Asset Management .DESCRIPTION Function to retrieve Location from the Cireson Asset Management .EXAMPLE Get-CAMLocation .EXAMPLE Get-CAMLocation -DisplayName "*Pro" .EXAMPLE Get-CAMLocation -id '3cbgg558-a...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMLicense.ps1
Get-CAMLicense.ps1
function Get-CAMLicense { <# .SYNOPSIS Function to retrieve License from the Cireson Asset Management .DESCRIPTION Function to retrieve License from the Cireson Asset Management .PARAMETER DisplayName Specifies the DisplayName .PARAMETER ID Specifies the ID of the License. Typically the G...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMStandard.ps1
Get-CAMStandard.ps1
function Get-CAMStandard { <# .SYNOPSIS Function to retrieve Standard from the Cireson Asset Management .DESCRIPTION Function to retrieve Standard from the Cireson Asset Management .EXAMPLE Get-CAMStandard .EXAMPLE Get-CAMStandard -DisplayName "*Pro" .EXAMPLE Get-CAMStandard -id '3cbgg558-a...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMHardwareAsset.ps1
Get-CAMHardwareAsset.ps1
function Get-CAMHardwareAsset { <# .SYNOPSIS Function to retrieve Hardware Asset from the Cireson Asset Management .DESCRIPTION Function to retrieve Hardware Asset from the Cireson Asset Management .EXAMPLE Get-CamHardwareAsset .EXAMPLE Get-CamHardwareAsset -DisplayName "*Pro" .EXAMPLE Get-...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMPurchaseOrder.ps1
Get-CAMPurchaseOrder.ps1
function Get-CAMPurchaseOrder { <# .SYNOPSIS Function to retrieve PurchaseOrder from the Cireson Asset Management .DESCRIPTION Function to retrieve PurchaseOrder from the Cireson Asset Management .EXAMPLE Get-CAMPurchaseOrder .EXAMPLE Get-CAMPurchaseOrder -DisplayName "*Pro" .EXAMPLE Get-CA...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMCostCenter.ps1
Get-CAMCostCenter.ps1
function Get-CAMCostCenter { <# .SYNOPSIS Function to retrieve CostCenter from the Cireson Asset Management .DESCRIPTION Function to retrieve CostCenter from the Cireson Asset Management .EXAMPLE Get-CAMCostCenter .EXAMPLE Get-CAMCostCenter -DisplayName "*Pro" .EXAMPLE Get-CAMCostCenter -id...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMOrganization.ps1
Get-CAMOrganization.ps1
function Get-CAMOrganization { <# .SYNOPSIS Function to retrieve Organization from the Cireson Asset Management .DESCRIPTION Function to retrieve Organization from the Cireson Asset Management .EXAMPLE Get-CamOrganization .EXAMPLE Get-CamOrganization -Displayname 'IT' .EXAMPLE Get-CamOrganiz...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMRelationshipObject.ps1
Get-CAMRelationshipObject.ps1
Function Get-CAMRelationshipObject { <# .SYNOPSIS Function to retrieve the relationship object(s) of an Object .DESCRIPTION Function to retrieve the relationship object(s) of an Object .PARAMETER BySource Specifies the Object to process .EXAMPLE $HardwareAssetPCpro = Get-CamHardwareAs...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMNoticeEventData.ps1
Get-CAMNoticeEventData.ps1
function Get-CAMNoticeEventData { <# .SYNOPSIS Function to retrieve NoticeEventData from the Cireson Asset Management .DESCRIPTION Function to retrieve NoticeEventData from the Cireson Asset Management .EXAMPLE Get-CAMNoticeEventData .EXAMPLE Get-CAMNoticeEventData -DisplayName "*Pro" .EXAMPLE...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMPurchase.ps1
Get-CAMPurchase.ps1
function Get-CAMPurchase { <# .SYNOPSIS Function to retrieve Purchase from the Cireson Asset Management .DESCRIPTION Function to retrieve Purchase from the Cireson Asset Management .EXAMPLE Get-CAMPurchase .EXAMPLE Get-CAMPurchase -DisplayName "*Pro" .EXAMPLE Get-CAMPurchase -id '3cbgg558-a...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMImportConnector.ps1
Get-CAMImportConnector.ps1
function Get-CAMImportConnector { <# .SYNOPSIS Function to retrieve Import Connector from the Cireson Asset Management .DESCRIPTION Function to retrieve Import Connector from the Cireson Asset Management .EXAMPLE Get-CAMConnector .EXAMPLE Get-CAMConnector -DisplayName "*Pro" .EXAMPLE Get-CA...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMLease.ps1
Get-CAMLease.ps1
function Get-CAMLease { <# .SYNOPSIS Function to retrieve Lease from the Cireson Asset Management .DESCRIPTION Function to retrieve Lease from the Cireson Asset Management .EXAMPLE Get-CAMLease .EXAMPLE Get-CAMLease -DisplayName "*Pro" .EXAMPLE Get-CAMLease -id '3cbgg558-a09c-b717-2401-05ae...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMCatalogItem.ps1
Get-CAMCatalogItem.ps1
function Get-CAMCatalogItem { <# .SYNOPSIS Function to retrieve CatalogItem from the Cireson Asset Management .DESCRIPTION Function to retrieve CatalogItem from the Cireson Asset Management .EXAMPLE Get-CAMCatalogItem .EXAMPLE Get-CAMCatalogItem -DisplayName "*Pro" .EXAMPLE Get-CAMCatalogIt...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMSettings.ps1
Get-CAMSettings.ps1
function Get-CAMSetting { <# .SYNOPSIS Function to retrieve Settings from the Cireson Asset Management .DESCRIPTION Function to retrieve Settings from the Cireson Asset Management .EXAMPLE Get-CAMSettings .EXAMPLE Get-CAMSetting -DisplayName "*Pro" .EXAMPLE Get-CAMSetting -id '3cbgg558-a09c...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMSoftwareAsset.ps1
Get-CAMSoftwareAsset.ps1
function Get-CAMSoftwareAsset { <# .SYNOPSIS Function to retrieve Software Asset from the Cireson Asset Management .DESCRIPTION Function to retrieve Software Asset from the Cireson Asset Management .EXAMPLE Get-CamSoftwareAsset .EXAMPLE Get-CamSoftwareAsset -DisplayName "*Pro" .EXAMPLE Get-...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMInvoice.ps1
Get-CAMInvoice.ps1
function Get-CAMInvoice { <# .SYNOPSIS Function to retrieve Invoice from the Cireson Asset Management .DESCRIPTION Function to retrieve Invoice from the Cireson Asset Management .EXAMPLE Get-CAMInvoice .EXAMPLE Get-CAMInvoice -DisplayName "*Pro" .EXAMPLE Get-CAMInvoice -id '3cbgg558-a09c-b7...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMSubnet.ps1
Get-CAMSubnet.ps1
function Get-CAMSubnet { <# .SYNOPSIS Function to retrieve Subnet from the Cireson Asset Management .DESCRIPTION Function to retrieve Subnet from the Cireson Asset Management .EXAMPLE Get-CAMSubnet .EXAMPLE Get-CAMSubnet -DisplayName "*Pro" .EXAMPLE Get-CAMSubnet -id '3cbgg558-a09c-b717-240...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMVendor.ps1
Get-CAMVendor.ps1
function Get-CAMVendor { <# .SYNOPSIS Function to retrieve Vendor from the Cireson Asset Management .DESCRIPTION Function to retrieve Vendor from the Cireson Asset Management .PARAMETER DisplayName Specifies the DisplayName .PARAMETER ID Specifies the ID. Typically the GUID. .PARAMET...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMWarranty.ps1
Get-CAMWarranty.ps1
function Get-CAMWarranty { <# .SYNOPSIS Function to retrieve Warranty from the Cireson Asset Management .DESCRIPTION Function to retrieve Warranty from the Cireson Asset Management .EXAMPLE Get-CAMWarranty .EXAMPLE Get-CAMWarranty -DisplayName "*Pro" .EXAMPLE Get-CAMWarranty -id '3cbgg558-a...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/New-CAMVendor.ps1
New-CAMVendor.ps1
Function New-CAMVendor { <# .SYNOPSIS Function to create a new Cireson Asset Management Vendor .DESCRIPTION Function to create a new Cireson Asset Management Vendor .PARAMETER Name Specify the name of the Vendor(s) .EXAMPLE PS C:\> New-CAMVendor -Name "VMware" .EXAMPLE PS C:\> New...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMConsumable.ps1
Get-CAMConsumable.ps1
function Get-CAMConsumable { <# .SYNOPSIS Function to retrieve Consumable from the Cireson Asset Management .DESCRIPTION Function to retrieve Consumable from the Cireson Asset Management .EXAMPLE Get-CAMConsumable .EXAMPLE Get-CAMConsumable -DisplayName "*Pro" .EXAMPLE Get-CAMConsumable -id...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMRelatedObject.ps1
Get-CAMRelatedObject.ps1
Function Get-CAMRelatedObject { <# .SYNOPSIS Function to retrieve the Related Object .DESCRIPTION Function to retrieve the Related Object .PARAMETER WorkItemObject Specifies the Object to process .EXAMPLE $HardwareAssetPCpro = Get-CamHardwareAsset -DisplayName "PCPro" Get-CAMRelate...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMMeteringData.ps1
Get-CAMMeteringData.ps1
function Get-CAMMeteringData { <# .SYNOPSIS Function to retrieve MeteringData from the Cireson Asset Management .DESCRIPTION Function to retrieve MeteringData from the Cireson Asset Management .EXAMPLE Get-CAMMeteringData .EXAMPLE Get-CAMMeteringData -DisplayName "*Pro" .EXAMPLE Get-CAMMete...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMObject.ps1
Get-CAMObject.ps1
Function Get-CAMObject { <# .SYNOPSIS Function to retrieving Cireson Asset Management Object(s) .DESCRIPTION Function to retrieving Cireson Asset Management Object(s) .PARAMETER TypeName Specifies the type of Object you want to create .PARAMETER Filter Specifies...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMLog.ps1
Get-CAMLog.ps1
function Get-CAMLog { <# .SYNOPSIS Function to retrieve Log from the Cireson Asset Management .DESCRIPTION Function to retrieve Log from the Cireson Asset Management .EXAMPLE Get-CAMLog .EXAMPLE Get-CAMLog -DisplayName "*Pro" .EXAMPLE Get-CAMLog -id '3cbgg558-a09c-b717-2401-05aef430b01f' ...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMSupportContract.ps1
Get-CAMSupportContract.ps1
function Get-CAMSupportContract { <# .SYNOPSIS Function to retrieve Support Contract from the Cireson Asset Management .DESCRIPTION Function to retrieve Support Contract from the Cireson Asset Management .PARAMETER DisplayName Specifies the DisplayName .PARAMETER ID Specifies the ID of th...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMBase.ps1
Get-CAMBase.ps1
function Get-CAMBase { <# .SYNOPSIS Function to retrieve Base from the Cireson Asset Management .DESCRIPTION Function to retrieve Base from the Cireson Asset Management .EXAMPLE Get-CAMBase .EXAMPLE Get-CAMBase -DisplayName "*Pro" .EXAMPLE Get-CAMBase -id '3cbgg558-a09c-b717-2401-05aef430b0...
PowerShellCorpus/PowerShellGallery/CiresonAssetManagementPS/1.0.0/Public/Get-CAMClass.ps1
Get-CAMClass.ps1
function Get-CAMClass { <# .SYNOPSIS Function to retrieve Cireson Asset Management classes .DESCRIPTION Function to retrieve Cireson Asset Management classes .EXAMPLE Get-CAMClass .NOTES Francois-Xavier Cat @Lazywinadm www.lazywinadmin.com github.com/lazywinadmin #> PARAM ( <# ...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Patch-ModuleManifest.ps1
Patch-ModuleManifest.ps1
<# .Author Trevor Sullivan <trevor@trevorsullivan.net> .Description Publishes the PowerShell module to the PowerShell Gallery. This PowerShell script is invoked by AppVeyor after the "Deploy" phase has completed successfully. .Parameter Path The path to the module manifest file. .Parameter BuildNumb...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Private/Get-AllAzureLocations.ps1
Get-AllAzureLocations.ps1
# # Get_AllAzureLocations.ps1 # function Get-AllAzureLocations { <# .Synopsis Retrieves a list of Azure locations, using the AzureResourceManager PowerShell module. .Description This function may be deprecated, or require modification, if the Get-AzureLocation command is changed from returnin...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Public/Invoke-AzureRmRemoteDesktop.ps1
Invoke-AzureRmRemoteDesktop.ps1
function Invoke-AzureRmRemoteDesktop { <# .Author Trevor Sullivan <pcgeek86@gmail.com> .Description Invoke a RDP session to an Azure Virtual Machine, without having to type the Resource Group name or Virtual Machine name. Instead, simply select it from the WPF window that pops open. This comm...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Public/Unpublish-AzureStorageBlob.ps1
Unpublish-AzureStorageBlob.ps1
function Unpublish-AzureStorageBlob { <# .Synopsis Removes Azure blobs from a blob container in an Azure Storage Account using a simple, graphical interface. .Description This command uses the built-in PowerShell v3.0 (and later) Out-GridView command to prompt the user for an array of Azure St...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Public/Remove-AzureRmResourceGroupGui.ps1
Remove-AzureRmResourceGroupGui.ps1
function Remove-AzureRmResourceGroupGui { <# .Synopsis Removes Azure Resource Manager (ARM) Resource Groups, using a simple GUI. .Description .Example Remove-AzureRmResourceGroupGui #> [CmdletBinding(SupportsShouldProcess = $true)] param ( ) ### Prompt user to select ...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Public/Start-AzureRm.ps1
Start-AzureRm.ps1
function Start-AzureRm { <# .Synopsis Loads or creates a cached Azure Profile. .Description Loads a cached Azure Profile from disk, if it exists, otherwise the user is prompted to create it. This command has no parameters. .Example Start-AzureRm; #> [CmdletBinding()] p...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Public/Publish-AzureStorageBlob.ps1
Publish-AzureStorageBlob.ps1
function Publish-AzureStorageBlob { [CmdletBinding(SupportsShouldProcess = $true)] param ( ) ### Load the Windows Forms .NET Assembly Add-Type -AssemblyName System.Windows.Forms; $OpenFileDialog = New-Object -TypeName System.Windows.Forms.OpenFileDialog; $OpenFileDialog.Multiselect = $true;...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Public/Remove-AzureRmResourceGui.ps1
Remove-AzureRmResourceGui.ps1
function Remove-AzureRmResourceGui { <# .Synopsis Removes Azure Resource Manager (ARM) Resources, using a simple GUI. .Description Removes Azure Resource Manager (ARM) Resources, using a simple GUI. .Example Remove-AzureRmResourceGui #> [CmdletBinding(SupportsShouldProcess = $true)...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Public/Resize-AzureRmVm.ps1
Resize-AzureRmVm.ps1
function Resize-AzureRmVM { <# .Synopsis Resizes Microsoft Azure Virtual Machines to a new size. .Description This command resizes Microsoft Azure Virtual Machines. Use the Get-AzureRmVmSize command to determine an authoritative list of supported Azure Virtual Machine sizes. .Example ### ...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Functions/Public/Invoke-AzureRemoteDesktop.ps1
Invoke-AzureRemoteDesktop.ps1
function Invoke-AzureRemoteDesktop { <# .Author Trevor Sullivan <pcgeek86@gmail.com> .Description Invoke a RDP session to an Azure Virtual Machine, without having to type the Cloud Service name or Virtual Machine name. Instead, simply select it from the WPF window that pops open. This command...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.Locations.ArgumentCompleters.ps1
Microsoft.AzureRm.Locations.ArgumentCompleters.ps1
$ArgumentCompleter = @{ CommandName = @( 'Add-AlertRule', 'Add-AutoscaleSetting', 'Add-AzureRmApiManagementRegion', 'Get-AzureRmHDInsightProperties', 'Get-AzureRmStreamAnalyticsQuota', 'Get-AzureRmVMExtensionImage', 'Get-AzureRmVMEx...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.NetworkInterface.Name.ArgumentCompleters.ps1
Microsoft.AzureRm.NetworkInterface.Name.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -Name parameter value for Azure Resource Manager (ARM) PowerShell cmdlets for Network Interfaces. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param(...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.Azure.Subscription.SubscriptionName.ArgumentCompleters.ps1
Microsoft.Azure.Subscription.SubscriptionName.ArgumentCompleters.ps1
$ArgumentCompleter = @{ CommandName = @( 'Get-WAPackSubscription', 'Remove-WAPackSubscription', 'Select-WAPackSubscription', 'Set-WAPackSubscription', 'Get-AzureSubscription', 'New-AzureSqlDatabaseServerContext', 'Remove-A...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.Automation.RunbookName.ArgumentCompleters.ps1
Microsoft.AzureRm.Automation.RunbookName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -Name parameter value for Azure Automation Runbook Azure Resource Manager (ARM) PowerShell cmdlets. NOTE: Use this command to find commands that this auto-completer applies to: (Get-Command -Module AzureRM.Automation -Name *runbook* -Parame...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.Resource.Name.ArgumentCompleters.ps1
Microsoft.AzureRm.Resource.Name.ArgumentCompleters.ps1
$ArgumentCompleter = @{ CommandName = @( 'Get-AzureRmResource' 'Get-AzureRmResourceLock' 'Get-AzureRmRoleAssignment' 'Invoke-AzureRmResourceAction' 'New-AzureRmResource' 'New-AzureRmResourceLock' 'New-AzureRmRoleAssignment' 'Remove-AzureRmResource' ...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.Storage.StorageAccountName.ArgumentCompleters.ps1
Microsoft.AzureRm.Storage.StorageAccountName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -StorageAccountName parameter value for Azure Resource Manager (ARM) PowerShell cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param($commandN...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.RedisCache.Name.ArgumentCompleters.ps1
Microsoft.AzureRm.RedisCache.Name.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -Name parameter value for Azure Resource Manager (ARM) PowerShell cmdlets for Redis Cache. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param($comman...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.Resources.ResourceId.ArgumentCompleters.ps1
Microsoft.AzureRm.Resources.ResourceId.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -ResourceId parameter value for Azure Resource Manager (ARM) PowerShell cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param($commandName, $parameterName,...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.VirtualMachine.VMName.ArgumentCompleters.ps1
Microsoft.AzureRm.VirtualMachine.VMName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -StorageAccountName parameter value for Azure Resource Manager (ARM) PowerShell cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param($commandN...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.VirtualNetwork.Name.ArgumentCompleters.ps1
Microsoft.AzureRm.VirtualNetwork.Name.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -Name parameter value for Azure Resource Manager (ARM) PowerShell cmdlets for Virtual Networking. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param(...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.Azure.Storage.StorageAccountName.ArgumentCompleters.ps1
Microsoft.Azure.Storage.StorageAccountName.ArgumentCompleters.ps1
$ArgumentCompleter = @{ CommandName = @('Enable-WAPackWebsiteApplicationDiagnositc', 'Add-AzureHDInsightStorage', 'Enable-AzureWebsiteApplicationDiagnostic', 'Get-AzureStorageAccount', 'Get-AzureStorageKey', ...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.Azure.Storage.BlobName.ArgumentCompleters.ps1
Microsoft.Azure.Storage.BlobName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -Name parameter value for Azure PowerShell storage container cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param($commandName, $parameterName, $wordToCom...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.Subscription.SubscriptionName.ArgumentCompleters.ps1
Microsoft.AzureRm.Subscription.SubscriptionName.ArgumentCompleters.ps1
$ArgumentCompleter = @{ ### (Get-Command -Module AzureRM* -ParameterName SubscriptionName -Type Cmdlet).Name.ForEach({ "'{0}'," -f $PSItem }) | Set-Clipboard; CommandName = @( 'Add-AzureRmAccount', 'Get-AzureRmSubscription', 'Set-AzureRmContext' ); ...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.ResourceGroup.ResourceGroupName.ArgumentCompleters.ps1
Microsoft.AzureRm.ResourceGroup.ResourceGroupName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -ResourceGroupName parameter value for Azure Resource Manager (ARM) PowerShell cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param($commandName, $paramet...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.Automation.AutomationAccountName.ArgumentCompleters.ps1
Microsoft.AzureRm.Automation.AutomationAccountName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -AutomationAccountName parameter value for Azure Resource Manager (ARM) PowerShell cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param($commandName, $par...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.Azure.Storage.StorageContainerName.ArgumentCompleters.ps1
Microsoft.Azure.Storage.StorageContainerName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -Name parameter value for Azure PowerShell storage container cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> http://trevorsullivan.net #> param($commandName, $parameterName, $wordToCom...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.DNS.ZoneName.ArgumentCompleters.ps1
Microsoft.AzureRm.DNS.ZoneName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -ZoneName parameter value for Azure Resource Manager (ARM) PowerShell cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> https://trevorsullivan.net #> param($commandName, $parameterName, ...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.Azure.CloudService.ServiceName.ArgumentCompleters.ps1
Microsoft.Azure.CloudService.ServiceName.ArgumentCompleters.ps1
$ArgumentCompleter = @{ CommandName = @('Add-AzureCertificate', 'Add-AzureDns', 'Add-AzureInternalLoadBalancer', 'Export-AzureVM', 'Get-AzureCertificate', 'Get-AzureDeployment', 'Get-Azu...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.Azure.VirtualMachine.Name.ArgumentCompleters.ps1
Microsoft.Azure.VirtualMachine.Name.ArgumentCompleters.ps1
$ArgumentCompleter = @{ CommandName = @('Export-AzureVM', 'Get-AzureVM', 'Remove-AzureVM', 'Restart-AzureVM', 'Start-AzureVM', 'Stop-AzureVM', 'Update-AzureVM', 'Get-AzureRemoteDesktopFile'); Pa...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.Resources.ResourceType.ArgumentCompleters.ps1
Microsoft.AzureRm.Resources.ResourceType.ArgumentCompleters.ps1
$ArgumentCompleter = @{ ### Refresh this list of commands, using this command: ### (Get-Command -ParameterName ResourceType).Name.ForEach({ "'{0}'," -f $PSItem }) | Set-Clipboard CommandName = @( 'Find-AzureRmResource', 'Get-AzureRmResource', 'Get-AzureRmResourceLock', 'Get-A...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.ResourceLocks.Name.ArgumentCompleters - Copy.ps1
Microsoft.AzureRm.ResourceLocks.Name.ArgumentCompleters - Copy.ps1
$ArgumentCompleter = @{ CommandName = @( 'Get-AzureRmResourceLock', 'New-AzureRmResourceLock', 'Remove-AzureRmResourceLock', 'Set-AzureRmResourceLock' ); ParameterName = 'LockName'; ScriptBlock = { <# .SYNOPSIS Auto-complete the -LockName parameter...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Completers/Microsoft.AzureRm.SQL.CollationName.ArgumentCompleters.ps1
Microsoft.AzureRm.SQL.CollationName.ArgumentCompleters.ps1
$ScriptBlock = { <# .SYNOPSIS Auto-complete the -CollationName parameter value for Azure Resource Manager (ARM) PowerShell cmdlets. .NOTES Created by Trevor Sullivan <trevor@trevorsullivan.net> https://trevorsullivan.net #> param($commandName, $parameterN...
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Tests/AzureExt.tests.ps1
AzureExt.tests.ps1
# # This is a PowerShell Unit Test file. # You need a unit test framework such as Pester to run PowerShell Unit tests. # You can download Pester from http://go.microsoft.com/fwlink/?LinkID=534084 # Describe -Name Aliases -Fixture { Context 'Aliases Should Exist' { It "Should Return" { } } }
PowerShellCorpus/PowerShellGallery/AzureExt/0.2.5.83/Tests/AzureExt.AutoCompletion.ManualTest.ps1
AzureExt.AutoCompletion.ManualTest.ps1
<# .Synopsis Helper script for testing Microsoft Azure argument-completer functions. #> #$VerbosePreference = 'continue'; $AzureUsername = 'trevor@trevorsullivan.net'; $AzureCredential = Get-Credential -UserName $AzureUsername -Message 'Please enter your Microsoft Azure password.'; $AzureProfile = Login-AzureRM...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Add-SecureSetting.ps1
Add-SecureSetting.ps1
function Add-SecureSetting { <# .Synopsis Adds an encrypted setting to the registry .Description Stores secured user settings in the registry .Example Add-SecureSetting AStringSetting 'A String' .Example Add-SecureSetting AHashtableSetting @{a='b';c='d'} ...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/write-crud.ps1
write-crud.ps1
function Write-CRUD { <# .Synopsis Writes CRUD commands for a table in Azure .Description Writes PowerShell commands to create a CRUD system around a table and partition in Azure CRUD stands for Create, Read, Update, and Delete ...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Push-Deployment.ps1
Push-Deployment.ps1
function Push-Deployment { <# .Synopsis Pushes a deployment to Azure .Description Pushes an existing deployment to an Azure service .Example Push-Deployment "StartAutomating" ".\startautomating.cspkg" ".\startautomating.cscfg" -FirstLabel Start-Scripting -Second U...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Get-PhoneCall.ps1
Get-PhoneCall.ps1
function Get-PhoneCall { <# .Synopsis Gets information about phone calls .Description Gets information about phone calls sent to or from any Twilio Number .Example Get-PhoneCall .Link Send-PhoneCall .Link Get-Web .Link http://twil...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/New-SQLDatabase.ps1
New-SQLDatabase.ps1
function New-SQLDatabase { <# .Synopsis Creates a new SQL database .Description Creates a database in SQL server, SQL azure, SQLCompact, or Sqlite .Example New-SqlDatabase "Test DB" .Example New-SqlDatabase "Test DB" -ComputerName TheSqlServer .Link ...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Write-ScriptHTML.ps1
Write-ScriptHTML.ps1
function Write-ScriptHTML { <# .Synopsis Writes Windows PowerShell as colorized HTML .Description Outputs a Windows PowerShell script as colorized HTML. The script is wrapped in HTML PRE tags with SPAN tags defining color regions. .Example Write-ScriptHTML {Ge...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Get-WebInput.ps1
Get-WebInput.ps1
function Get-WebInput { <# .Synopsis Get the Web Request parameters for a PowerShell command .Description Get the Web Request parameters for a PowerShell command. Script Blocks parameters will automatically be run, and text values will be converted to thei...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Write-Link.ps1
Write-Link.ps1
function Write-Link { <# .Synopsis Writes links to other web content .Description Writes links to other web content, and makes linking to rich web content easy. .Example Write-Link -Url "start-automating.com" .Example Write-Link -Url "Start-Automating.com" -...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Out-AzureService.ps1
Out-AzureService.ps1
function Out-AzureService { <# .Synopsis Creates a an Azure Service Deployment pack, definition, and configuration file .Description Uses the Azure SDK tool CSPack to create a deployment package (cspkg) and associated deployment files. .Link New-AzureServi...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Get-SecureSetting.ps1
Get-SecureSetting.ps1
function Get-SecureSetting { <# .Synopsis Gets encrypted settings stored in the registry .Description Gets secured user settings stored in the registry .Example Get-SecureSetting .Example Get-SecureSetting MySetting .Example Get-SecureSetting M...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/New-Datatable.ps1
New-Datatable.ps1
function New-DataTable { <# .Synopsis Creates a new datatable .Description Creates a new datatable, with optional column information .Example $dt = New-DataTable -ColumnName Name, Age -ColumnType ([string]), ([int]) -KeyColumn Name New-Object PSObject -Property @...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Install-PSNode.ps1
Install-PSNode.ps1
function Install-PSNode { <# .Synopsis Install a PSNode server on the local machine .Description Installs a PSNode server on a local machine .Example Install-PSNode "http://*:9090" -Command { 'hello world' } .Link Start-PSNode .Link Open-Port ...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Add-SQLTable.ps1
Add-SQLTable.ps1
function Add-SqlTable { <# .Synopsis Adds a SQL Table .Description Creates a new Table in SQL .Example Add-SqlTable -TableName PatchyComputers -KeyType Sequential -Column MachineName, GroupName, PatchStatus, PatchWindowStart, PatchStartedAt, LastPatchedAt -DataType 'varch...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/Get-EC2SecurityGroup.ps1
Get-EC2SecurityGroup.ps1
function Get-EC2SecurityGroup { <# .Synopsis Lists EC2 security groups .Description Lists Amazon Web Services EC2 security groups. Security Groups define remote access to a machine. .Example Get-EC2SecurityGroup .Link Remove-EC2SecurityGroup ...
PowerShellCorpus/PowerShellGallery/Pipeworks/1.9.9.4/get-person.ps1
get-person.ps1
function Get-Person { <# .Synopsis Gets information about a person .Description Gets account information about a person. Get-Person contains the common tools to get user information from users on: - Active Directory - Azu...