From dcc5ab11739c9d061f58e9d9ebbe8b624780fdff Mon Sep 17 00:00:00 2001 From: Gopi Kumar Date: Mon, 5 Jun 2017 15:59:13 -0700 Subject: [PATCH] Extension to downgrade Windows DSVM from R Server to Rclient --- Extensions/General/DowngradeMRS2Rclient.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Extensions/General/DowngradeMRS2Rclient.ps1 diff --git a/Extensions/General/DowngradeMRS2Rclient.ps1 b/Extensions/General/DowngradeMRS2Rclient.ps1 new file mode 100644 index 0000000..4a03356 --- /dev/null +++ b/Extensions/General/DowngradeMRS2Rclient.ps1 @@ -0,0 +1,15 @@ +# Uninstall Microsoft R Server first +(Get-WmiObject -Class win32_product -Filter "Name like 'Microsoft R Server%'").Uninstall() + +# Download R Client +cmd /c "curl -L http://aka.ms/rclient -o \tmp\RClientSetup.exe" + +# Install R Client +cmd /c "c:\tmp\RClientSetup.exe /quiet" + +# Disable SQL Launchpad +set-Service -name "MSSQLLaunchpad" -StartupType Disabled +Stop-Service -name "MSSQLLaunchpad" + +# Cleanup +del C:\tmp\RClientSetup.exe