PowerShellTypeProvider

FSharp.Management

Stars
8
Committers
2

F# Type Provider for PowerShell

** This project is depreciated. Source code were merged into Fsharp.Management **

Related posts:

"SharePoint 2013 Management" Sample

Install using the NuGet package.

#r @"C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\System.Management.Automation.dll"
#r "Microsoft.SharePoint.PowerShell.dll"
#r "System.ServiceModel.dll"
#r "Microsoft.Sharepoint.dll"
#r @"..\packages\PowerShellTypeProvider.0.3.0\lib\net45\PowerShellTypeProvider.dll"

type PS = FSharp.PowerShell.PowerShellTypeProvider<
					PSSnapIns="Microsoft.SharePoint.PowerShell", 
					Is64BitRequired=true >

let jobs      = PS.``Get-SPTimerJob``()
let databases = PS.``Get-SPDatabase``()