This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 4.0 | |
#requires -module Pester | |
Function New-Project { | |
<# | |
.SYNOPSIS | |
Create a PowerShell project folder. | |
.DESCRIPTION | |
Use this command to create a new PowerShell project folder. You specify a top level folder and the name of a project. The command will create a Tests sub-folder, a Pester script outline and set the project up in Git. The command will also create a Docs folder and a culture-specific folder for localized help. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Find-GitRepository { | |
<# | |
.SYNOPSIS | |
Find Git repositories | |
.DESCRIPTION | |
Use this command to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed. | |
.PARAMETER Path | |
The top level path to search. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 4.0 | |
#requires -module Microsoft.WSMan.Management | |
<# | |
This is a copy of: | |
CommandType Name Version Source | |
----------- ---- ------- ------ | |
Cmdlet Test-WSMan 3.0.0.0 Microsoft.WSMan.Management |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-VMScreenBMP { | |
[cmdletbinding()] | |
Param( | |
[string]$VMName, | |
[string]$Computername = $env:computername, | |
[string]$Path, | |
[switch]$Passthru | |
) | |
$VMMS = Get-WmiObject -Namespace root\virtualization\v2 -Class Msvm_VirtualSystemManagementService -ComputerName $Computername |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 4.0 | |
#requires -module ISE | |
<# | |
use this function in the PowerShell ISE to change location | |
to the directory of the currently selected file. | |
Learn more about PowerShell: | |
http://jdhitsolutions.com/blog/essential-powershell-resources/ | |
#> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 3.0 | |
Function Get-EventLogFile { | |
<# | |
.SYNOPSIS | |
Get information about classic event logs | |
.DESCRIPTION | |
This command will use the CIM cmdlets to gather information about event log files. The default is to display all classic style event logs or you can select a specific one by name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 4.0 | |
Function Find-GitTip { | |
<# | |
.Synopsis | |
Search Git tips | |
.Description | |
This function will search the Tips.json file from the Git-Tips project on GitHub. You will need to clone or download the git-tips project locally from https://github.com/git-tips/tips. | |
.Parameter Text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 4.0 | |
<# | |
Display a random Git tip of the day to the console. | |
This script does not write anything to the pipeline. | |
You will need to clone or download the git-tips project locally | |
from https://github.com/git-tips | |
This script is described at http://bit.ly/1OgpK7O |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 4.0 | |
Function Get-GitTip { | |
<# | |
.Synopsis | |
Get Git Tips | |
.Description | |
Use this command to search the tips file that is part of the Git-Tips project on GitHub. The default behavior is to get all tips but you can search for text in a tip title or select a random tip. | |
.Parameter Random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#requires -version 5.0 | |
# https://gist.github.com/jdhitsolutions/7217ed9293f18e8d454e3f88ecb38b67 | |
Function Compare-Module { | |
<# | |
.Synopsis | |
Compare module versions. | |
.Description | |
Use this command to compare module versions between what is installed against an online repository like the PSGallery. Results will be automatically sorted by module name. |