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

Windows 10

Active Members
Joined
Dec 10, 2024
Messages
2,027
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

Continue reading...
 
Back
Top