The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
302 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
111 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 ...
2
votes
3answers
3k 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
136 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
490 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
584 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
113 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
746 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
3k 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 ...
-3
votes
1answer
417 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 ...
2
votes
2answers
242 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 : ...
0
votes
1answer
288 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 ...
4
votes
2answers
517 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
414 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 ...
1
vote
1answer
6k 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 ...
1
vote
2answers
631 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
365 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
861 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
4k 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
266 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 ...
1
vote
1answer
6k 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
569 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
826 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 ...
1
vote
0answers
44 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
1answer
1k 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
1k 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
2answers
2k 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
2k 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
376 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
7k 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
12k 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
132 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
88 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
155 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 ...
1
vote
0answers
447 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
433 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 ...
-1
votes
1answer
528 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
2k 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
1answer
1k 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
126 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 ...
2
votes
4answers
4k 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
1k 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
816 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
399 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
338 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 ...
15
votes
11answers
98k 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 ...
5
votes
9answers
3k 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
9k 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
975 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 ...
3
votes
3answers
1k 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 ...