Questions tagged [logon-scripts]
77 questions
26
votes
12 answers
Best way to find the computer a user last logged on from?
I am hoping that somewhere in Active Directory the "last logged on from [computer]" is written/stored, or there is a log I can parse out?
The purpose of wanting to know the last PC logged on from is for offering remote support over the network - our…
Garrett
- 1,598
- 4
- 14
- 25
10
votes
2 answers
Run a Program Without User Being Logged On
I am running a Windows 7 installation, and I want to be able to run an application when there is no user logged in. The reason for this is that my application is a monitoring tool, and we want to be able to monitor 24/7 even if the computer reboots.…
Goro
- 654
- 3
- 9
- 18
7
votes
3 answers
GPO: Run PowerShell logon script after explorer.exe has been loaded
I know there is the GPO setting "Computer Configuration => Admin. Templates => System => Scripts => Run logon scripts synchronously". This, however, ensures that logon scripts run before Windows Explorer starts loading (when enabled).
I need the…
Matthias Güntert
- 2,358
- 11
- 38
- 58
5
votes
2 answers
When mapping Shares and Printers -- GPO or Logon Scripts?
I'd like to get everyone's opinion on whether it's better to use GPO or Logon Scripts when mapping shares and printers.
From my understanding, please let me know if I'm wrong, GPO seems like a cleaner solution.
GPO allows you to manage Printers and…
Chris Charge
- 53
- 3
5
votes
9 answers
What scripting language do you use for your logon scripts in your Windows enviroment?
I wonder what scripting languages is most used as logon scripts these days. Is people still hacking away in batch-file files or vbscripts, or do you use PowerShell or something completely different?
Personally, I have pretty good experience with…
Egil Hansen
- 203
- 2
- 8
4
votes
1 answer
Using VBScript at logon to determine if powershell is installed
I have a mixture of Win7, and XP machines on my network. Every user logs on using a VBS based logon script and for clients that support it, I want to show an informational pop-up as shown here.
How can I detect if Powershell is installed using…
makerofthings7
- 8,821
- 28
- 115
- 196
4
votes
7 answers
Useful Logon Script Commands
Please post useful commands that you use in your logon script.
Here are some that I use:
map a network drive:
net use v: \fileserver\apps map a network printer:
RunDll32.EXE printui.dll,PrintUIEntry /in /n
"\\printserver\Xerox DC1100 PCL" …
Jindrich
- 4,958
- 8
- 29
- 42
3
votes
3 answers
Powershell logon script (GPO) not running win 7
I have a powershell script that creates an Outlook signature.
It is applied via user-assigned GPO. All users are in the same OU, the group policy object is linked to that OU.
GPO:
User Configuration (Enabled)hide
Policieshide
Windows…
Docschnitzel
- 61
- 1
- 9
3
votes
2 answers
Why is my logon script not mapping any drives?
I've written a logon script in PowerShell. The Script is embedded in GPO and runs when a user is logging into the domain.
My Problem is, that the drives I deploy in the Script don't get deployed. I'm sure the logon script runs because in the end of…
SimonS
- 767
- 3
- 13
- 28
3
votes
1 answer
Best approach to deploy DLL file updates to Win7 clients
We are in a Windows 7 / Server 2008 R2 domain environment. We have a .NET application with lots of internal libraries for different UI and other features. We deploy it from a share where a directory is created for each "release" with the latest…
Dmart
- 304
- 1
- 3
- 10
3
votes
1 answer
Do logon scripts run concurrently or consecutively?
Do Logon Scripts set via Group Policy (User Configuration\Windows Settings\Scripts (Logon/Logoff)) run concurrently or one after the other?
The reason I ask is because I'm unsure whether it would be best to have one larger script that contains all…
David Gard
- 499
- 3
- 11
- 20
3
votes
3 answers
Windows logoff script to modify registry under HKCU
I'm trying to modify registry entries within HKCU at logoff. The corresponding script works okay when invoked manually. I was afraid there might be issues with a loopback policy kicking in, but according to rsop.msc this is not the case, i.e. the…
Hagen von Eitzen
- 816
- 3
- 15
- 41
3
votes
1 answer
How to Extract command-line output into a Variable?
As part of a task that I am working on for a customer, I need to make some modifications to the enterprise logon script. Windows command-line is definitely not my area of expertise, but I am doing OK with most it. However, I have one problem that…
RBarryYoung
- 145
- 1
- 1
- 8
3
votes
2 answers
Script on startup without update-rc.d
I've a debian minimal installation, and I just want to start a custom script at startup.
I've a script at /etc/init.d/myscript,
I put a chmod 700, and create symlinks to S20myscript into :
/etc/rc2.d
/etc/rc3.d
/etc/rc4.d
/etc/rc5.d
But then,…
Jean-Philippe Blary
- 31
- 2
3
votes
3 answers
Logon/Logoff scripts running when disconnected from domain controller
I have a windows 7 system that is part of a domain. When it is unable to access the domain controller, will it still run logon scripts? Right now, we have a local script that is launched from the run section of the registry that checks for…
Doltknuckle
- 1,244
- 6
- 25
- 32