Quantcast
Channel: WinAudit
Viewing all articles
Browse latest Browse all 103

New Post: Is there a way to get the "Drive free space" without using the "d" option?

$
0
0
Hi,

I have a fairly basic command line, that I am looking to add to the login scripts here. I can see that Winaudit is very powerful, and have only included a few switches to track hardware only. The problem I have is, we use 5 mapped network drives. I don't really want to have the mapped drives free space showing in every log generated, but would dearly love to have the local drives free space listed.
@Echo Off
Echo off

Echo Collecting PC asset data.  
Net use s: \\servername\common\audits\winaudit /persistent:NO
s:
winaudit.exe /r=gDiad /f=s:\data\%computername%.html /l=s:\log.txt
del /f /q s:\log.txt
net use s: /delete /YES
As you can see, I deleted the log file after creating it, as I don't really need it. For some reason, without the log file being written, the command seemed to ignore my "/r=gDiad" and just fill it with all the defaults.

Thanks in advance.

Viewing all articles
Browse latest Browse all 103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>