My problem is that i have a mixed environment.I cannot work with Powershell on windows 2008r2 because the module is not supported. I had to use the deprecated “filescrn.exe”. The biggest Problem of this tool is that you cannot import a massive file extension list in order to create a filegroup. With powershell it is easily done. Since recently i was working with the .xml file that CAN be imported through filescrn.exe . But i ended up very often with a corrupted file that couldn’t be imported.Then i thought to try and use the files from a windows 2012 Server. It seems that the files are working on 2008 , too !
So in a nutshell: i am working with Powershell on 2012+ Servers, I then export all and use the file on 2008 Servers. This makes automation much easier.
$savepath = “c:\DFSreporting”
Remove-Item $savepath -recurse
DfsrAdmin Health New /RgName:'<replication group name>’ /MemName:<member name> /RefMemName:<where it replicates> /RepName:$savepath\<filename to save the report> /FsCount:true
“The remote session was disconnected because there are no Remote Desktop Licence Servers available to provide a licence.
Please contact the server admnistrator.”
There is also the need to take ownership of the registry key before changing it.Instructions can be found here:https://www.howtogeek.com/262464/how-to-gain-full-permissions-to-edit-protected-registry-keys/