Thursday, 24 December 2020
by Rob C
Simple script that I created and pushed out to all computers.
IF EXIST "C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\CloudAPCache\MicrosoftAccount" GOTO CHKFILE
IF NOT EXIST "C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\CloudAPCache\MicrosoftAccount" GOTO FIXO365
:FIXO365
ECHO FIXO365
c:
cd\
cd\Windows\System32\config\systemprofile\AppData\Local\Microsoft
Ren "Internet Explorer" "Internet Explorerold"
Ren Vault Vaultold
Ren InstallService InstallServiceold
Ren Windows Windowsold
MD "Internet Explorer"
MD Vault
MD InstallService
MD Windows
MD PRICache
MD SchCache
cd Windows
MD CloudAPCache
cd CloudAPCache
MD MicrosoftAccount
MD AzureAccount
c:
cd\
cd\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\SystemCertificates\My
attrib CRLs -s -i
attrib CTLS -s -i
attrib AppContainerUserCertRead -i -s
Ren CRLs CRLsold
Ren CTLs CTLsOld
Ren AppContainerUserCertRead AppContainerUserCertReadOld
MD CRLs
MD CTLs
MD AppContainerUserCertRead
GOTO COPYFILE
:CHKFILE
IF EXIST C:\Dell\intune.txt GOTO END
IF NOT EXIST C:\Dell\intune.txt GOTO COPYFILE
:COPYFILE
md C:\Dell
copy intune.txt C:\Dell /y
GOTO END
:END
Monday, 15 June 2020
by Paul
Hi Chris, The issue we had was in the folder c:\windows\system32\config\systemprofile\AppData. Some of the folders had become files due to some filesystem corruption. We used group policy to remove those files and then another to create the folders. If you compare the folder structure for a machine that works with one that does not then you can see which files/folders are affected.
Monday, 15 June 2020
by Chris
Hi Paul,
what does this sentence mean explicitely?
"Created a group policy to remove the files and create the folders"
Does the GPO have to remove the files and create the folders oder are they created automatically?
Can you please specify the folders which need to be created?
Thanks
Chris