Skip to content

Instantly share code, notes, and snippets.

@ishajain
Created April 16, 2014 23:28
Show Gist options
  • Select an option

  • Save ishajain/10942147 to your computer and use it in GitHub Desktop.

Select an option

Save ishajain/10942147 to your computer and use it in GitHub Desktop.
clear-Host
$snapin = Get-PSSnapin | Where-Object { $_.Name -eq "Microsoft.SharePoint.Powershell" }
if ($snapin -eq $null) {
Write-Host "Loading SharePoint Powershell Snapin..."
Add-PSSnapin "Microsoft.SharePoint.Powershell"
}
Write-Host "First!!"
$name = $(Read-Host -Prompt "Enter your Name:")
$PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition
Invoke-Expression "$PSScriptRoot\Second.ps1 $name"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment