The logon-scripts tag has no wiki summary.
2
votes
3answers
59 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
57 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
213 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
85 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 ...
0
votes
1answer
261 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
115 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
1answer
117 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
0answers
30 views
Group policy for printers blocks logon script setting?
This is probably a really obvious question deserving a single word in the affirmative but ...
We have a group policy, 'prevent addition of printers', and we also have logon scripts which attempt to ...
1
vote
0answers
27 views
When users login who have been recently moved in AD, they receive the wrong (old) login script
We are migrating our staff to Windows 7 from Windows Vista. We make changes to the users in AD by removing the roaming profile and changing the login script.
For some odd reason sometimes (not for ...
0
votes
0answers
68 views
Copy a folder from server to AppData\Local AD logon script
I have a windows 2008 server, and I want make a LogonOn script that will copy a folder(with contents) from "AppData(Roaming)" to AppData Local.
I tried this code but it won't work.
this is the code:
...
0
votes
1answer
395 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
3answers
234 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 ...
1
vote
1answer
256 views
net use mapping not working in batch files but works in cmd
Ok so here's the problem :
I've got users using logon script in the domain (username.bat). The script simply lists 4 or 5 (net use letter: \\SERVER\directory\). However, when they open their session, ...
1
vote
2answers
524 views
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 ...
0
votes
1answer
139 views
Remotely Remove firewall thats blocking RPC
Here's one for you.
A while ago one of our big clients bought and partially rolled out an integrated connectivity package provided by a large UK mobile provider. The software includes a firewall ...
1
vote
4answers
1k views
NETLOGON scripts not being executed
Each user on our new domain needs to have drives mapped according to a batch file. The problem is, I have a GPO rule set to execute the following command on all domain logins:
...
2
votes
2answers
414 views
Run a Program Without User Being Logged On
I am running a Windows 7 installation, and I want to be able to run an application when there is no user logged in. The reason for this is that my application is a monitoring tool, and we want to be ...
0
votes
1answer
88 views
GPO user script on Win7 doesn't seem to get executed
We recently implemented outlook signature distribution software that requires a script to be run, but because this script has a password in plaintext I decided to convert the script to a .exe file ...
1
vote
1answer
69 views
Help me exorcise my demon possessed logon script
I have a user logon script that copies a file over to a subfolder of the current user's profile path:
Script (only showing the line that isn't working):
copy /Y ...
0
votes
2answers
97 views
How do I get detailed information about what happens during logon
Due to my IT department leaving I am now responsible for all our IT systems. I now have several problems to get my head around and fix.
I run Active Directory on windows server 2003 and use group ...
0
votes
0answers
418 views
Refreshing windows explorer after changing User Shell Folders in login script
I am in the process of converting our login scripts that were in use for windows XP to work on Windows 7 clients.
I have identified the necessary registry keys to change to redirect the User Shell ...
1
vote
0answers
284 views
Logon script on windows server 2008 fails to run
I'm setting up two servers with windows server 2008, one running file, printer and application services, with the other one running Norman Endpoint Security. I've set up a logon script that in turn ...
0
votes
1answer
56 views
Untrusted Location
I've recently switched to roaming profiles in an XP and Windows 7 environment and also changed the login script. Can anyone tell me where I would find the info regarding messages that appear when ...
0
votes
1answer
458 views
Windows roaming profile when creating a new user profile
When a particular user is having a lot of problems with Windows XP e.g. applications crashing, unresponsive applications (which used to work), and as a general troubleshooting practice for a domain ...
1
vote
5answers
810 views
Replce Kix script with Powershell
We are looking to replace our current Kix scripts with Powershell scripts and I was curious how to test group membership to map network drives. Our current kix script basically just does an if ...
0
votes
2answers
985 views
Logon Script, detect network status
I'm wondering if it it is possible to build a logon script, for Windows XP & Vista, that will detect where the user is connected to a particular network (Defined by IP schema). If they are ...
0
votes
1answer
98 views
Logon scripts from linux to linux
I have some linux desktop boxes and I would like to launch different logon scripts depending on which user logs to each computer.
I would like to manage it from a centralized place, like windows gpo ...
1
vote
4answers
1k views
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 ...
0
votes
4answers
584 views
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 ...
0
votes
2answers
422 views
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 ...
1
vote
2answers
243 views
Bat file in another account
I have a bat file which will delete files in some folder (Profile Folder). But i do-not have access to that folder. But another account has access to the folder. How to run a batch file from one ...
1
vote
5answers
276 views
Windows 2003 User folder mapping issue
We have a windows 2003 standard domain server/client network with about 450 users. Each user has a login script that maps shares, and syncs the time to the server. Each user account also has a user ...
12
votes
10answers
42k views
Best way to find the computer a user last logged on from?
I am hoping that somewhere in Active Directory the "last logged on from [computer]" is written/stored, or there is a log I can parse out?
The purpose of wanting to know the last PC logged on from is ...
3
votes
9answers
2k views
What scripting language do you use for your logon scripts in your Windows enviroment?
I wonder what scripting languages is most used as logon scripts these days. Is people still hacking away in batch-file files or vbscripts, or do you use PowerShell or something completely different?
...
4
votes
7answers
4k views
Useful Logon Script Commands
Please post useful commands that you use in your logon script.
Here are some that I use:
map a network drive:
net use v: \fileserver\apps map a network printer:
RunDll32.EXE ...
1
vote
2answers
567 views
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 ...
2
votes
3answers
370 views
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 ...