IT Guy
asked on
Set PowerShell script or batch file to run before user logs into Windows 10 computer
Is it possible to set a PowerShell script or batch file to run before a user logs into a Windows 10 computer that is a member of a Server 2016 Active Directory domain?
If so how can this be done?
If so how can this be done?
ASKER
Can someone please provide me with the exact steps on how to set a computer startup script to run via Group Policy that will run before any user logs on?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
A user logon script will run at the time of logon. If you need the script to run in the context of the user logging in, you can't have it run before that user logs in because it has no idea what user will be logging in, and has no access to the session, user permissions, etc.