Тёмный

Fix : Automatic Refresh Failed issue in Server Manager in Windows Server 2012 

Techno Math
Подписаться 69 тыс.
Просмотров 100 тыс.
50% 1

Hi Friends,
Its been a long time since I uploaded the last video. Thank you guys for your great responses.
Today we are going to see how to resolve the situation where server gives a red flag with error "Automatic Refresh Failed." and "Server manager is collecting Inventory Data. The wizard will be available after data collection finishes."
Generaly this error appears when you try to add/remove roles from server manager.
So on my Server 2k12 which is installed on virtual machine, when I tried to add roles on it, it gave me the following error : "Server manager is collecting Inventory Data. The wizard will be available after data collection finishes."
Further when I tried to refresh the server manager, it shows "Refresh Failed". No metter how many times you try to refresh it, the count of failure here increases with each click. And when you click on the Red Flag here, it shows the Automatic Refresh Failed. So this is a frustrating situation where you wont be able to add/remove roles or features or any other activity on server manager.
So in order to resolve this issue, open command prompt with Administrative Rights. You can do that by right clicking on CMD and then click on "Run as Administrator". Change the default directory to C:\Windows\System32
Once you do that, type the following command.
dir /a /S *.MOF
This command will search all the .mof files. It is the file format for Windows Management Object files. WMI data (such as definitions of namespaces, classes, instances, or providers) are sometimes represented in MOF files.
Now change the directory path to wbem by typing CD Wbem and then cd AutoRecover.
now type this simple command
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
and hit enter.
It will Recover all the .mof files that have been currupted and created an issue with Server Manager. It will take some time to recover all the files.
Once it gets completed, type Exit to close the Command Prompt.
Now go to the server manager and click on Refresh Icon and then click on Red Flag to check the status. You can see the server refresh is in progress instead of giving an error "refresh failed".
Now it will take some time to refresh the server and finally without giving us an error of Server Refresh failed, it successfully refresh the server, which in result allows you to install Roles and Features on server.
If you like the video, please share it, provide your valuable comments in the below comments box and do not forget to hit the subscribe button. Thanks.

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 117   
@jasimkp7763
@jasimkp7763 Год назад
Auto Recover command is executed successfully and restarted the server (server 2019 datacenter hosted in AWS) , but did not solve the issue.
@nikonhckr
@nikonhckr 14 дней назад
2019 standard in VM, not resolved either.
@enforcerridley158
@enforcerridley158 5 лет назад
Thank you! This fixed my refresh issue on Windows Server 2016!
@WyrmLimion
@WyrmLimion 5 лет назад
You sir are a legend! Worked for me, Windows Server 2012 R2
@ChadBIsRacing
@ChadBIsRacing 4 года назад
Thanks for taking the time to make this video. I've been working with windows for 20 years and have never used the for command. :-) This worked.. thanks.
@elbekman
@elbekman 7 лет назад
Sorry man, but it did not work for me :(
@tomnordlie1467
@tomnordlie1467 8 лет назад
Thanks. It worked for me Windows Server 2012 R2.
@TechnoMath
@TechnoMath 8 лет назад
Tom Nordlie Cool. Keep sharing the video and subscribe to the channel to get the future updates. Thanks :)
@MikeGrant50
@MikeGrant50 6 лет назад
Worked for me, Windows Server 2012 R2. Thanks!
@nagendramedapalli2264
@nagendramedapalli2264 Год назад
After executing the last command, getting - "was unexpected at this time" message.
@Cajunspirit
@Cajunspirit Год назад
Followed the commands, refresh still failed @susan hebel suggested restarting Windows Manager Instrumentation and it then refreshed Still can't add new roles and features though
@wingsss2055
@wingsss2055 Год назад
It worked for me on the 2016 server hosted on Azure. Thanks
@willywerewolf9223
@willywerewolf9223 5 лет назад
if don't work, try to replace < and > to ( and )
@elvisrockson1727
@elvisrockson1727 2 года назад
Thanks it worked this way ( and )
@colinmiere3089
@colinmiere3089 2 года назад
Thanks, for the video. Would this fix also work in Server 2016?
@olaitanomotaje56
@olaitanomotaje56 7 лет назад
@Techno Math, the command was not successful and i was getting this error message
@souvikroy5831
@souvikroy5831 3 года назад
It worked, genius solution it is 😊👌
@rickysandhu8335
@rickysandhu8335 5 лет назад
Thank you!! Save me hours of work.
@nazimshaikh6650
@nazimshaikh6650 4 года назад
I have same problem with windows 2016. I followed same process. previous Invalid class error has replaced with ''the system cannot find the file specified. You will find configuration refresh failed error under 'Roles and server groups task details and notifications' pane.
@minabolz
@minabolz 4 года назад
:( did not work for me.. I get this new error instead "Role and feature refresh failed with the following error: The request to list features available on the specified server failed. A DIS session could not be opened The request is not supported. Error: 0x800700005"
@kamalhaider2145
@kamalhaider2145 Год назад
I get error SYNTAX 0X8004401e: This is not a valid MOF file for all files.
@nithunjagiri6457
@nithunjagiri6457 4 года назад
Error: 'Mofcomp' is not recognized as an internal or external command, operable program or batch file.
@jenoyestewart1516
@jenoyestewart1516 7 лет назад
it didn't work for me. My local server is IIS 7 and i had trouble adding it to the server manager via the regular route and so i had to do it via workgroup. That was when that error showed up and it didn't removed although i followed all the step you just outlined. if you can help, please do.
@elvisrockson1727
@elvisrockson1727 2 года назад
Hello Sir please after issuing the last command it says “I < was unexpected at this time.” Please does that says. Help...
@Villain101101
@Villain101101 8 лет назад
Will this work for 2008 R2?
@chrisbryan2607
@chrisbryan2607 4 года назад
bloody fantastic, thank for this
@ericparradiaz8904
@ericparradiaz8904 4 года назад
it´s recommendable to apply this fix in a Domain Controller?
@djillboy
@djillboy 2 года назад
I just encountered the same problem on a Hyper V Server running on Server 2012 R2. I solved by Rebooting the Server.
@BrilliantMbumwae
@BrilliantMbumwae 2 года назад
Didn't work for me, I still get the same error
@vishwaratna4195
@vishwaratna4195 Год назад
Very important video tutorial.!
@mtsimao
@mtsimao 7 лет назад
Worked withou any problems. Thanks a lot
@TechnoMath
@TechnoMath 7 лет назад
Matheus Simão Sure welcome. Glad it helped you. Please share the video and subscribe to the channel to get the future updates. Thanks :)
@nitishpomendkar7
@nitishpomendkar7 3 года назад
After run this command for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s getting this error ( 'dir was unexpexted at this time. please reply
@nagendramedapalli2264
@nagendramedapalli2264 Год назад
Found any solution?
@jyosthnakamala1193
@jyosthnakamala1193 7 месяцев назад
Thanks a lot you saved my day
@RockAlexWoW
@RockAlexWoW 8 лет назад
i have massege when i start command for /f .... %s File Not Found what i'm do wrong or what else?
@TechnoMath
@TechnoMath 8 лет назад
Александр Одушев Can you go to the C:\ Drive and then to that particular location to find out if any files are present in it?
@RockAlexWoW
@RockAlexWoW 8 лет назад
Hi, i have already understand what was wrong there. It was another file extension in target folder - *.MOB and i have used command with this extension for /f %s in ('dir /b *.mof *.mfl *.mob') do mofcomp %s and then all was done good :)
@susanhebel3702
@susanhebel3702 3 года назад
make sure that you have the service Windows Management Instrumation service running or this will not work
@D-Crypt69420
@D-Crypt69420 3 года назад
doesb't work on my 2019 nversion of server
@krishnaprakashjeyaram403
@krishnaprakashjeyaram403 5 лет назад
Why is this happening for every restart the server is there any root for this issue that helpful for us It is worked 🙂 Thanks
@lordryuma
@lordryuma 3 года назад
Thanks! You are great.
@joelaffian8129
@joelaffian8129 2 года назад
Bonjour @Tehno Math I have the same problem on my server 2016, Is this the same command to solve the problem. Thank you
@joelaffian8129
@joelaffian8129 2 года назад
WINDOWS SERVEUR SYSTEME 64 BITS
@quater03
@quater03 5 лет назад
its worked, thanks dude
@gohan_ram
@gohan_ram 8 месяцев назад
Tried it didnt work
@yeetsuck2289
@yeetsuck2289 8 лет назад
wtf ur not in optic
@MakPortnoy
@MakPortnoy 6 лет назад
Didn't work for me either, refresh still failed
@dlincons
@dlincons 8 лет назад
Muito Obrigado pela dica, me ajudou bastante!!!
@girishdixit2603
@girishdixit2603 2 года назад
Cool you are simply great
@shaikhabibullashareef7378
@shaikhabibullashareef7378 5 лет назад
Didn't Work plz help me same problem repeat plz help me
@stolmich
@stolmich 5 лет назад
Didn't work for me.
@shubhamkumar-zx6ff
@shubhamkumar-zx6ff 7 лет назад
Didn't work for me . Getting Error as : < was unexpected at this time. any solution??
@terrencegivens8519
@terrencegivens8519 6 лет назад
I got the exact same error. What could that mean?
@rafaelsheinkman4676
@rafaelsheinkman4676 6 лет назад
need to use the shift+9 and 0
@mohammedasifkhanp5032
@mohammedasifkhanp5032 5 лет назад
you have to use small bracket. for example:- (...)
@rajendrashimpi2339
@rajendrashimpi2339 6 лет назад
This is excellent
@srinivasrao6574
@srinivasrao6574 4 года назад
Error : "< was unexpected at this time " Can you please any one help me on this issue
@Jimmyconnect
@Jimmyconnect 4 года назад
Replace square brackets < > with brackets ( ).
@SynergyITPro
@SynergyITPro 5 лет назад
sorry it didnt work for me....
@nnnyk
@nnnyk 3 года назад
didnt work
@pije2007
@pije2007 4 года назад
thnaks a lot
@timothyjaberg2474
@timothyjaberg2474 7 лет назад
Just did this. No luck with it. Refresh still fails and unable to add roles. Using 2012 R2
@berseck4355
@berseck4355 Год назад
gracias
@n3gve
@n3gve 6 лет назад
Didn't help(((
@anirajstha
@anirajstha 7 лет назад
C:\Windows\System32\wbem\AutoRecover>for /f %s in ('dir /b *.mof *.mfl') do mofc omp %s 'dir /b *.mof *.mfl' is not recognized as an internal or external command, operable program or batch file. C:\Windows\System32\wbem\AutoRecover> Anyone else facing this issue?
@pv2durham
@pv2durham 6 лет назад
I had the same problem, make sure you are using the bracket ( and not the greater than
@shivantha17
@shivantha17 6 лет назад
Actually Autorecover folder is empty. whatever the command it says file not found
@ramakrishna5143
@ramakrishna5143 3 года назад
Am facing same issue
@buttface20x6
@buttface20x6 6 лет назад
This worked great! Thanks so much!
@afsaneherfanzadeh4507
@afsaneherfanzadeh4507 4 месяца назад
i'm facing this \Windows\System32\wbem\AutoRecover>for /f %s in do mofcomp %s < was unexpected at this time. anybody has any idea?
@alexandergotfrid1549
@alexandergotfrid1549 4 года назад
Did not work for me, but I did try it for Server 2016.
@harmanparmar2721
@harmanparmar2721 6 лет назад
it didn't work for me
@FrankStarkiller1911
@FrankStarkiller1911 4 года назад
Its July 2020 and this worked like a charm, thanks working with win ser 2012r2
@litbeavis
@litbeavis 7 лет назад
No dice, I followed everything and when I refresh after it's completed it still failed
@huyhuynh5575
@huyhuynh5575 Год назад
It still works with Windows Server 2022. Step 1: Open "Services" -> Start "Windows Management Instrumation" service Step 2: Open CMD (with Administrator Privilege) -> cd C:\Windows\System32\wbem\Autorecovery -> Execute: for /f %s in ('dir /b *.mof *.mfl *.mob') do mofcomp %s.
@renan.rodrigues27
@renan.rodrigues27 25 дней назад
it didn't work here =/
@jesseedwards8449
@jesseedwards8449 4 месяца назад
Good game mate, thanks for the assist.
@OlexiiKyva
@OlexiiKyva 10 месяцев назад
Дякую!
@dancinboy4eva
@dancinboy4eva 5 лет назад
This didn't work for me either says access denied when recovering each file :(
@LuisTechBoom
@LuisTechBoom 4 года назад
you need to start CMD.exe as administrator
@tonyd5707
@tonyd5707 6 лет назад
Thank you so much. I've been digging for a few hours trying to figure out how to fix t his error and it worked. You're awesome!
@FelixSamora
@FelixSamora 5 лет назад
somebody can help with this error "Data retrieval failures occurred" i didn't find issue about it !
@srinivasrao6574
@srinivasrao6574 4 года назад
an errored occurred while opening the name space for obj12: 0X80041002 class, instance, or property '' was not found compiler returned error 0X80041002
@HamdiMoZa
@HamdiMoZa 4 года назад
this didn't work on windows server 2016
@rajharkare1114
@rajharkare1114 8 месяцев назад
Thank you so much for sharing the steps! This has fixed my refresh issue on Windows Server 2016 Datacenter edition..
@deshanonline
@deshanonline 6 лет назад
now type this simple command for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s file not found please help me
@HevinMontoya
@HevinMontoya Год назад
Have you tried restarting the server? That was all it took in my case.
@jignesh335
@jignesh335 Год назад
Does this command cause any problems in the domain directory?
@usmpiano
@usmpiano 5 лет назад
FYI at 3:03 and previous "(" and ")" are parentheses, not brakcets. "[" and "]" are brackets.
@RS4KING
@RS4KING 4 года назад
Command was successful, but I'm still receiving the refresh failed. Thanks though!
@thewebsmith
@thewebsmith 2 года назад
2022. Will this work with Windows Server 2019?
@scottkeith7005
@scottkeith7005 5 лет назад
This did not work for me. I received errors on some of the .mofs in autorecover, although now all of them.
@codinggyanofficial2998
@codinggyanofficial2998 2 года назад
Bro this not working on my pc.
@ajeet3806
@ajeet3806 5 лет назад
Sir its not working in server 2012 r2 . please suggest me ASAP .
@ChrisQJones
@ChrisQJones 2 года назад
Thanks
@raghavsood6156
@raghavsood6156 5 лет назад
< was unexpected at this time error comes. what do i do?
@surajsengar7207
@surajsengar7207 4 года назад
hiii, my command has stuck on ......starting data in the repository..... kindly help any one
@surajsengar7207
@surajsengar7207 4 года назад
any one help please
@TheDevilnotinhell
@TheDevilnotinhell 6 лет назад
not worked for me. followed the same procedure.
@sohaibraana
@sohaibraana 5 лет назад
not work for me
@mchavez46
@mchavez46 6 лет назад
Dude! thank you so much. This had me stumped for so long.
@mnagendrasharma
@mnagendrasharma 7 лет назад
Didn't work for me
@yvantheimpactreviewer3158
@yvantheimpactreviewer3158 5 лет назад
Whenever i do the last line it tells me: is unexpected at this time? why do i get that?
@yvantheimpactreviewer3158
@yvantheimpactreviewer3158 5 лет назад
Oh nevermind, i was using the wrong bracket lol. i was using instead of ( )
@yvantheimpactreviewer3158
@yvantheimpactreviewer3158 5 лет назад
ok so it did the whole process, but when i go to refresh, it still didn`t fixed it? what could be the issue then?
@vishnu9728
@vishnu9728 5 лет назад
Thanks!
@jeanrobenstescar2203
@jeanrobenstescar2203 7 лет назад
super mon ami
@TechnoMath
@TechnoMath 7 лет назад
Jean Robens Tescar Great! Glad to know it worked. Thanks for your comment. Please share the video and subscribe to the channel to get the future updates. Thanks :)
@dixonkiline8441
@dixonkiline8441 3 года назад
thank you sir
@TechnoMath
@TechnoMath 3 года назад
Most welcome. Kindly subscribe to the channel to get the future updates.
@henriquehomrich1286
@henriquehomrich1286 3 года назад
Thx so much!!!
@TechnoMath
@TechnoMath 3 года назад
Any time. Kindly subscribe to the channel to get the future updates. :
@PSShaik
@PSShaik 3 года назад
Thank you for the help.
@TechnoMath
@TechnoMath 3 года назад
Happy to help. Kindly Subscribe to the channel to get the future updates. :)
@rajab1271
@rajab1271 2 года назад
@@TechnoMath could you please share the commands
Далее
Introduction to Using DNS Server on Windows Server 2012
18:48
"Когти льва" Анатолий МАЛЕЦ
53:01
Windows Server 2012 In Place Upgrade
7:40
Просмотров 23 тыс.
Configuring DNS Forwarder in Windows Server 2019
6:06
Windows 11 Home Server Setup
15:05
Просмотров 21 тыс.