MSEndpointMgr / ConfigMgr

Microsoft Endpoint Configuration Manager scripts and tools
633 stars 282 forks source link

Log file Invoke-CMDownloadBIOSPackage #183

Open PsychXko opened 4 years ago

PsychXko commented 4 years ago

Hi, im new user with using Invoke script. But I cannot identify where is stored log file because I have problem identify why dont working this script. I use Invoke-CMApplyDriverPackage, and this work perfect.

If i use parameter -debug and -verbose I found log in profile/appdata/temp and in log is info about found new version of bios. But if i use in SC like TS then doing nothing.

resault which i found was: " ... will be persisted DownloadOnDemand flag is true. Attempting to download content locally for Package CCS001A8. Locations: Multicast = 0, HTTP = 0, SMB = 0. Package Flags: 0x00000000 Multicast is not enabled for the package. DownloadContentAndVerifyHash() failed. 80070002. DownloadContentAndVerifyHash ( pszPackageID, L"SMSPackage", saHttpContentSources, saSMBContentSources, saMulticastContentSources, sDestination, dwFlags, L"", 0, dwPackageFlags, mapNetworkAccess ), HRESULT=80070002 (..\resolvesource.cpp,3895) DownloadContentLocally (pszSource, sSourceDirectory, dwFlags, hUserToken, mapNetworkAccess), HRESULT=80070002 (..\resolvesource.cpp,4122) TS::Utility::ResolveSource(sPkgID.c_str(), sPath), HRESULT=80070002 (main.cpp,352) ExecutePowerShellScript(sScriptName, sParameters, sPackageID, sExecutionPolicy, sOutputVariableName, dwPSRunExitCode), HRESULT=80070002 (main.cpp,892) Failed to resolve the source for SMS PKGID=CCS001A8, hr=0x80070002 Run PowerShell script failed to run, hr=0x80070002 " Thanks