Questions tagged [logon-scripts]
80 questions
0
votes
1 answer
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 with login script, it runs on user, so it has no…

Root Loop
- 902
- 4
- 24
- 45
0
votes
2 answers
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 Area Connection" source = static addr =…

Andy Peterson
- 31
- 1
0
votes
1 answer
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 script, I get the previously opened session client…

Dric
- 61
- 1
- 3
- 11
0
votes
0 answers
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 Windows 8.1. I also have this NAS that does NOT…

stumped221
- 23
- 5
0
votes
1 answer
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 environment.
As another Caveat, this is a very…

Naryna
- 271
- 1
- 3
- 13
0
votes
1 answer
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 when the user attempts the RDP connection they…

Digital ink
- 500
- 1
- 10
- 23
0
votes
4 answers
Change Location of Mapped Drive using VBScript at Logon
I have a script, applied by group policy, that runs at user logon to remove specific mapped drives if they exist and then remaps them. Here's an example of the script:
Option Explicit
Dim WshNetwork, objUser, objNetwork
Dim strRemotePath1
Dim…

pk.
- 6,451
- 2
- 42
- 63
0
votes
2 answers
Check for the presence of a printer connection (unreliable printer mappings)
I have a lab area with about 75 XP boxes in it. At logon, we map two served printers with the AddWindowsPrinterConnection method in a VBS. 5-10% of the time, the users find that the printers have not mapped successfully and their print jobs fail. …

Doug Chase
- 753
- 3
- 12
- 22
0
votes
2 answers
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 works great if the user is an administrator, but…

iFetus
- 13
- 1
- 5
0
votes
2 answers
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 divisions mapped drive letters so every user is…
0
votes
1 answer
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 can I set some sort of flag so that this script…

mindmischief
- 172
- 2
- 2
- 9
0
votes
1 answer
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 group-
if positive force logoff
if negative…

userfault
- 23
- 3
0
votes
0 answers
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 admin and the other is a standard user user who…

prelic
- 319
- 1
- 4
- 17
0
votes
1 answer
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 logon messages like "please wait for the user…

Auron5500
- 1
- 1
0
votes
1 answer
Win 2008 Group Policy : Does Drive Maps (GPP) run before Logon Script setting? Both user configs are set within same policy
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 configs are set under one group policy.
How can I…

WJR
- 341
- 1
- 4
- 17