whats the frequency of the letter k in:
trying to query a group of servers to get used disk space. i have total and free space easily accessed but used is hard to come by. i found the below powershell that works locally can someone help a powershell noob get this to work against a list of servers maybe in a text file and dump the data into excel?
edit: sorry missed the excel requirement initially.
wow fast responses. thanks for the help ill give this a try when a get a chance and report back.
get-wmiobject will accept a list of computers. read all your computer into a variable and use it like so. i read my servers out of ad but could easily be changed to read out of a file.
$ous = domain controllers, servers
get-wmiobject win32_logicaldisk -computername $computers -filter drivetype=3 -erroraction silentlycontinue | ...
thanks for the help this worked like a charm.
how do i insert into sql table?
user
The text includes ten "k"s in total.
assistant