Windows 10: Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help

Discus and support Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help in Windows 10 Software and Apps to solve the problem; I have noticed strange behavior in Hyper-V. Group Policy is configured to execute PowerShell scripts for logon, logout, startup, and shutdown. The... Discussion in 'Windows 10 Software and Apps' started by rtxecholot, Dec 28, 2024 at 2:32 AM.

  1. Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help


    I have noticed strange behavior in Hyper-V. Group Policy is configured to execute PowerShell scripts for logon, logout, startup, and shutdown. The typical sequence of script execution is: startup → logon → logout → shutdown.However, an issue arises when a restart is initiated while logged in i.e., after startup and logon scripts have already been executed. Upon clicking the restart button from the GUI, the following occurs: after the logout and shutdown scripts run as expected, the startup script is executed and the logon script is triggered. This happens despite the fact that the lock scree

    :)
     

  2. How to apply the GPO settings by using PowerShell scripts.

    Hello Team,

    We required your help to create the GPO settings via PowerShell script.

    example : I would like to apply the GPO settings to turn of the handwriting recognition error reporting via from PowerShell.

    I know how to apply the settings by manually to navigate the path location, but I would like to know the steps from using PowerShell.

    Appreciate your help! Thanks
     
    Vinodh KumarSivaji, Dec 28, 2024 at 2:35 AM
    #2
  3. DaveM121 Win User
    HYPER V LOST

    Hi Nigam

    You say you have Windows 10 Home, the Hyper V functionality is only available on Windows 10 Enterprise, Pro, or Education

    If as you say, you used to have that functionality, try this:

    Right click your Start Button, then choose Powershell (admin)

    Paste this into Powershell and hit Enter:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

    When that command completes, close Powershell and restart (not shutdown) your PC ...
     
  4. Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help

    Hyper V deativication

    Hi Geoffrey,

    Hyper-V lets you run an operating system or computer system as a virtual machine on Windows. Before proceeding in disabling
    Hyper-V, please create a backup of your files for security purposes.

    To disable Hyper-V, please follow the steps below:

    • On the Cortana search box, type Turn Windows Features on or off and press
      Enter.
    • Look for the Hyper-V folder.
    • Uncheck the tick-box next to the main Hyper-V folder and click
      OK.
    • Restart your PC.

    Should you have further questions, please let us know.
     
    Jefferson Ore, Dec 28, 2024 at 2:35 AM
    #4
Thema:

Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help

Loading...
  1. Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help - Similar Threads - Unusual Behavior using

  2. Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help

    in Windows 10 Gaming
    Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help: I have noticed strange behavior in Hyper-V. Group Policy is configured to execute PowerShell scripts for logon, logout, startup, and shutdown. The typical sequence of script execution is: startup → logon → logout → shutdown.However, an issue arises when a restart is initiated...
  3. Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help

    in Windows 10 BSOD Crashes and Debugging
    Unusual Behavior using GPO PowerShell Scripts During Restart/Shutdown in Hyper-V – Need Help: I have noticed strange behavior in Hyper-V. Group Policy is configured to execute PowerShell scripts for logon, logout, startup, and shutdown. The typical sequence of script execution is: startup → logon → logout → shutdown.However, an issue arises when a restart is initiated...
  4. Is This a PowerShell/Startup Script? Is it Normal Behavior? Need Urgent Help Because This...

    in Windows 10 Gaming
    Is This a PowerShell/Startup Script? Is it Normal Behavior? Need Urgent Help Because This...: I made a post about this a few days ago but there was no definitive conclusion on what this was and I'm no less worried then than I am now. I don't use PowerShell at all, I've never engaged with or created Scripts in my life, but I'm at my wits end with understanding this or...
  5. Is This a PowerShell/Startup Script? Is it Normal Behavior? Need Urgent Help Because This...

    in Windows 10 Software and Apps
    Is This a PowerShell/Startup Script? Is it Normal Behavior? Need Urgent Help Because This...: I made a post about this a few days ago but there was no definitive conclusion on what this was and I'm no less worried then than I am now. I don't use PowerShell at all, I've never engaged with or created Scripts in my life, but I'm at my wits end with understanding this or...
  6. Is This a PowerShell/Startup Script? Is it Normal Behavior? Need Urgent Help Because This...

    in Windows 10 Network and Sharing
    Is This a PowerShell/Startup Script? Is it Normal Behavior? Need Urgent Help Because This...: I made a post about this a few days ago but there was no definitive conclusion on what this was and I'm no less worried then than I am now. I don't use PowerShell at all, I've never engaged with or created Scripts in my life, but I'm at my wits end with understanding this or...
  7. How to apply the GPO settings by using PowerShell scripts.

    in Windows 10 Gaming
    How to apply the GPO settings by using PowerShell scripts.: Hello Team,We required your help to create the GPO settings via PowerShell script. example : I would like to apply the GPO settings to turn of the handwriting recognition error reporting via from PowerShell.I know how to apply the settings by manually to navigate the path...
  8. How to apply the GPO settings by using PowerShell scripts.

    in Windows 10 Software and Apps
    How to apply the GPO settings by using PowerShell scripts.: Hello Team,We required your help to create the GPO settings via PowerShell script. example : I would like to apply the GPO settings to turn of the handwriting recognition error reporting via from PowerShell.I know how to apply the settings by manually to navigate the path...
  9. Powershell GPO Startup Script not working

    in AntiVirus, Firewalls and System Security
    Powershell GPO Startup Script not working: Hello, I wrote a Powershell Script to delete Microsoft Store Apps which works fine when run manually. However I want to run it as a Startup script via GPO on all computers Windows 10 Pro in our domain. For that, I created a group policy and added the script under Computer...
  10. Powershell Script on Shutdown

    in Windows 10 Performance & Maintenance
    Powershell Script on Shutdown: Hi all, I try to run a Powershell Script (*.ps1) when i shut down my PC. I created the script and it is working fine when i run it. However if i want to run it on a regular Shutdown it seems like it does not start or is not finished, before Windows is killing every running...