Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Logon on a user and gpedit.msc

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-21-2007   #1 (permalink)
Tech_vs_Life
Guest


 

Logon on a user and gpedit.msc

1. I assume one can call a powershell script from the logon/logoff script
section of group policy (gpedit.msc, under user configuration, windows
settings, scripts logon/logonoff). Is that right?

2. I want to use a script to login a user. The script would run whenever a
(remote) user logoffs (I'm attaching it to gpedit policy on logoff scripts).

Can this be done, and is there sample code? I just need script to detect if
there is a shutdown going on, and if not, to login a user (technically, the
same user being logged off).

a: A remote desktop user logoffs.
b: The logoff script entered in gpedit.msc runs.
c: That script logs on a local user, as long as we're not in a shutdown (as
long as logoff in (a) wasn't part of a shutdown).

Thanks.



My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
The User Profile Service failed the logon. User profile cannot be loaded. Brink Tutorials 268 5 Days Ago 01:11 PM
Different user logon Floor Vista General 2 03-17-2008 01:04 PM
Logon failure: the user has not been granted the requested logon typeat this computer. shil .NET General 0 03-17-2008 12:40 PM
User Logon Johnnycat Vista account administration 6 03-14-2008 10:41 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008