Questions tagged [logon-scripts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
1answer
27 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 ...
1
vote
0answers
50 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 ...
0
votes
0answers
17 views

Startup/Logon Script To Deinstall Google Chrome

We've been trying to use a startup script to deinstall Google Chrome on our machines, which was installed by GPO/manually (directory: Program Files/Program Files (x86) and partially by the users ...
-1
votes
1answer
88 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 ...
3
votes
1answer
193 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 ...
0
votes
1answer
27 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 ...
0
votes
0answers
2k 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\...
0
votes
1answer
213 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 ...
1
vote
1answer
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 ...
0
votes
2answers
144 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 ...
-2
votes
1answer
53 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. ...
3
votes
3answers
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 ...
0
votes
1answer
9k 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 ...
-1
votes
1answer
2k 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 ...
-4
votes
1answer
58 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 ...
0
votes
0answers
711 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 ...
0
votes
1answer
196 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 ...
-1
votes
1answer
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 ...
0
votes
1answer
95 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 ...
1
vote
1answer
2k 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 ...
0
votes
2answers
5k 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 ...
3
votes
2answers
24k 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 ...
0
votes
2answers
225 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 ...
0
votes
1answer
300 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 ...
3
votes
1answer
393 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 ...
0
votes
1answer
517 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 ...
0
votes
0answers
928 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 ...
1
vote
1answer
140 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, ...
0
votes
1answer
826 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 ...
2
votes
3answers
17k 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). ...
2
votes
2answers
2k 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 ...
1
vote
1answer
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 ...
7
votes
3answers
15k 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 ...
3
votes
1answer
2k 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 ...
2
votes
1answer
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 ...
0
votes
1answer
3k 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 ...
3
votes
3answers
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 ...
3
votes
1answer
14k 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 ...
-2
votes
1answer
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 ...
3
votes
2answers
2k 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....
0
votes
1answer
634 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 ...
5
votes
2answers
934 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 ...
2
votes
0answers
631 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 ...
2
votes
2answers
31k 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 ...
3
votes
3answers
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 ...
2
votes
3answers
1k 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 ...
4
votes
1answer
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 ...
1
vote
2answers
9k views

users unable to add registry keys to HKCU

I may not have this 100% correct so need some clarification. Are normal users on a 2003 terminal server allowed to add registry keys the their own HKCU section in the registry, or are they only ...
0
votes
2answers
655 views

VBS Logon Script

Could someone please provide some assistance with VBS scripting? Here is what I have modified so far; Const GROUP1 = "cn=GROUP1" Const GROUP2 = "cn=GROUP2" Const GROUP3 = "cn=GROUP3" Set wshNetwork ...
3
votes
1answer
15k views

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 ...