Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Need to configure Filestream on a SQL running on server Core. PowerShell / FilestreamSettings Class is not available

$
0
0

Hello,

I have a Windows 2012 Core with SQL 2012 installed on it and I need to enable Filestream using Powershell. Server name is SERVER1 I found this simple script to enable it

$strComputer ="SERVER1"
$strInstanceName = "MSSQLSERVER"
$wmi=Get-WmiObject -computerName $strComputer -namespace root\Microsoft\SQLServer\ComputerManagement11 -class FILESTREAMSettings -filter "InstanceName='$strInstanceName'"
Write-Host "FS Access"
$wmi.AccessLevel
$wmi.EnableFILESTREAM(3, 'MSSQLSERVER') 

When I run it I get "Invalid class" error message so I query all the clasees from "root\Microsoft\SQLServer\ComputerManagement11" and found that FILESTREAMSettings is missing.

get-wmiobject -computername SERVER1-list -namespace "root\Microsoft\SqlServer\ComputerManagement11"

The funny thing is that I can see the class from another server SERVER2 (Also Win 2012 Core w/ SQL 2012)

Any idea how to make this class visible on my server? I also noticed that there are other missing classes like all the ones related to AlwaysOn

Hope someone can help

Thanks

--Javier


Javier Villegas | @javier_villhttp://sql-javier-villegas.blogspot.com/

Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>