Skip to content

Instantly share code, notes, and snippets.

View victorvogelpoel's full-sized avatar
💭
NL

Victor Vogelpoel victorvogelpoel

💭
NL
View GitHub Profile
# Compare-Directory.ps1
# Compare files in one or more directories and return file difference results
# Victor Vogelpoel <victor@victorvogelpoel.nl>
# Sept 2013
#
# Disclaimer
# This script is provided AS IS without warranty of any kind. I disclaim all implied warranties including, without limitation,
# any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or
# performance of the sample scripts and documentation remains with you. In no event shall I be liable for any damages whatsoever
# (including, without limitation, damages for loss of business profits, business interruption, loss of business information,
# Victor Vogelpoel
#
# Disclaimer
# This script is provided AS IS without warranty of any kind. I disclaim all implied warranties including, without limitation,
# any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or
# performance of the sample scripts and documentation remains with you. In no event shall I be liable for any damages whatsoever
# (including, without limitation, damages for loss of business profits, business interruption, loss of business information,
# or other pecuniary loss) arising out of the use of or inability to use the script or documentation.
function Get-MD5
@victorvogelpoel
victorvogelpoel / Test-PortalDeployment.ps1
Last active December 23, 2015 19:29
Source code belonging with blogpost at http://blog.victorvogelpoel.nl about testing a SharePoint 2007 deployment with PowerShell tests.Source code contains following PowerShell (v2) functions for SharePoint 2007: Get-SPFeature, Get-SPSolution, Add-SPSolution, Wait-SPSolutionJob, Install-SPSolution, Remove-SPSolution, Uninstall-SPSolution + Get-S…
# Test-PortalDeployment.ps1
# Written for SharePoint 2007, but with a few adaptations it'll work for later versions as well...
# This is a example of testing SharePoint portal artefact deployment and configuration using PSaint testing framework
# Victor Vogelpoel <victor@victorvogelpoel.nl>
# September 2013
# See blogpost at http://blog.victorvogelpoel.nl
#
# Note: SharePoint 2007 requires PowerShell v2 (not v3),
# so start PowerShell session with "PowerShell -version 2"
#
@victorvogelpoel
victorvogelpoel / Measure-ScriptCodePS2.ps1
Last active January 3, 2016 01:18
Measure-ScriptCode calculates some metrics about the PowerShell script files and modules it is fed, like number of comments and lines-of-code.
# Measure-ScriptCode.ps1
# Return metrics about the script and module files
# This is the PowerShell 2 version; AST is NOT used (PowerShell 3 is required for AST)
# Jan 2014
# If this works, Victor Vogelpoel <victor@victorvogelpoel.nl> wrote this.
# If it doesn't, I don't know who wrote this.
#
# Disclaimer
# This script is provided AS IS without warranty of any kind. I disclaim all implied warranties including, without limitation,
# any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or
@victorvogelpoel
victorvogelpoel / Write-HelloWorld.ps1
Last active January 3, 2016 01:19
Write-HelloWorld.ps1 is a sample file for Measure-ScriptCode to work on.
# Write-HelloWorld.ps1
# Sample file for calculating PowerShell script code metrics
# Jan 2014
# If this works, Victor Vogelpoel <victor@victorvogelpoel.nll> wrote this.
# If it doesn't, I don't know who wrote this.
Set-PSDebug -Strict
Set-StrictMode -Version Latest
@victorvogelpoel
victorvogelpoel / Measure-ScriptCode.ps1
Last active January 3, 2016 01:19
Measure-ScriptCode (PowerShell 3+ version) calculates some metrics about the script- and module files it is fed, like number of comments, lines-of-code, number of functions, workflows and filters.
# Measure-ScriptCode.ps1
# Return metrics about the script and module files
# PowerShell 3 is required as Abstract Syntax Trees are used.
# Jan 2014
# If this works, Victor Vogelpoel <victor@victorvogelpoel.nl> wrote this.
# If it doesn't, I don't know who wrote this.
#
# Disclaimer
# This script is provided AS IS without warranty of any kind. I disclaim all implied warranties including, without limitation,
# any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or
@victorvogelpoel
victorvogelpoel / Get-WSManCredSSPConfiguration.ps1
Last active August 19, 2019 10:33
Get-WSManCredSSPConfiguration is a function to retrieve CredSSP configuration for local or remote computers. The CmdLet returns a custom PowerShell object for you to manipulate.
# Get-WSManCredSSPConfiguration.ps1
# Compile a WSManCredSSP configuration object for the local or remote computer
# Inspired by http://www.ravichaganti.com/blog/?p=1902
# http://blog.victorvogelpoel.nl/2014/03/03/powershell-get-wsmancredsspconfiguration-getting-credssp-configuration-for-local-or-remote-computers/
#
# Disclaimer
# This script is provided AS IS without warranty of any kind. I disclaim all implied
# warranties including, without limitation, any implied warranties of merchantability
# or of fitness for a particular purpose. The entire risk arising out of the use or
# performance of the sample scripts and documentation remains with you. In no event
$slideshareUser = 'nccomms'
$slidedeckTitleFilter = 'SPCA2014*'
# Folder to download the slides to
$downloadfolder = 'C:\TEMP\SharePointConnect2014'
# Personal SlideShare API keys;
# apply for a key here: http://www.slideshare.net/developers/applyforapi
$slideShareAPIKey = 'YOUR_API_KEY' #PRIVATE
$slideShareSharedSecret = 'YOUR_SHARED_SECRET'
@victorvogelpoel
victorvogelpoel / keybase.md
Created April 15, 2015 07:43
Keybase proof

Keybase proof

I hereby claim:

  • I am victorvogelpoel on github.
  • I am victorvogelpoel (https://keybase.io/victorvogelpoel) on keybase.
  • I have a public key whose fingerprint is AEEF C55C C1AC FF92 3A47 8E29 94A8 92E2 1576 9E13

To claim this, I am signing this object: