Skip to main content

Questions tagged [logon-scripts]

Filter by
Sorted by
Tagged with
1 vote
0 answers
70 views

Hiding Script Host error when network path not found

I have a Group Policy logon script that is located at and runs from the NETLOGON share. When a user is off domain and logs on, an error is displayed that the path is not found. This frightens and ...
NetAdmin's user avatar
1 vote
1 answer
2k views

Azure equivalent for logon script or Group Policy to launch programs on user login

We have a tool (portable exe) that runs from an on premises server in a traditional domain that launches on user login via GP (and can also run from logon script). It references a location on the ...
SKidd's user avatar
  • 71
0 votes
1 answer
429 views

AD User logon script on custom server

Is it possible to run user logon script stored on a specific machine in domain, without using GPO? I tried to set logon script for AD user as \\machine.domain.local\share\script.bat or cmd /k \\...
Seriy_A's user avatar
0 votes
2 answers
3k views

Activate and specify logon script without user interaction

I would like to remotely activate a logon script to computers (Win10 and 11) not connected to a domain. I can already remotely deploy software/script/files as admin, for example: I can deploy a logon....
Kintaro's user avatar
  • 13
-1 votes
1 answer
230 views

Logon scrip that kills another user's task

Running a Win 2016 server with one application that can only be used by one user at a time. I have a prioritized user account on the server. When that user logs in, he should always be able to start ...
HenrikGX's user avatar
1 vote
0 answers
558 views

Location of the log for Windows first logon commands

I have PowerShell script that's set up to run as the first logon command via the unattend.xml file. The script actually does run on the first logon but I would like to know if somewhere I can find the ...
Utkarsh's user avatar
  • 11
-1 votes
1 answer
566 views

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 ...
Karl Kunze's user avatar
3 votes
1 answer
2k views

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 ...
Canadian Luke's user avatar
0 votes
1 answer
600 views

Can't find logon script Server Essentials 2012 [closed]

Okay, I know I'm going to sound like an idiot, but I need help! Years ago, I installed Home Server, then later upgraded to Server Essentials 2012. On both of these setups, I have a logon script that ...
IanCaz's user avatar
  • 1
0 votes
1 answer
4k views

windows 10 local logon scripts issues

I am trying to work out how to best use Windows 10 logon scripts on a computer that is NOT domain joined: I know that I can apply a .bat file for 'all users' in this location: C:\ProgramData\...
lee's user avatar
  • 13
0 votes
1 answer
786 views

How to remove folders from "Start-All Programs" by GPO

We have some leftover folders in "Start" - "All Program" on user's Win7 PCs. I am trying to run a logon script to have it removed from C:\ProgramData\Microsoft\Windows\Start Menu\Programs\xxxx. but ...
Root Loop's user avatar
  • 922
1 vote
1 answer
3k views

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 ...
Root Loop's user avatar
  • 922
0 votes
2 answers
263 views

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 ...
Andy Peterson's user avatar
-2 votes
1 answer
78 views

Special user account for logon script only [closed]

How can I create a user account which can logon to a domain and only be able to let the logon script run (netlogon) and then log out automatically? This user needs to be as restricted as possible. ...
WatskeBart's user avatar
3 votes
3 answers
4k views

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 ...
Docschnitzel's user avatar
0 votes
1 answer
12k views

Why is the Environment variable ClientName not updated during logon script?

I run a powershell logon script when opening RDS session on Windows 2012 R2 Server. I also run a powershell script in startup folder. When asking for CLIENTNAME environment variable in the logon ...
Dric's user avatar
  • 61
-1 votes
1 answer
3k views

VBScript MID function - Invalid procedure call or argument - Code 800A0005

I've created a VBScript that aims to change folder share names on a server. This is currently running as a logon script for my test users. I've defined this function: Private Function ...
DSKyo's user avatar
  • 153
-4 votes
1 answer
67 views

How can i set premissions in logon script? [closed]

I created a logon script which mounts a few network drives on each user account. My question is how could i permit it that when i want the give one Special user the permission to get a Network drive ...
Paul98's user avatar
  • 31
0 votes
0 answers
873 views

Map a shared drive through GPO/GPP on a Windows 10 machine that is not part of an active directory domain

I have a Windows 2012 R2 domain controller running the most recent version of Active Directory. I have 17 client computers (desktops and laptops), most are Windows 10 and some are Windows 8 or ...
stumped221's user avatar
0 votes
1 answer
277 views

Running Net Stop unelevated

First of all, this is one of those borderline questions between serverfault and superuser. In the end, I decided it belonged here because of the fact that most aspects of it revolve around a domain ...
Naryna's user avatar
  • 271
-1 votes
1 answer
2k views

Robocopy logon script - copy all files, except 1, unless it doesnt exist

Currently have a GPO that calls a batch file at logon, that copyies files from one folder to another: Robocopy "C:\logon" "X:\user1" /mir /r:1 w:1 Exit This overwrites all the files in the ...
soMuch2Learn's user avatar
0 votes
1 answer
192 views

When using RDP to log into a remote domain do my local domain logon scripts apply?

I've been asked to set up a user on our network with RDP access to a RDS server on a remote domain. We have set up the VPN just fine and the remote RDS server is reachable. The issue thus far is that ...
Digital ink's user avatar
1 vote
1 answer
3k views

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 ...
Gup3rSuR4c's user avatar
0 votes
2 answers
7k views

Run Log-on Script with Admin Rights

I created a batch logon script that checks and removes old versions of a specific piece of software and installs the newest version. Both the install and uninstall process use an .EXE file. The script ...
iFetus's user avatar
  • 13
3 votes
2 answers
29k views

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 ...
SimonS's user avatar
  • 807
0 votes
2 answers
238 views

Accomplishing the task of mapping a drive to user logged in as

I've searched for this and found bits and pieces but I think this question would be specific enough that I want to make sure I get it correct. So what I'm wanting to do us to unify all our different ...
user309575's user avatar
0 votes
1 answer
345 views

set login script flag for vbs 'All Users' script so it doesn't run again

We have a vbs All Users script that creates a bunch of printers (approximately 25 printers) when a user logs on. It takes a minute or two to run so we don't want it to run again if not necessary. How ...
mindmischief's user avatar
3 votes
1 answer
494 views

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 ...
Dmart's user avatar
  • 294
0 votes
1 answer
687 views

Local logon script - check group membership and action

I need some help for a side project I'm working on. I hardly deal with any scripting so I thought you guys could help me out. The script should follow this algorithm: check if user is a member of -AD ...
userfault's user avatar
0 votes
0 answers
1k views

EnableLinkedConnections for standard users

I've been having some difficulties with seeing local network maps using logon scripts on Server 2008 R2. For the sake of this conversation, I have two users, one is the domain administrator account ...
prelic's user avatar
  • 339
1 vote
1 answer
146 views

Looking for Ideas and reasons to move from a single log on script to Group Policy

So currently our senior VP in IT has a single log on script that is run via ADUC and does things like install 3rd party updates, maps networked drives, inventories computers, copies files to desktop, ...
Ericrobert's user avatar
0 votes
1 answer
865 views

Show logon process on windows 8

I'm experimenting with server admin on windows 2008 since I started a new tech job and want to learn things. I'm using a windows 8.1 pro client computer. The question is, is there any way to show the ...
Auron5500's user avatar
2 votes
3 answers
18k views

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). ...
quicksilver's user avatar
2 votes
2 answers
3k views

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 ...
Chobom's user avatar
  • 33
1 vote
1 answer
2k views

How to map drives to a specific user (rather than security group)?

We use a logon script to map drives for our domain users based on their security group membership. Here is an excerpt from the script, showing how anyone in the "_development (W)" group automatically ...
Austin ''Danger'' Powers's user avatar
8 votes
3 answers
17k views

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 ...
Matthias Güntert's user avatar
3 votes
2 answers
3k views

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 ...
David Gard's user avatar
2 votes
1 answer
2k views

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 ...
Austin ''Danger'' Powers's user avatar
0 votes
1 answer
4k views

Win 2008 Group Policy : Does Drive Maps (GPP) run before Logon Script setting? Both user configs are set within same policy [duplicate]

I'm on Win 2008 R2 DC with XP and Win7 desktops. On one of User GPOs, there is Drive Maps and Logon Script configured. Drive Maps are under GPP, and Logon Script is under user config. Both user ...
WJR's user avatar
  • 341
3 votes
3 answers
4k views

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 ...
Hagen von Eitzen's user avatar
4 votes
1 answer
18k views

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 ...
RBarryYoung's user avatar
-2 votes
1 answer
1k views

Which scripting language to use to asynchronously ssh into equipment, run several commands, parse the output, and save to a file on my computer? [closed]

There are several points I'd like to stress in my question. I'd like to login by asynchronously ssh'ing into our infrastructure equipment. Meaning, I do not want to connect to only one device, do ...
Fujin's user avatar
  • 195
3 votes
2 answers
3k views

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....
Jean-Philippe Blary's user avatar
0 votes
1 answer
645 views

Drive mappings being lost overnight

I have an interesting problem. I have a Server 2003 environment, with a Windows XP computer that continually loses its drive mappings overnight. No other users report this problem. The user reports ...
Daniel's user avatar
  • 41
5 votes
2 answers
1k views

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 ...
Chris Charge's user avatar
2 votes
0 answers
646 views

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 ...
Herohtar's user avatar
  • 121
2 votes
2 answers
35k views

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 ...
Force Flow's user avatar
  • 1,167
4 votes
3 answers
4k views

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 ...
Doltknuckle's user avatar
  • 1,274
2 votes
3 answers
2k views

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 ...
just.another.programmer's user avatar
4 votes
1 answer
2k views

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 ...
makerofthings7's user avatar