Below are snippets for dannyboy.
2
Get computername with wmi
2
Get the computer domain with wmi
2
Access a print server, get information about all printers on the server,
and build an Excel spreadsheet with the information. You must have power
user or Administrator rights to the print server, and need to have
Microsoft Excel installed on the PC you are running this from.
and build an Excel spreadsheet with the information. You must have power
user or Administrator rights to the print server, and need to have
Microsoft Excel installed on the PC you are running this from.
3
Get all the properties of active directory
3
Get Bios info from wmi enabled machines
3
Kill a running program on a wmi enabled compute
3
check if a string is a valid domain ex.: dsc-services.be
3
mySizeDisk: this function just formats the output the way I like
Input integer in Bytes, outputs easily human readable format
Input integer in Bytes, outputs easily human readable format
3
mySizeMemory:this function just formats the output the way I like Input integer in Bytes, outputs easily human readable format
3
this function returns the aggregated size
of all files in a directory and its subdirectories
of all files in a directory and its subdirectories









