Scripts and tools for managing BranchCache
2pintsoftware / branchcache Goto Github PK
View Code? Open in Web Editor NEWScripts and tools for managing BranchCache
License: MIT License
Scripts and tools for managing BranchCache
License: MIT License
A TS client fails to initialize the TSProgressUI:
<![LOG[Unable to create an instance of the Progress UI COM Object. 0x8000401a.]LOG]!><time="10:35:15.771-120" date="08-19-2020" component="OSDDownloadContent" context="" type="2" thread="46516" file="clientui.cpp:165">
We then fail in the script with;
<![LOG[Unable to connect to the Task Sequence Progress UI! Please verify you are in a running Task Sequence Environment. ]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[Please note: TSProgressUI cannot be loaded during a prestart command.]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ErrorDetails:]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[Retrieving the COM class factory for component with CLSID {F79474A1-7B80-4A18-BC7B-D3938BD93808} failed due to the ]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[following error: 8000401a The server process could not be started because the configured identity is incorrect. Check ]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[the username and password. (Exception from HRESULT: 0x8000401A).]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[At F:_SMSTaskSequence\Packages\AP100014\InjectBCData.ps1:815 char:9]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[+ throw "Unable to connect to the Task Sequence Progress UI! Pl ...]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ + CategoryInfo : OperationStopped: (Unable to conne...T: 0x8000401A).:String) [], RuntimeException]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ + FullyQualifiedErrorId : Unable to connect to the Task Sequence Progress UI! Please verify you are in a running T ]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ ask Sequence Environment. Please note: TSProgressUI cannot be loaded during a prestart command.]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ErrorDetails:]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ Retrieving the COM class factory for component with CLSID {F79474A1-7B80-4A18-BC7B-D3938BD93808} failed due to the ]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ following error: 8000401a The server process could not be started because the configured identity is incorrect. C ]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ heck the username and password. (Exception from HRESULT: 0x8000401A).]LOG]!><time="10:35:32.625-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[ ]LOG]!><time="10:35:32.705-120" date="08-19-2020" component="RunPowerShellScript" context="" type="3" thread="38596" file="main.cpp:76">
<![LOG[Process completed with exit code 1]LOG]!><time="10:35:32.705-120" date="08-19-2020" component="RunPowerShellScript" context="" type="0" thread="38596" file="CommandLine.cpp:1136">
<![LOG[PowerShell command line returned code 1]LOG]!><time="10:35:32.705-120" date="08-19-2020" component="RunPowerShellScript" context="" type="1" thread="38596" file="main.cpp:487">
Hello.
The remediation script specifies the lifetime of the content in the cache.
..
#-----------------------<<<<<
$TTL = 180
..
Is this the time after which all content in the cache will be invalid?
The question came up because branchcache was working for a long time and then stopped working. There is almost nothing from the neighbors.
Will there be a problem when setting a lifetime of 3000 days?
Thank you.
The if($OldKey -eq 0)
check on line 360 should probably be checking for an array status such as if($OldKey -isnot [array])
so that the actual status of the value set is made. I have been getting "Could not parse current secret key from registry" when it was actually parsed just fine. When I change the line as indicated, the check works as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.