Questions tagged [logoff-scripts]

9 questions
10
votes
2 answers

Warn user if they try to logoff

I want a certain local user to not log off. ever. It's much like this silly question, however I don't necessarily care if the buttons are there, I want to pop up a messagebox that says "Please do not log off the console" with an "OK" button that…
6
votes
5 answers

Script to kill process at logoff doesn't execute until process is dead?

We have a program that, due to memory leaks in some of the screens, doesn't exit cleanly when the user quits. The problem is that this blocks the normal logoff procedure - you select logout and a few processes disappear but the user doesn't…
robertc
  • 408
  • 1
  • 7
  • 14
1
vote
1 answer

Ninite with a logoff group policy script

I'm trying to use a batch script to automate the updates of some apps using ninite with a group policy log off script. Here is my script: echo Copying ninite mkdir C:\temp mkdir C:\temp\ninite echo STARTING robocopy /xo /"\filesever01\shared…
1
vote
1 answer

Power Off Monitors at Logoff

Mixed domain environment, xp, vista, 7 DC = Server 2003, 2008 Has anyone done this ? powering off the Monitor when a user shutsdown the machine or logs off ? I have checked the GPO Setting but they seem to be focused on when the machine is idle or…
Mutahir
  • 2,347
  • 2
  • 32
  • 42
0
votes
2 answers

Remove DNS logon script

I've added the a logon script for specific users so they have no access to the internet @ECHO OFF set vardns1=1.1.1.1 set vardns2=1.1.1.1 ECHO Setting Primary DNS netsh int ip set dns name = "Local Area Connection" source = static addr =…
0
votes
2 answers

logoff sessions except console

There is an application in a multi-user environment that can only be open in one session on a workstation. The users move around frequently from PC to PC, leaving the application open, and the workstation locked. Disabling user switching is…
0
votes
1 answer

Login/Startup Scripts Not working

My test network setup is as follows. A Windows 2008 R2 Server acting as a DC (AD, DNS, DHCP) it is on its own vlan (10.20.99.0/24). I then Have two XP test computers each on there own vlan (10.20.98.0/24 and 10.20.97.0/24). For the vlans with the…
0
votes
2 answers

Add Group Policy by Script

I'm trying to make it easy to add a LogOff script to Group Policy and am having difficulty finding any information on adding Group Policy via script. I already have the script I want to run at Logoff, I know how to run scripts via Group Policy. I…
music2myear
  • 1,893
  • 3
  • 26
  • 51
-1
votes
1 answer

Windows Server 2016 RDP - How do I get logon-/logoff-scripts for RDP-users working without a DC and without AD?

did some research on this, but could not find a solution working for this single-server-enviroment without DC and AD. The users in question are members of "local-non-admins" and "remote users". The available gpo with logon-/logoff-scripts-options…