Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2221
  • Last Modified:

Login scripts through Active Directory

I have a login script that I would like every workstation to run whenever a user logs on.  I go into Active Directory and assign the login script to my Workstations OU, yet the login script never seems to run.

I've done GPUPDATE on my computer to be sure I was using the most recent user policy on the computer.  I've even tried putting the script in the startup section of the machine policy.  No luck.  I know the script works because when I double click the BAT file on my computer, it runs just fine.

Maybe I'm leaving something out.  The program I am trying to run does not require admin rights or anything.

Here's a copy of the script. (It's just one line)

\\brannmedia\aida32$\AIDA32.exe /R \\brannmedia\aida32$\reports\audit\$HOSTNAME.csv /csv /AUDIT /custom \\brannmedia\$aida32\aida32.rpf /SAFE /SILENT

Also, my AD runs on Windows 2000
and my workstations are windows XP.


0
flood_land
Asked:
flood_land
1 Solution
 
flood_landAuthor Commented:
Oh yeah.  I also made a simple login script just to see if my workstation was even pulling the script.  No luck.  It didn't do anything.

echo test
pause
0
 
crissandCommented:
It looks like a login script that can run only on user, not on machine account. Have you tried to assign the login script to users ou?
0
 
flood_landAuthor Commented:
I just applied it to an OU that contains user accounts and it still didn't work.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
Debsyl99Commented:
Hi

Have you checked security permissions on the group policy attached to the ou that authenticated users are checked to apply group policy?

Deb :))
0
 
crissandCommented:
That's not good. I suppose all computers are joined to the domain. Let's debug. Add a pause line on the script after your lines and enable in GPO to run logon script visible and synchronous. Enable Always wait for the network at computer startup and logon
0
 
EricIT ManagerCommented:
Have you tried putting it in the domain root in ADUC??  check no override etc..

veryfiy either authenticated users or domain users or whatever had "read" permission and "apply group polcy" checked.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now