Virtual machines off for more than 14 days

I so need of report of all virtual machines off the power more than 14 days and that turns off the virtual computer.  I can get the power out of VMs.  I can get that them turned off.  But when I enter the list of the powered of VMs and who fed the, I'm missing the name of the virtual machine.  I guess I'm missing something simple

Get - vm | where {$_.powerstate - eq "PoweredOff"} | Get-VIEvent | where {$_.fullFormatted Message - like "task: turning off *"} | Select Createduserid, username, fullFotmattedMessage | where {$_.createdtime - lt (get-date).adddays(-14)}

Try like this

get-vm | where {$_.powerstate -eq "PoweredOff"} |Get-VIEvent | where {  $_.fullFormatted Message -like "Task: Power off*" } | select  createdTime, userName, fullFotmattedMessage,@{N="VM";E={$_.Vm.Name}} | where {$_.createdtime -lt  (get-date).adddays(-14)}

Tags: VMware

Similar Questions

  • Script to find the virtual computer off for more than 7 days

    Guys,

    I need a bit help I'm looking for a script that finds all the VMs who have been turned off for more than 7 days.  I would like also the names of those VM and how many days they have been turned off for a worksheet excel output.

    Thanks in advance.

    Sorry, my mistake.

    The correct script is now attached to the previous response

  • Phone has been "redevelopment" iCloud drive for more than a day now

    In parameters, iCloud Drive was churning "valorisation" for more than a day now. Did not help restart the phone. iPhone 6 s, iOS 10.0.2.

    Thank you!

    What kind of "reboot", you have?  What was this - restart your iPhone, iPad or iPod touch - Apple Support?  If you did, and it did not work, try switching iCloud drive, power switch (settings > iCloud > iCloud drive).  If this does not work, try to connect to your iCloud account and reconnect.

  • What happens if I don't have internet connection for more than 30 days, with a monthly Photoshop CC license?

    I know, I have to connect to the internet to validate my monthly subscription to Photoshop CC. What happens if I can not connect to the internet for more than 30 days? It will be expired immediately, or changes in the first instance, or there is a period of grace for this?

    you will not be able to open ps after 30 days.

    (on the other hand, if it is already open on the 30th day and you leave it open, it must continue to operate unless you shut up.)

  • What query can we use... .for more than 30 days

    Select the PROPERTY, RELAVANTDATE,
    Sum (records) more)
    partition of property
    order of RELAVANTDATE
    between the '30' day interval preceding and the current line
    ) "SUM".
    of Test_Data

    What query can we use... .for more than 30 days
    can I use following or preceding
    SCOTT@soti_9> WITH Test_Data AS (
      2    select 10100 as property, to_date('25-JAN-07') as RelavantDate, 20 as notices from dual union all
      3    select 10100 as property, to_date('25-DEC-07') as RelavantDate, 5 as notices from dual union all
      4    select 10100 as property, to_date('02-JAN-08') as RelavantDate, 10 as notices from dual union all
      5    select 10100 as property, to_date('01-DEC-08') as RelavantDate, 10 as notices from dual union all
      6    select 10100 as property, to_date('02-DEC-08') as RelavantDate, 20 as notices from dual union all
      7    select 10100 as property, to_date('31-DEC-08') as RelavantDate, 20 as notices from dual union all
      8    select 10100 as property, to_date('03-JAN-09') as RelavantDate, 30 as notices from dual union all
      9    select 10100 as property, to_date('25-JAN-09') as RelavantDate, 20 as notices from dual
     10  )
     11  select PROPERTY,RELAVANTDATE ,
     12    sum(NOTICES) over (
     13      partition by property
     14      order by RELAVANTDATE
     15      range between current row and interval '30' day following
     16    ) "SUM"
     17  from Test_Data
     18  ;
    
      PROPERTY RELAVANTD        SUM
    ---------- --------- ----------
         10100 25-jan-07         20
         10100 25-dec-07         15
         10100 02-jan-08         10
         10100 01-dec-08         50
         10100 02-dec-08         40
         10100 31-dec-08         70
         10100 03-jan-09         50
         10100 25-jan-09         20
    
    8 rows selected.
    

    Kind regards
    Dima

  • I can't keep my history of browser for more than two days. Is there a way to set the amount of time my browser history is saved?

    At one point he recorded for the month, but I did sort of a security update and now my history is deleted like every two days. Is it possible to set up the number of days or months or something, while Firefox keeps my browsing history for a longer period of time? (I have 8.1 of Windows and 37.0.2 Firefox if that helps with anything.)

    Maybe the feature is removed in newer versions. But there is an add-on that allows you to set your preferred dates custom to make FF clear your history and other data. Give him a look at: https://addons.mozilla.org/en-US/firefox/addon/precise-clear-history/

    Thank you

  • Windows updates frozen at 3 of 3 0% for more than a day now?

    I recently had a problem with windows update, after you install the updates downloaded by windows update I restart my computer and there to configure updates screen 3 0f 3 0% complete and has not changed for a day. The process seems frozen.

    I don't know how to restart my computer and even less to fix. Any ideas?

    Hello

    Do a hard boot and boot the computer from the installation disc windows to do that follow the steps below.

    1. Insert the windows installation disc.
    2. tap on the f12 key when you see the dell logo.
    3. Select the Cd-DVD-ROM in the start menu and press ENTER.
    4. Once you press on enter start by tapping the space bar key.
    5. Select windows vista configuration active EMS and press enter (you may or may not get this in case if this seems not let windows loading files as in step 6)
    6. Windows files load and give you the option to select the keyboard and the region. Click next
    7. click on repair your computer.
    8. on the System Recovery Options page, click System Restore.
    9. on the System Restore page, click Next.
    10. Select a restore point during which you know the operating system works, and then click Next.
    The restore point should be a date that is before you encountered the problem described in the Symptoms"" section. To select this date, use her choose a restore different option and click Next.
    11. If you are prompted for a disk to restore, select the drive on which the operating system is installed, and then click Next.
    12. on the confirm your restore point page, click Finish.
    13. when the restore process is finished, click on restart.

    If you don't get on the desktop, follow these steps

    1. follow steps 1 to 7 above.
    2. in the System Recovery Options page, click command prompt.
    3 type cd C:\windows\winsxs, and then press ENTER.
    4 type ren pending.xml pending.old, and then press ENTER.
    5. type regedit and press ENTER.
    6. Select HKEY_LOCAL_MACHINE\Components
    7. in the right pane, you should see AdvancedInstallersNeedResolving and PendingXmlIdentifier right-click and delete them.
    8. exit the registry editor, type exit at the command prompt, and press ENTER.
    9. click on restart.

    Note: If you do not have the windows vista DVD, you can press the F8 key on the dell logo and then select repair your computer option and you should get the same thing you can get after booting from the DVD.

  • How to use CC for more than 99 days offline?

    I'm about to disappear into the back end of nowhere for 6-8 months (from the benefits of military service). I'll take my camera and laptop complete with CC installed. I have to assume I have no reliable internet connection for the duration. Is there a way to circumvent the problem of connectivity 30/99 day, without having to buy a stand-alone version of the CS6?

    I don't know the details, but the Government accounts https://forums.adobe.com/thread/1483694 can help

  • What should I do if I have an Internet connection for more than seven days?

    My CC monthly subscription renews every month 7.  From my experience, it seems that my applications are verified / check with Adobe 8.  However, next month, I'm going on a trek on the 7th and will be without internet for 10 days.  As CC apps to stop working after 7 days of not being able to access your room, that's a problem.  Is there something I can do to make sure that my LR 5 install will continue to work for the duration?

    According to Adobe...

    http://www.Adobe.com/products/creativecloud/FAQ.html

    Do I need a continuous Internet access to use my apps desktop creative cloud?

    Lol your desktop creative cloud (like Photoshop and Illustrator) applications are installed directly on your computer, so you won't need a continuous Internet connection to use on a daily basis.

    An Internet connection is required the first time you install and your applications of office of license, but you can use applications offline with a valid license. Desktop applications will try to validate your software licenses every 30 days.

    For annual members, you can use the applications up to 99 days in offline mode. For month members can use the software for 30 days offline.

    Looks like you'd be ok, but I understand what you're saying, I hope a member of the staff will confirm.

  • It is possible to look back in the history of more than 7 days?

    Is it possible t0 look back into history for more than 7 days?
    7 days is the default...

    Thank you for your comment.

    Jan

    Try this.

    • In the address bar, type Subject: config , and then click OK.
    • Copy and paste the following in the filter at the top: browser.history_expire_days to isolate this setting.
    • Presumably, he'll say '7' because that's all you can see. Then right-click and choose Edit from the menu, delete the figure who's there and replace it with 180
    • Then go to file | Exit, restart Firefox and do a little surfing accumulate a bit of history.

    Check back tomorrow to see if anything has changed.

  • How do you decommssion a domain controller that has not been on the network of more than 200 days?

    Hello

    in our society, we have an old domain controller has been disconnected for more than 200 days, probably in a State of thumbstone, it still appears in our network. We wanted to know what is the best way of disused this server, we connect to our network and do normal downgrade process.

    How do you decommssion a domain controller that has not been on the network of more than 200 days?

    Could you please write me back to my work email or call me on my work phone? Job information are below.

    Hello

    The business support, you can find forums on TechNet, see the following links:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • Availability of the system, if more than 25 days?

    Hello

    The parameter 'time' in the call NavigationMovement (dx, dy, status, time) is equal to the number of milliseconds since the device booted up last. However, the value is an int. After my calculations, the value of time is only good if the unit has been running for less than 25 days continuously (see below).

    Anyone know what is happening to the value of time once it exceeds 25 days? I came across a bug on my program where things worked very well on my device, but then the call of NavigationMovement behaved badly and I thought it was because my camera was too long. I did a traction battery and things worked properly again.

    I won't try to debug this iteratively until my device of permanent test for 25 consecutive days each time.

    How can I keep my program works correctly even if the device of the user stays on for more than 25 days in a row?

    Thank you

    CALCULATION OF time MAX VALUE:

    int Max value is 2 ^ 31-1

    => 2147483647 milliseconds

    => 2147483.647 seconds

    => 596,52323 hours

    => 24,8551 days

    Two ideas:

    1. to work around this problem:

    (a) if drop test (iLastSwipeTime > 0).

    and

    (b) verification (time - iLastSwipeTime) & 0x7FFFFFFF rather than simply (time - iLastSwipeTime).

    2. to test, take a look at EventInjector.  There are no setTime() for EventInjector.NavigationEvent (at least it is not documented), but both KeyEvent and KeyCodeEvent this (obsolete) method.  See if you can use it in your tests.

  • Query to find more than 3 days with the exception of weekends.

    Hi all

    Anyone help me with this request. On a table, I need to get all the lines that are pending for more than 3 days, outside of the weekend. No idea how to do this please?

    Query

    SELECT aerha.invoice_num, aerha.total amt,

    ROUND ((SYSDATE-aerha.last_update_date), 0) days

    OF ap.ap_expense_report_headers_all aerha

    WHERE 1 = 1

    AND NVL (aerha.expense_status_code, "XX") = "PENDMGR".

    AND expense_check_address_flag IS NOT NULL

    AND (ROUND ((SYSDATE-aerha.last_update_date), 0)) > 3

    Thank you

    sheebs

    Hello

    I guess 'weekend' means Saturday and Sunday, three days before the Wednesday (except weekend) would be the previous Friday.

    Change this last condition for

    AND (ROUND ((SYSDATE-aerha.last_update_date), 0)) > CASES

    WHERE TO_CHAR (SYSDATE

    , "DY".

    , ' NLS_DATE_LANGUAGE = ENGLISH '-if necessary

    ) IN ("GAME", "FRI")

    THEN 3

    5. OTHER

    END

    The code you posted is looking for a difference in 3 days.  The problem is that if you run it on a Monday, Tuesday or Wednesday, then you want a difference of 5 days (3 days + 2 weekend days).  The condition above replaces the code 3 hard with a CASE expression that returns 3 or 5 accordingly.  (If there are chances that you can run on a Saturday or a Sunday, then you may need to change the CASE expression a bit.)

    This kind of approach is not very good if you need take into account public holidays, or if you are looking for differences in N days, where N can be something of not known until run time.  For situations like this, see:

    Need to calculate working days

  • Played Virtual City 2: video games Paradise Resort & pickers on I win for more than a month, now has error vc2: paradise resort ifn.

    Played Virtual City 2: video games Paradise Resort & pickers on I win for more than a month, now has error vc2: paradise resort ifn. has stopped working & gatherers ifn. has stopped working all of the games I try to play with NFI in the files has the same error.  How can I get my games to play again?

    original title: problems with ifn. files

    Hello

    1. are you the game online or downloaded the game on the computer?

    2 have you made changes on the computer before this problem?

    3. If you play the online game, so what web browser do you use to play the game?

    If you have downloaded the game on the computer, I suggest you to try to uninstall and reinstall the game and check if this may help.

    Step 1: Uninstall or change a program:

    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    Step 2: Install a program:

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-a-program

    If the given steps did not help, it would be better to post the same question in the support forum Virtual City for further assistance.

    http://www.virtualcitygame.com/

    Hope the information is useful.

  • "service pack do not have. recovery of Exchange"has been ongoing for more than 12 hours. Have turned off on the reboot, but the message remains. How can I fix?

    I installed the service pack and when the computer restarted message "service pack do not have. restoration of the changes. "came and slept there. I tried to turn off computer and start in safe mode, but nothing helped. Has been ongoing for more than 12 hours and no change. Any ideas? Thank you

    Hello

    You can try this:

    the link below is how to download and get a vista disk startup repair, which you can start from the

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    Here's how to use startup repair system restore command prompt, etc. to bleepingcomputers link below

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    to boot from the dvd drive to be able to you will see a way to get into the bios Setup at the bottom of the screen or command menu start

    It would be F2 or delete etc to enter the BIOS or F12 etc. for the start menu

    Change boot order it do dvd drive 1st in the boot order

    http://helpdeskgeek.com/how-to/change-boot-order-XP-Vista/

Maybe you are looking for

  • Seen the lines flow on several pages

    I have this problem in the Pages on Mac, what really bothers me. When I have a blank page, and I add a table and add as many lines that I wish, Pages will automatically pause at some point and the lines with continue to pour in on the next page. Just

  • Need new battery for Satellite Pro U200-182

    Hello I m needing help on the purchase of new battery for Toshiba Satellite Pro U200 - 182No model origin. what I found on old battrey is PA3356U - 3BRS with parameters: DC10.8V - 4700mAh When I tried searching on the web I found that this trickhttp:

  • is there a guide/manual for 2012 of MSSQL or 2008?

    Hi as the title suggests. Thanks ;) If there is where I could find it? Thank you

  • Import photos from camera card

    My last computer has two hard drives. Drive C is the operating system loaded, but my photos are stored on drive D expansion. When you import photos, they are automatically loaded into my photos on the C drive. Can someone tell me how to change the pr

  • Expand the Perc 5i Raid1

    Hello friends, Small question I have a PE1950 with Perc 5i and two 73 GB drives. In the other, I have 2 300 GB drive, I would like to broaden my array of 73 GB, 300 GB What is the correct there? I already tried once, by removing the disks one by one,