Search found 11 matches
- 04 Jul 2016 13:12
- Forum: DOS Batch Forum
- Topic: stop DOS truncating column output
- Replies: 9
- Views: 8259
Re: stop DOS truncating column output
Yep Compo that powershell line works beautifully. @Powershell -ExecutionPolicy Bypass -C "DriverQuery.exe /FO CSV | ConvertFrom-CSV | Select-Object 'Module Name', 'Display Name', 'Driver Type', 'Link Date' | ft -Auto | Out-String -Width 4096 | Out-File output.log" Didnt know that trick, wi...
- 03 Jul 2016 15:10
- Forum: DOS Batch Forum
- Topic: stop DOS truncating column output
- Replies: 9
- Views: 8259
Re: stop DOS truncating column output
I have tweaked the cmd.exe window size & buffer to comfortably fit the text into I have tried every combination from the driverquery /? command I see that the csv export does have the column headers with full info displayed however I require this in a text file The export to text file has the co...
- 03 Jul 2016 07:18
- Forum: DOS Batch Forum
- Topic: stop DOS truncating column output
- Replies: 9
- Views: 8259
stop DOS truncating column output
Hi I want to stop DOS truncating output. In this case I am using the "driverquery" command to list all the drivers The column "Display name" has been shortened in the output to about 22 characters id like to run the driverquery comand but show the full output for all its columns ...
- 22 Feb 2014 13:00
- Forum: DOS Batch Forum
- Topic: query Active directory display name
- Replies: 15
- Views: 13908
Re: query Active directory display name
Below command worked, that stops me frothing at the mouth hurrah. One thing I noted is that it didnt work running from the Bat file, then i remembered that when using variables in that context we use a double %% e.g. %%G also to output the result to a file I appended >> full name.txt Thanks very muc...
- 19 Feb 2014 18:30
- Forum: DOS Batch Forum
- Topic: query Active directory display name
- Replies: 15
- Views: 13908
Re: query Active directory display name
Ah I see the net user is enclosed. Doh I have tried all suggestions I'm get "%%G was unexpected at this time." Im trying to interpret the command in english Im seeing for the variable %%G perfrom the operation in brackets and then have %%G contain the answer/output of that operation. I don...
- 18 Feb 2014 16:40
- Forum: DOS Batch Forum
- Topic: query Active directory display name
- Replies: 15
- Views: 13908
Re: query Active directory display name
So far I have net user /domain | find "display name"
this runs but gives no output
Running on its own it gives useful but to much output.
I need to grab just the full user name name / display name only & export this to a text file
Thanks
this runs but gives no output
Running on its own it gives useful but to much output.
I need to grab just the full user name name / display name only & export this to a text file
Thanks
- 17 Feb 2014 11:18
- Forum: DOS Batch Forum
- Topic: query Active directory display name
- Replies: 15
- Views: 13908
Re: query Active directory display name
Regarding the net user command I have found
net user %username% /domain | find "display name"
I get no error so I gather that it worked however I need to output the display name that it grabs I think perhaps a third pipe?
Ill test the other suggestion's and report back
Thanks
net user %username% /domain | find "display name"
I get no error so I gather that it worked however I need to output the display name that it grabs I think perhaps a third pipe?
Ill test the other suggestion's and report back
Thanks
- 16 Feb 2014 06:05
- Forum: DOS Batch Forum
- Topic: query Active directory display name
- Replies: 15
- Views: 13908
Re: query Active directory display name
Ive tried that and manually replaced the xxx.xxx.xxx.xxx with the ip address of the machine. I get the error 192.168.1.10 was unexpected at this time. I begs the question how do I get the Ip address into that line? I have looked to see if there is an enviornmental variable for ip address but couldnt...
- 15 Feb 2014 19:58
- Forum: DOS Batch Forum
- Topic: query Active directory display name
- Replies: 15
- Views: 13908
query Active directory display name
Hi Im looking to create a logon script that will query the output the user and the computer they are using. The %username% is not enough as I cant tell from this who the user is without having to look it up. I need the friendly name, Displayname of the user so I can output it to the 3rd colum of my ...
- 18 Dec 2011 11:09
- Forum: DOS Batch Forum
- Topic: use ie to google all running tasks (for tokens delims)
- Replies: 3
- Views: 4807
Re: use ie to google all running tasks (for tokens delims)
That works great mate. Now to begin learning the code. Yeah it does tie the processor up momentarily but still quicker than googling each individually
Thanks guys and Merry Chrstmas
Thanks guys and Merry Chrstmas
- 11 Dec 2011 13:01
- Forum: DOS Batch Forum
- Topic: use ie to google all running tasks (for tokens delims)
- Replies: 3
- Views: 4807
use ie to google all running tasks (for tokens delims)
for /f "tokens=1 delims=" %%A in ("c:\windows\system32\tasklist.exe") do "C:\Program Files\Internet Explorer\iexplore.exe" %%A ¶ Hi all above is where Im at so far. I want to use the tasklist command to list all processes running and then the above line to feed in the 1...