Various PowerShell functions and scripts
PowerShell
Permalink
Failed to load latest commit information.
.build Fix psake, this isn't PSDeploy, we can recurse Sep 3, 2016
Images Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Tests double force... Mar 16, 2015
Add-ObjectDetail.ps1 a few helper functions Aug 1, 2015
ConvertFrom-SID.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
ConvertTo-FlatObject.ps1 Fix scenario where props have # - use , not {} Jan 27, 2017
Export-PSCredential.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-ADGroupMembers.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-ADMigratedSourceObject.ps1 add Get-ADMigratedSourceObject Jul 30, 2015
Get-ADSIObject.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-AzureRmVmPublicIP.ps1 Add get-azurermvmpublicip Jul 20, 2016
Get-FolderEntry.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-GPPFile.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-GPPShortcut.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-InstalledSoftware.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-MSSQLColumn.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-NetworkStatistics.ps1 Get-NetworkStatistics update Aug 8, 2015
Get-PropertyType.ps1 switch to hashtable May 31, 2015
Get-SQLInstance.ps1 get-sqlinstance added for upcoming post Jan 10, 2015
Get-ScheduledTasks.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-UACSetting.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-UserSession.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Get-WinEventData.ps1 Add Get-WinEventData and !Deploy Jan 8, 2017
Import-PSCredential.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Invoke-AzureRmVmScript.ps1 Update Invoke-AzureRmVmScript Jul 20, 2016
Invoke-MySQLQuery.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Invoke-Parallel.ps1 appveyor scaffolding and updates Mar 16, 2015
Invoke-Ping.ps1 pipeline fix Mar 24, 2015
Invoke-SQLBulkCopy.ps1 Add sqlbulkcopy Mar 16, 2015
Invoke-Sqlcmd2.ps1 1.6.2 change Sep 14, 2016
Join-Object.ps1 Add test-cred, fix join-object bug Oct 6, 2015
Join-Parts.ps1 a few helper functions Aug 1, 2015
LICENSE Switch to MIT license Apr 27, 2016
New-DynamicParam.ps1 Fixed typo in help May 19, 2015
New-IPRange.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
New-SQLConnection.ps1 Fix for -Encrypt switch when credentials are not passed Apr 6, 2016
Open-ISEFunction.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Out-DataTable.ps1 Add sqlbulkcopy Mar 16, 2015
README.md Updated readme [skip ci] Sep 24, 2016
Test-Credential.ps1 fix test-cred logic path Oct 6, 2015
Test-ForAdmin.ps1 Revert "Remove everything not Invoke-Parallel, update README.md" Dec 12, 2014
Wait-Path.ps1 Added first iteration of wait-path Feb 24, 2015
appveyor.yml FIx build reference and !Deploy with !Verbose Sep 3, 2016

README.md

PowerShell

Various PowerShell functions and scripts. These are published as WFTools on the PowerShell Gallery (thanks to @psrdrgz for the idea!)

Two functions have been migrated to their own repositories to simplify and enable improved collaboration. Copies remain here for historical purposes and may be updated:

Instructions

These files contain functions. For example, Invoke-Sqlcmd2.ps1 contains the Invoke-Sqlcmd2 function.

    # PowerShell 5, or PackageManagement available?
    Install-Module WFTools -Force
    Import-Module WFTools
    Get-Command -Module WFTools
    Get-Help ConvertTo-FlatObject -Full

    # Alternatively:
    # Download and unblock the file(s).
    # Dot source the file(s) as appropriate.
    . "\\Path\To\Invoke-Sqlcmd2"

    # Use the functions
    Get-Help Invoke-Sqlcmd2 -Full
    Invoke-Sqlcmd2 -ServerInstance MyServer\MyInstance -Query "SELECT ServerName, VCNumCPU FROM tblServerInfo" -As PSObject -Credential $cred | ?{$_.VCNumCPU -gt 8}

Note: Using Import-Module to load these functions will break certain scenarios for Invoke-Parallel's variable import (details) - dot source the function if you need this.

TechNet Galleries Contributions

Many of these functions started out in the Technet Gallery. You might find more context at these links.

Help!

Would love contributors, suggestions, feedback, and other help!