[Last Call] Learn how to a build a cloud-first strategyRegister Now

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

GPO startup computer script

I'm having problems with a GPO computer startup script to copy a batch file to the local 'all users' startup folder. The batch file executes fine locally.

Environment:
AD 2003 functional level
ServerX = Windows 2003 R2 DC Operations Master (RID, PDC, Infrastructure, schema, domain role), DNS
ServerY = Windows 2008 R2- secondary DC, DHCP server, backup DNS

I was hoping someone could give me a step-by-step for creating and testing the GPO, as I seem to be missing something.

This is the contents of the batch file:

xcopy \\ServerX\tmp\cah.bat "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\" /y

Thank you for your time.
0
MRH-ITS
Asked:
MRH-ITS
  • 3
  • 3
1 Solution
 
Cliff GaliherCommented:
If the batch file runs fine locally then it is likely a permissions issue. Keep in mind that startup scripts run as the local computer account, so both share and NTFS permissions need to allow that computer account read access for the file to be copied.
0
 
Neil RussellTechnical Development LeadCommented:
IF you put your cah.bat file into the NETLOGON directory on your AD controller(s) then you will more than likely solve the problem.  Then just use:-

xcopy \\DOMAIN.NAME\NETLOGON\cah.bat "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\" /y
0
 
MRH-ITSAuthor Commented:
I've tried putting the batch file in the netlogon directory on ServerX, but to no avail.
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!

 
Neil RussellTechnical Development LeadCommented:
Quick question... Why are you not using Group Policy to deploy the file directly? Its much easier.

Have a read.  http://www.group-policy.com/gp%5Cshortcuts.smp
0
 
MRH-ITSAuthor Commented:
I've tried to, but it's not working for me. Also, the link you referred me to does not seem applicable to Windows server 2003. Unless I'm missing something.
0
 
Neil RussellTechnical Development LeadCommented:
You stated you have BOTH 2003 AND 2008R2 servers in the domain.  You use the GPO Management on the 2008R2 server to configure the GP's and you can then follow that link.
0
 
MRH-ITSAuthor Commented:
That did it. Thanks!
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

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