Discovery throws errors: Cannot remove item \\\admin$\temp\file_name.txt: The process cannot access the file '\\\admin$\temp\file_name.txt' because it is being used by another process.Description<!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Symptoms During discovery of windows devices, some of the probes would need access to admin share on the device and throws errors if the credentials do not have enough permissions. Release All releases. Cause Some of the probes like Windows - Application Dependency Mapping would run Powershell scripts and stores the result in a txt file in admin drive. After reading the file it would try to remove the file. If the credentials used for discovery do not have enough permissions to access admin share we see an error similar to this: Discovery throws error: Cannot remove item \\<IP_address>\admin$\temp\file_name.txt: The process cannot access the file '\\<IP_Address>\admin$\temp\file_name.txt' because it is being used by another process. Resolution Ensure that the credential used for discover is able to write/read below path: \\<IP_address>\admin$\temp\ Refer to Discovery probe permissions as per docshttps://docs.servicenow.com/csh?topicname=r_AdditionalPermissions.html&version=latest