I have a PDQ installer which registers 2 DLL files and logs the results to a network share. If I run the PDQ on 1 machine it echo's the computer name fine, however if i run the installer on multiple machines, it only echo's the first name and not the rest.
The batch file is as follows;
echo %computername% >> "\\\servershare\software\Admin\IT_Support_Utilities\PDQ Deployment\Logs\agent_logs.log" C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe /codebase /tlb "Agent.dll" >> "\\\servershare\software\Admin\IT_Support_Utilities\PDQ Deployment\Logs\agent_logs.log" C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe /codebase /tlb "MySql.Data.dll" >> "\\\servershare\software\Admin\IT_Support_Utilities\PDQ Deployment\Logs\agent_logs.log"
The output is below for a run on 2 machines; WRCREC274
is the name of the first machine. The horizontal line separates where the next batch file begins
WRCREC274 Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1 Copyright (C) Microsoft Corporation 1998-2004. All rights reserved. Types registered successfully Assembly exported to 'C:\WINDOWS\system32\Agent.tlb', and the type library was registered successfully Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1 Copyright (C) Microsoft Corporation 1998-2004. All rights reserved. Assembly exported to 'C:\WINDOWS\system32\MySql.Data.tlb', and the type library was registered successfully ----------
Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1 Copyright (C) Microsoft Corporation 1998-2004. All rights reserved. Types registered successfully Assembly exported to 'C:\WINDOWS\system32\Agent.tlb', and the type library was registered successfully Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1 Copyright (C) Microsoft Corporation 1998-2004. All rights reserved. Assembly exported to 'C:\WINDOWS\system32\MySql.Data.tlb', and the type library was registered successfully ----------
Can anyone advise on why the %computername%
only appears on the first computer it is run on and not the rest?