Windows error 0x8004103A, -2147217350

Detailed Error Information

HRESULT analysis[1]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[1][2]
DescriptionThe source of the error code is COM/OLE Interface management.[1][2]
Error Code4154 (0x103a)

Questions

2votes
1answer

Unable to Delete Printer w/ Apostrophe (') Using PRNMNGR

I have a printer named "Teacher's Lounge Printer" (note the apostrophe). When executing the following command at a standard Windows 7 Command Prompt, "Error 0x8004103A Invalid object path" occurs. cscript "%WINDIR%\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs" -d -p "Teacher's Lounge Printer" If I rename the printer to "Teachers Lounge Printer" (without the apostrophe), the command [...] read more
batch-file
command-line
vbscript
special-characters
apostrophe
0votes
2answers

Getting user name failed from the SID in c++?

When I have tried to get the username using below code, I have successfully get the user name: hres = pSvc->GetObject(L"Win32_SID.SID='S-1-5-82-1036420768-1044797643-1061213386-2937092688-4282445334'", 0, NULL, &pclsObj, NULL); But when assign the SID into variable as follows std::string SID = "S-1-5-82-1036420768-1044797643-1061213386-2937092688-4282445334"; hres = pSvc->GetObject(L"Win32_SID.SID=SID", 0, NULL, &pclsObj, NULL); then I got the following [...] read more
c++
visual-c++
wmi
wmi-query
sid

Comments

Leave a comment

(plain text only)

Sources

  1. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  2. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0