|
 |
|
|
 |
|
|
 |
|
|
 |
|
 |
Nr.1
Unofficial European
Website on Microsoft
ISA Server |
 |
 |
Community
tecnica italiana
sul VOIP |
 |
 |
Servizi
business sulla virtualizzazione |
|
|
|
|
|
|
|
Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
|
T O P I C R E V I E W |
bozz |
Posted - 04/01/2010 : 19:32:09 ciao
ho la necessità di recuperare la lista dei job new-P2V e spedirli via mail, utilizzo il seguente script powershell:
$jobs = (get-job -VMMServer localhost | Select-Object ResultName,StartTime,EndTime,Status,CmdletName | where {($_.ResultName -like "*_V_*") -and ($_.CmdletName -ieq "New-P2V") -and ($_.Status -ieq "Completed") -and ($_.StartTime -ge (Get-Date).AddDays(-1))} | Sort-Object ResultName,StartTime,EndTime
....
Facendo dei test ho verificato che se l'istruzione get-job dal prompt powershell ottengo la lista corretta di job, invece se eseguo lo script passandolo come argomento a powershell.exe il risultato è diverso.
Qualcuno ha idea del perche?
Grazie Ciao |
|
|
VMexperts.org Forum |
© Luca Conte - 2008 - Tutti i diritti riservati |
 |
|
|
No banner in farm

|