Questions tagged [logon-scripts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
43 views

Pre-configured outlook 2016 profile for domain clients

I have researched using the Spiceworks community and Server Fault but I cannot fine this precise answer. A client approached me with a requirement for configuring an Outlook 2016/2019 profile ...
0
votes
0answers
541 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
29 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
2k 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
94 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
44 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. ...
2
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
5k 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
1k 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
38 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
550 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
188 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 ...
0
votes
1answer
1k 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
87 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 ...
-1
votes
2answers
3k 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 ...
2
votes
2answers
18k 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
215 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
269 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
335 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
391 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
688 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
702 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
16k 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
1k 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 ...
6
votes
3answers
12k 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 ...
0
votes
0answers
263 views

Windows Server 2008 GPO for Logon Scripts

I want to change my GPO to have the User logon script point to a different path other than the default NETLOGON share. I would like to put the script on one of my file server shares with the users ...
3
votes
3answers
3k 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 ...
2
votes
1answer
10k 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
894 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
631 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
920 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
614 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
28k 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
2k 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
934 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 ...
0
votes
2answers
8k 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
617 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
14k 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 ...
3
votes
1answer
2k views

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 ...
1
vote
2answers
2k views

Getting Windows 7 to run Scripts from Other Shares then NETLOGON

I have several Windows Server 2003 Environments I administer. These are separate disparate domains with their own structures and policies. I generalize as much as possible when I administer these ...
0
votes
1answer
2k views

Detect RemoteApp in logon script

I have a fairly basic vbs logon script which currently detects if a user is on a physical desktop or a remote desktop by checking if the %SESSIONNAME% Environment String is 'Console' or not, and then ...
0
votes
4answers
4k views

Setup Printers Based Upon AD Group Membership

I am trying to create a login script for Active Directory that will be used for installing printers on client computers. I have a basic script that we are using now, listed below, that installs a ...