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
Search found 35 matches
- Wed May 21, 2008 8:36 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
- Mon Apr 28, 2008 6:47 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
computer asset inventory
thanks. yeah i have the book..
- Mon Apr 28, 2008 4:12 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
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
Thanks,
dee
deepakm@rice.edu dee2008-04-28 11:13:00
- Mon Apr 28, 2008 4:07 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
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($_.LastMod...
- Mon Apr 28, 2008 3:00 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
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='...
- Mon Apr 28, 2008 2:56 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
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
- Mon Apr 28, 2008 2:50 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
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 filesesetupdfileslastu...
- Mon Apr 28, 2008 12:53 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
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}},@{Na...
- Mon Apr 28, 2008 12:18 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
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 i...
- Sun Apr 27, 2008 11:20 pm
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50890
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]::tr...