Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server 2019 #69

Open
nicecube opened this issue Nov 28, 2018 · 5 comments
Open

Server 2019 #69

nicecube opened this issue Nov 28, 2018 · 5 comments

Comments

@nicecube
Copy link

Hi, i was using this script on all my Files Server and its working great, i run into an issue with server 2019, i got this message spamming the console:

`Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or
Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again.
At C:\HelpOX\FSRM\DeployCryptoBlocker.ps1:214 char:12

  • $jsonStr = Invoke-WebRequest -Uri https://fsrm.experiant.ca/api/v1/ge ...
  •        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException
    • FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestComman
      d

Checking File Server Resource Manager..

Processing ProtectList..

The following shares needing to be protected: C:\Windows,C:,C:\Data,C:\Windows\system32\spool\drivers,C:\Data\Sage_DB

Dowloading CryptoLocker file extensions list from fsrm.experiant.ca api..

Processing SkipList..

Processing IncludeList..

Adding/replacing File Groups..

File Group [CryptoBlockerGroup1] with monitored files from [] to []..

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The specified name is invalid.

Adding/replacing [Active] File Screen Template [CryptoBlockerTemplate] with eMail Notification [C:\Windows\TEMP\tmpEmail001.tmp] and Event Notification [C:\Windows\TEMP\tmpEvent001.tmp]..

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

Adding/replacing File Screens..
File Screen for [C:\Windows] with Source Template [CryptoBlockerTemplate]..

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.
File Screen for [C:] with Source Template [CryptoBlockerTemplate]..

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.
File Screen for [C:\Data] with Source Template [CryptoBlockerTemplate]..

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.
File Screen for [C:\Windows\system32\spool\drivers] with Source Template [CryptoBlockerTemplate]..

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.
File Screen for [C:\Data\Sage_DB] with Source Template [CryptoBlockerTemplate]..

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

This tool is deprecated and may be removed in future releases of Windows. Please use the Windows PowerShell cmdlets in the FileServerResourceManager module to administer File Server Resource Manager functionality.
The requested object was not found.

Processing ExcludeList..

Cleaning up temporary stuff..

Done.
####`

@davidande
Copy link

i confirm that i had the same issue also on 2016 server about IE first launch configuration.
And for the derprecated cmdlet , I switch to the new ones in my scripts.
New-FsrmFileScreenTemplate, New-FsrmFileScreen, New-FsrmFileGroup ......
this way i don't have problem.
By the way is there any way to check that the IE first launch configuration is done?

@nicecube
Copy link
Author

nicecube commented Nov 28, 2018

It is sure because the Invoke-WebRequest command has a dependency on the Internet Explorer assemblies and are invoking it to parse the result as per default behaviour.

But this is only possible if you run your powershell scripts as the same windows user as whom you launched the IE with. The IE settings are stored under your current windows profile. So if you, like me run your task in a scheduler on a server as the SYSTEM user, this will not work.

So here you will have to change your scripts and add the -UseBasicParsing argument, $WebResponse = Invoke-WebRequest -Uri $url -TimeoutSec 1800 -ErrorAction:Stop -Method:Post -Headers $headers -UseBasicParsing

@KarlBystrak
Copy link

KarlBystrak commented Jul 3, 2019

David, You mentioned here that you have updated the script to use the new poweshell commands:

And for the derprecated cmdlet , I switch to the new ones in my scripts.
New-FsrmFileScreenTemplate, New-FsrmFileScreen, New-FsrmFileGroup ......
this way i don't have problem.

Would you mind sharing that with us? I would also like to test it with the new commands. I am also running server 2019.

Thanks.

@davidande
Copy link

@SparkyzCodez
Copy link

You may want to look at my scripts as well. It is warning free on W2019 but it won't work on W2008. (OK, you shouldn't still be using W2008 anyway. EOL is in a few months.)
https://github.com/SparkyzCodez/FSRM-Anti-ransomware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants