0
Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.
Comments
Hi Dan,
Not at this time. However, this is a good idea.
-Brandon
@ECHO OFF
REM Variable Names
SET /p pcname=Enter PC Name you want Information from:
REM Create a directory of the computer your are getting information from.
MD \\server\share\%pcname%\
Echo Copying Drive Mapping Information
>> \\server\share\%pcname%\DriveMappings-%pcname%.txt ECHO.
>> \\server\share\%pcname%\DriveMappings-%pcname%.txt ECHO *******************Local Drive Mapping Info*******************
psexec.exe -i \\%pcname% -u domain\account -p password -e cmd "/c net use >>\\server\share\%computername%\DriveMappings-%computername%.txt"
Echo Done
Pause
EXIT
this actually works....but I do not have time to tweak this for pdq inventory using psexec
cheers
its a batch file that is ran....psexec has to be next to it...make remote folder...test and tweak..