Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

How to run a PowerShell script when user logs into Terminal Server

$
0
0
I created a GPO and linked it to the OU containing my test user.  The GPO specifies a Powershell scrip to run at logon at this location:  
user Configuration / Windows Settings / Scripts (Logon/Logoff)/Logon.  
But when the user logs in, it doesn't seem to be running.  I did set a GPO that altered the execution policy so that this user can run scripts.  If I log in as this user and manually run the script, it works well.  If I create a CMD file to execute the script and set it as this user's logon script it runs.  

Is there something I missed?  The users in question are logging onto a terminal Server running Windows Server 2008 R2 launched from a Windows XP box.

Thanks to all who post.


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>