parameter “outputfile” = “{pathname of parent folder of regapp “besclient.exe”}\netuse.txt”
waithidden {pathname of system folder}\cmd.exe /C net use >"{parameter “outputfile”}"
///This probally does not work, but something like this?
appendfile {concatenation “%0a%0d” of lines whose (it contains “:”) of it of parameter “output”}
delete “{parameter “outputfile”}”
move __appendfile “{parameter “outputfile”}”
New connections will not be remembered.
Status Local Remote Network
J: \XXXXX\XXXXXX
Microsoft Windows Network
The command completed successfully.
the goal is to create the action to drop a txt file in the Bes client folder that is later read by an analysis. Can Big Fix parse out all lines other then lines with a drive letter? I’d like the new netuse.txt file to contain only
Did you ever get this working? We need to return a list of all users mapped drives and have hit the roadblock of the TEM agent running as system and not having access to the current users environment.
appendfile {following texts of firsts " " of preceding texts of firsts “Microsoft” of ((lines of file “c:\temp\netuse.txt”) whose (it contains “\” AND it contains “:”))}
Excellent, thanks for that. Can you tell me how you pull that data back? Do you have an analysis that parses the txt file or are you uploading it the the BES server?