Reputation: 545
I know you can create powershell logon scripts and run them via Group Policy. We have a requirement where we need the user to accept the IT Usage Policy and one way I thought of doing this would be to use a login script. It would halt the login process and display a popup box after successfully logging in asking if they accept the policy (And requiring the OK/YES button to be pushed) before proceeding with login and taking the user to their desktop. Is this possible? If so, can it be set to either only run once or say every month?
If it is important, we exclusively run Windows 7 desktops.
Upvotes: 2
Views: 4383
Reputation: 1
It does not work when you execute the script as "logon one". There should be a costrain that inhibit the appears of messageboxes.
Upvotes: 0
Reputation: 7355
The short answer is Yes. Here is a link to an example Provide a Yes/No Prompt in Windows PowerShell Along with the link posted by @neolisk you should be able to cover off both sides of your question.
$a = new-object -comobject wscript.shell
$intAnswer = $a.popup("Do you want to choose Yes or No?", 0,"Confirmation",4)
Upvotes: 1