Questions tagged [logon-scripts]
80 questions
3
votes
1 answer
Overwrite files without prompt with File.CopyHere in logon script (vbs)
I'm trying to create a logon script (vbs) to install some fonts. If the fonts are installed I get a prompt saying "There's already a file with the same name in this location".
How can I force the files to be replaced without the prompt?
My script…

Jonas Stensved
- 223
- 2
- 6
- 17
3
votes
1 answer
When do the user logon scripts run?
I have several user logon scripts defined in active directory. These are batch scripts as well as powershell scripts.
When do these actually run? Does the user see "black terminal boxes" when he logs on, or do the scripts run while he sees the login…

Heinrich
- 900
- 5
- 21
- 35
3
votes
4 answers
What's the modern way to open a URL during logon?
Currently I am using this vbs script during logon to a Windows desktop:
Set oIE = CreateObject("InternetExplorer.Application") ' This creates a Internet Explorer window
oIE.Left = -5000 ' This…

David A Gibson
- 163
- 3
- 7
3
votes
1 answer
Logon VBS script will not start programs
I am trying to have Group Policy run a Logon script for a User OU. The script runs, but the part where it creates a Shell Object to run, it does not load during logon. If I double-click the script, it works as expected - the issue is during the…

Canadian Luke
- 885
- 15
- 44
2
votes
4 answers
Active Directory logon script not updating
I've changed the logon.bat file (on the DC shared NETLOGON folder)
The changes are basically altering the location of a mapped drive.
When users log off, and log back on, they are still being mapped to the old location - is there anything I've…

alex
- 1,720
- 15
- 43
- 63
2
votes
3 answers
GPO or logon scripts to remove access to public "libraries" folders
I have two Windows 2012 R2 Domain Controllers and will be implementing 7 Windows 2008 R2 remote desktop servers once their setup and testing is complete (I have one built now that is my test server). I've set up a group policy that redirects the…

quicksilver
- 23
- 2
- 2
- 5
2
votes
2 answers
Apply GPO to user AD group when using computers in a certain OU
We have a logon-script that copies a number of remoteapp.rdp-files to some users desktops. However these users sometimes also has to connect directly to our terminal server through a remote desktop connection to use certain software. When they…

Chobom
- 33
- 1
- 6
2
votes
1 answer
Slow logon with "Applying your personal settings..." message- only occurs when domain user is member of a security group
Domain user accounts on our network can log in in ~2 seconds when they are not a member of any security groups.
However, this logon time increases to ~35 seconds when the are a member of any security groups, with the following message displaying…

Austin ''Danger'' Powers
- 1,180
- 6
- 21
- 51
2
votes
0 answers
Logon script does not run for all users
We have a standalone common-use workstation running Windows XP Pro SP3 and have created a script using Javascript (scriptname.js) that is to be run for each user. The file was added as a user logon script via gpedit.msc and tested using a newly…

Herohtar
- 121
- 4
2
votes
2 answers
GPO logon script needs admin privledges
I'm using a logon batch script to copy some dll files into the c:\windows\system32 folder and register them with the regsrv32 command.
However, both actions fail.
I'm applying the script here: user configuration\policies\scripts…

Force Flow
- 1,165
- 5
- 23
- 45
2
votes
3 answers
Can I prevent logon scripts in one GPO from executing before those in the parent GPO finish?
According to this article, group policy is processed in descending order through the organization (ie start at forest, then domain, ou, etc). I have one GPO linked to the domain which runs a startup script to delete all mapped network drives; then…

just.another.programmer
- 409
- 2
- 6
- 23
2
votes
2 answers
Can you create multiple separate Active Directory GPO Logon Scripts?
In my active directory I currently have a GPO on the domain object that contains a logon script.
I want to create a new group that I can add users to and have it run an additional / different logon script.
I tried creating a new OU, put the group…

Scott Szretter
- 1,882
- 11
- 43
- 66
2
votes
2 answers
Run script when user logs on or off
I am looking for a way to run a script1 when a user logs in2 AND and when they log out3 on their4 Windows5 machine.
Notes:
Perfect world script would mean Powershell script, but any script or application would be acceptable.
Log in can mean at…

Robert MacLean
- 2,186
- 6
- 28
- 45
1
vote
1 answer
Setup GPO Logon script using powershell
I have my logon script setup in GPO and looks like it wont work.
The script was tested running good.
My question is that do I have to change -ExcutionPolicy on all Client PCs? the target PC I tested against, I setup -ExcutionPolicy Restrict. Then I…

Root Loop
- 902
- 4
- 24
- 45
1
vote
1 answer
User logon PowerShell script not running under Windows 7 or 10
I'm testing out upgrading to Windows 10 on our domain, which is currently based on a Windows Server 2012 DC and all Windows 7 workstations. I was never able to make it work on Windows 7 so I gave up since I didn't really need it, but with Windows…

Gup3rSuR4c
- 661
- 3
- 14
- 29