Change button Power Off Shutdown prompted

Hi, I'm looking for help on getting a script to change the RED button on power of case comments. Thank you.

That can be done with the ReconfigVM_Task method.

$vm = Get-VM  | Get-View
$spec = New-Object VMware.Vim.VirtualMachineConfigSPec
$spec.powerOpInfo = $vm.Config.DefaultPowerOps
$spec.PowerOpInfo.PowerOffType = "soft"
$taskMoRef = $vm.ReconfigVM_Task($spec)
$task = Get-View $taskMoRef
while($task.info.state -eq "running" -or $task.info.state -eq "queued"){
     $task = Get-View $taskMoRef
}

Note: the possible values are: 'hard' and 'soft' and 'preset '.

Tags: VMware

Similar Questions

  • It is impossible of blocking off the PC, after I press the button power off the computer. Restart the computer again

    I'm Sylvie. These last 10 days, I have a problem with my computer.

    I press the disable button for blocking to the bottom of the computer, but the computer restarts. Why!, I have now

    Thnak you,

    Charles r

    Hello
     
    1. have you made changes on the computer recently?
    Try the methods in the links below and check if it helps.
    Windows XP restarts unexpectedly or restarts when you shut down the computer
    http://support.Microsoft.com/kb/320299

    Windows XP restarts when you try to shut down your computer
    http://support.Microsoft.com/kb/311806
    I hope this helps.
  • Change button turn off Start Menu to logoff

    The Start Menu comes up with three buttons at the bottom right: one with an 'X' with a padlock, one with a triangle pointing right.  The X button, of course, stop the machine.  In my environment I usually have logoff instead of stop.  Is there a way to Vista to configure this button X to be a disconnect?     Thank you.

    Hello

    No, it is not natively customizable. The function is part of a library of system file. You may be able to find a count of third party product that can do, but there is nothing built into Vista to do.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • My computer suddenly turns power off when I'm uploading photos. Why?

    When I upload photos on Facebook my computer suddenly switches off. What could be the cause of this?

    "Nelson Riñón job" wrote in message News: * e-mail address is removed from the privacy * .com...

    My pc turns off suddenly when I'm uploading photos in Facebook. Why?

    Overheating, driver problems, and many others.  What are your having seen or heard before shutdown? It happens at any other time? Look in Event Viewer to see if you can see any represented pattern that would cause the stop.  Is this a full power off shutdown or a blocking of the screen or the BSOD?  Describe please.
  • 4 IPad keeps going to power off of the screen, the screen is cracked but do not know if I need to replace the screen button or power?

    4 IPad keeps going to power off of the screen, the screen is cracked but do not know if I need to replace the screen button or power?

    Press the sleep/wake and Home buttons and hold for at least 10 seconds.

    If this is not enough, take a look at these articles Support from Apple:

    If your iPhone, iPad or iPod touch does not respond or does not turn on - Apple Support

    Use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

    As a final step, try recovery mode. Turn off your unit, then plug it to your computer with the hold home button. Hold down Home button until you see the logo on the screen of your iPhone iTunes. After that on your computer, you should see the iTunes window saying that your iPhone needs to be restored to factory settings. Click Restore.

    More info here:https://support.apple.com/en-us/HT201263

    If these steps do not work, contact Apple and ask for help.

    https://www.Apple.com/support/iPhone/contact/

  • Changing settings blackBerry Z10 Message on Power off / on

    Could someone try to say change the Contacts from the SIM card off in the settings menu of Contacts switch the power off and power on phone, then check the Contacts to decide if she switches it back on alonh with all the other settings of contact.

    This problem has now been resolved with the last software update.

  • cannot change the power options (for example, to do this as the power button)

    I have a samsung rf510-i5 running windows 7 Home premium

    I can't change what power options the power button or the led of the closing

    I am administrator

    Best regards

    Try this;

    Start > Control Panel > Power Options > upper-left on the page, choose the closure of the hood does/choices that make the power buttons

    HTH

  • Continuous shutdown computer rather than go to sleep even though I did change advanced power settings.

    Original title: sleep problem

    My computer continues to stop rather than go to sleep even though I did change advanced power settings.

    Hello

    Thanks for posting your question on the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    Have what changes you made in the advanced power settings?

    Thank you for details on the issue.

    This problem may occur because of corrupted or incorrect power settings. This can also happen if drivers are not updated.

    I suggest you use the steps in this article and the Coachman.
    Reference:
    Windows 7 is not going to sleep
    https://support.Microsoft.com/en-us/KB/976877

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • HP Color LaserJet M277dw MFP: Disable auto power off after inactivity for HP Color LaserJet M277dw MFP

    What is the purpose of mobile printing solutions if you cannot activate your home printer?
    My printer stop automatically after 8 hours of inactivity and therefore makes it impossible for me to use mobile printing. The printer is connected via WLAN (without active ports to stop the closing).
    In the configuration, there are only options to stop after 2, 4 or 8 hours. No option on disabling of automatic shutdown.
    Pls do that for the people who work on the firmware updates, they must include an option to disable auto power off, many people are already complaining that and nothing has changed so far.
    Its just illogical. You make big announcements for HP eprint and other stuff, but your printers are not able to do so even if you could theoretically make eprint if your standing next to your printer all day.
    I just got this printer pluged and installed and already tired of this BS!
    I know that there is no solution, so just send it to the people who can change it.

    for all of you who read this post, I was in contact with the technical team of HP and they said that they don't give you the ability to disable auto power off on purpose, it is HPs energy-economy-policy to do and there are no plans to change this in the future
    in my case, I only WLAN's, yet is not automatically stop (although it should be), I guess I'm lucky that my router it ping every now and then and is therefore not stop
    If you can't fix it yourself with active ports and may not have at all, it will probably not option left than the back of the printer

  • Pavilion 15: Power off

    I have to use the shift with off switch key (on windows 8) to power the laptop off, if I use only only its turning off the display only, but is always cut power off button.

    Hello

    Try disabling the hybrid Windows 8 start - you can do the following.

    Right-click the battery icon, and select Power Options.  In the next window, click on "Choose what the power button" in the left pane.

    In the next window, click on "Change settings that are currently unavailable" (close), then Remove the check mark from the box against 'Turn on a quick start (recommended) '.  Click on the button Save the settings, and then close all open windows and check if the laptop will now be shut down properly.

    If this has fixed the problem, it may be useful by turning the quick start back on - sometimes simply remove and re-create the file will solve the problem.

    Kind regards

    DP - K

  • Idle device, power off, repeating background tasks

    I read somewhere that a background thread does not rescheduled tasks with a frequency that is too high, because it will prevent the device entering his "idle state" and so drain the battery.

    I have found no documentation on this, can someone please confirm and possibly a link to the documentation, if they exist? I have a background application to query for changes, every few minutes or seconds even according to the risk of exhausting the battery.

    Without doubt, when you press the power off button, the unit is actually off the coast and not in a State of rest? Or is there ongoing stuff while it's "off"?

    Thank you very much.

    Yes, it's true: frequently repeating tasks will prevent the unit goes into low power mode (standby). It is not just "lazy" mode with the screen turned off - it's a deeper sleep, so to speak. Make sure you reschedule these tasks at very low frequencies (time in hours) when the application is not active and that the screen is black. Distributes them regular intervals when the application become active.

  • Unable to change screen turn off or sleep modes, it gives you the choice, but does not take account of their

    Why windows 7 with service pack 1 does not change screen turn off or sleep modes, it gives you the choice but he ignores them

    Hi William,.

    1 did you changes to the computer before the show?

    2. What is the brand and model of the computer?

    Please follow the instructions to troubleshoot the computer's power:

    Method 1: Run the troubleshooters mentioned:

    Open the troubleshooter of power
    http://Windows.Microsoft.com/en-us/Windows7/open-the-power-Troubleshooter

    Method 2: Update the latest display drivers

    1. Click the Start button
    2. Select Control panel
    3. Open Device Manager
    4. Expand the graphics card
    5. Right-click on the drivers, and then select update
    6. Restart the computer

    Method 3: Scan SFC Run in the computer

    Use the System File Checker tool to troubleshoot missing or corrupted on Windows Vista or Windows system files
    http://support.Microsoft.com/kb/929833

    Method 4: Check the link to solve power problems in Windows 7:

    On troubleshooting in Windows 7 power management
    http://support.Microsoft.com/kb/980869

    Let us know if you have other questions about Windows in the future. We will be happy to help you.

  • Bug: iOS 10, Siri invades even lock screen with power off

    iOS 10, Siri invades even lock screen with power off

    Since the upgrade to iOS 10 (iPhone 5 s) siri appears when I forgetting to unlock my phone because I'm not used to this way to unlock yet. But siri on lock screen is disabled in the settings. I can close siri all together, but I don't consider it as an option.

    Is this a bug in the iOS 10 or did I miss something?

    Hello nick_ve,

    Thank you for using communities of Apple Support.

    I see that since you have upgraded to iOS 10, Siri starts each time you try to unlock your iPhone and Siri on the lock screen is disabled in the settings. I completely understand, because when I upgraded, it took me a few tries to get adjusted to unlock with the Home key. I'm more than happy to help you with this.

    Press the Home button on your iPhone 5s once unlocks the screen, and freezes for more than one second will activate Siri. It is good to keep this in mind when you unlock your iPhone.

    There is also an alternative solution I would like to share with you. You can disable this option in settings > general > accessibility > Home button. Turn the finger remains open. You can unlock the iPhone with Touch ID without having to press the Home button.

    Have a wonderful day!

  • unmatched iwatch of iphone and incorrect password (power off) gray of iwatch

    My iwatch is locked and it is showing the error "wrong access code open the Apple Watch app on your iphone, go to access code, then tap reactivate entry password to try again. I tried the hard reset, but it did not work. I can't reset the iPhone because it is non-matched and when I tried to reset to iwatch again then power off and power reserve options are grayed out.

    Can someone help me please?

    Hello

    Follow these steps to clear your locked Watch:

    • Connect your watch to its charging cable - with power connected.
    • Hold down the side button until you see the cursor off the power.
    • Press firmly (IE more firmly than usual) on Power Off and then press erase content and settings.

    Then re-pair shows your watch by using the app on your iPhone, choose to restore from backup when the possibility.

    More information:

    Set up your Apple Watch - Apple Support

    If you have forgotten the password for your Apple Watch - Apple Support

  • turn off the prompt of telemetry

    Windows XP, Firefox 17.

    I can't turn off the prompt of telemetry. If I change '2' to '0' to the subject: config, it jumps right back to 2 and does not leave my changes or permanent. Clicking 'No' to the command prompt only works for the session. Help!

    You are welcome.

    There's only one file prefs.js with valid content.

    If other software (security) maintains a lock on files or protect it from the changes to the files then Firefox is not able to update content and you have problems.

Maybe you are looking for