Search found 416 matches

by donj
Tue Apr 08, 2008 3:33 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 50844

computer asset inventory

Win32_Product, although it only contains products installed through Windows Installer. So it may not include everything actually installed on the machine. Also, that class has to be added to Win2003 - it isn't there by default.
by donj
Tue Apr 08, 2008 3:14 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 50844

computer asset inventory

1. Installed memory might be in Win32_ComputerSystem. "Free space" isn't calculated like that, though. You could query the performance counter info. I'd recommend getting the WMI Browser (Tools Zone here) and looking around in the rootcimv2 namespace. 2. Win32_LogicalDisk Don't know what y...
by donj
Tue Apr 08, 2008 2:48 am
Forum: VBScript
Topic: Advanced Disk Quotas with Vbscript
Replies: 3
Views: 3015

Advanced Disk Quotas with Vbscript

LOL... actually there's a long story. We just recently re-instated the PowerShell forums. But I wouldn't think of it as learning two for one - PowerShell is markedly different in style and syntax. For example... Get-WmiObject win32_diskquote -computer server2 | measure-object spaceused -min -max -av...
by donj
Tue Apr 08, 2008 2:14 am
Forum: VBScript
Topic: Script / Policy For Home Folders
Replies: 7
Views: 4110

Script / Policy For Home Folders

Certainly - I've not used the tool myself, but others have spoken well of it.
by donj
Tue Apr 08, 2008 1:46 am
Forum: VBScript
Topic: Script / Policy For Home Folders
Replies: 7
Views: 4110

Script / Policy For Home Folders

A logoff script would be way too time-consuming - it would cause problems with the logoff process.

http://www.b2net.co.uk/veritas/veritas_ ... entral.htm is what you want.
by donj
Tue Apr 08, 2008 1:05 am
Forum: VBScript
Topic: Advanced Disk Quotas with Vbscript
Replies: 3
Views: 3015

Advanced Disk Quotas with Vbscript

PowerShell may also be an easy way to accomplish this - it has access to the same WMI objects and some built-in capability for measuring things like averages and so forth.
by donj
Mon Apr 07, 2008 7:28 am
Forum: VBScript
Topic: Rename file to folder name
Replies: 3
Views: 2852

Rename file to folder name

Probably not :). I'm actually sure it's easier to do in PowerShell - possibly a one-liner - but in this case I think the VBScript is pretty clear to read, and I'm glad it did the job.
by donj
Mon Apr 07, 2008 7:18 am
Forum: VBScript
Topic: Get previous days Date
Replies: 4
Views: 2871

Get previous days Date

They DO allow it. I just don't get to do it much. I have a conference next month in Orlando, though, so am going a couple days early for a bit of a break.
by donj
Mon Apr 07, 2008 6:46 am
Forum: VBScript
Topic: Get previous days Date
Replies: 4
Views: 2871

Get previous days Date

LOL... Seattle, Chicago.. ya, very warm...
by donj
Mon Apr 07, 2008 6:37 am
Forum: VBScript
Topic: Rename file to folder name
Replies: 3
Views: 2852

Rename file to folder name

Sure... typing off the top of my head to the syntax may not be quite right. Assuming your folders are all contained in D:Folders.. Set fso = createobject("Scripting.FileSystemObject") Set root = fso.getfolder("D:folder") for each folder in root.subfolders foldername = folder.name...