Search found 35 matches

by dee
Wed May 21, 2008 8:36 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

Know of a way to retrieve the scheduled tasks runas logon account of remote servers? I tried via the Win32_ScheduleJob, but it looks like it only works if it was created via AT. Otherwise it shows blank. Any ideas? Thank you so much for all your help!
Dee
by dee
Mon Apr 28, 2008 6:47 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

thanks. yeah i have the book.. ;)
by dee
Mon Apr 28, 2008 4:12 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

No problem. I've learned allot from you and scriptinganswers.com's posts. Good Job! I've come a long way since my 1st post on here, so i'm greatly appreciative of all you do here.

Thanks,
dee
deepakm@rice.edu dee2008-04-28 11:13:00
by dee
Mon Apr 28, 2008 4:07 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

I figured it out on how to use the ConvertToDateTime.... Get-WmiObject -Query "SELECT * FROM cim_datafile where name='c:program filesesetupdfileslastupd.ver'" -ComputerName $_ -Credential $cred | Select-Object Name,@{Name="LastModified";Expression={$_.ConvertToDateTime($_.LastModified)}} | Format-Li...
by dee
Mon Apr 28, 2008 3:00 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

also, the speed was very quick and I couldn't ask for it to be any quicker. I'm just not sure how to search for that file in any local disk of a particular server. Also, how do I date format and truncate the "LastModified"? Get-WmiObject -Query "SELECT * FROM cim_datafile where name='c:program files...
by dee
Mon Apr 28, 2008 2:56 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

when i put no path it gave no data...

Code: Select all

Get-WmiObject -Query "SELECT * FROM cim_datafile where name='nod32.exe'" -ComputerName $_ -Credential $cred |
	Select-Object Name,Version | Format-List
by dee
Mon Apr 28, 2008 2:50 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

new question: How do you truncate the following: LastModified : 20080428114231.585250-300 I would like to have the format be a date format and also to truncate the last 17 digits. I have the following: Get-WmiObject -Query "SELECT * FROM cim_datafile where name='c:program filesesetupdfileslastupd.ve...
by dee
Mon Apr 28, 2008 12:53 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

Nevermind.. I resolved the issue by doing the following: Get-WmiObject -Query "SELECT * FROM Win32_LogicalDisk" -ComputerName $_ -Credential $cred | Where-Object {$_.drivetype -eq 3} | Select-Object VolumeName,Name,FileSystem,@{Name="Freespace";Expression={$_.FreeSpace/1gb}},@{Name="Size";Expression...
by dee
Mon Apr 28, 2008 12:18 am
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

I tried that but, I don't get the right results: Get-WmiObject -Query "SELECT * FROM Win32_LogicalDisk" -ComputerName $_ -Credential $cred | Where-Object {$_.drivetype -eq 3} | Select-Object VolumeName,Name,Size,FreeSpace,FileSystem | $_.FreeSpace/1GB I tried placing the $_.FreeSpace/1GB in other sp...
by dee
Sun Apr 27, 2008 11:20 pm
Forum: PowerShell
Topic: computer asset inventory
Replies: 59
Views: 39664

computer asset inventory

I have another question. Any way of formating the "FreeSpace" that is in bytes to GB or MB? I tried the following, but the results is just showing blank or just the bytes. Get-WMIObject Win32_LogicalDisk | Select-Object VolumeName,Name,Size,FreeSpace,FileSystem | ForEach-Object {[math]::truncate($_....