Solved

Help with logon script

Posted on 2014-04-29
3
227 Views
Last Modified: 2014-05-06
Hi

We have a legacy reporting app (Crystal Distribution 8.5) that relies on DLLs to export data from it to other apps such as Excel.

In XP/2003 the DLLs are installed in the WINDOWS & System32 directory but due to changes that MS made in Vista/2008 and higher the DLLS need to be installed in the user's local profile for the app to work properly.  Example:

C:\Users\user.name\WINDOWS\Crystal

This has been easy to manage for the few users on Win 7 workstations but we are now making the move to Server 2008R2 RDS.  Therefore using a script to put these DLLs in the right place via Group Policy when a user logs on to an RDS server (there will be multiple and they will be load balanced) seems the logical answer.

I am not however an expert on scripting by any means.  I can just about manage a logon script to map a network drive.  Could someone help with:

> A logon script that runs once per server per user that I can deploy with a GPO
> The script needs to create a directory in their local user profile path (as previously mentioned) and copy a list of DLLs to it (or just copy the "WINDOWS\Crystal" folder to their local profile).

Many thanks
0
Comment
Question by:admincbf
  • 2
3 Comments
 
LVL 16

Expert Comment

by:R. Andrew Koffron
ID: 40030717
try adding a path adjustment on login script something like
PATH=%PATH%;C:\WINDOWS\Crystal
0
 
LVL 1

Accepted Solution

by:
admincbf earned 0 total points
ID: 40034177
Hi

I used a Powershell script in the end:

$newfolder = "C:\Users\$env:USERNAME\WINDOWS\"
New-Item -Path $newfolder -ItemType directory #create new folder
copy-item -Path C:\Crystal -Destination $newfolder -Force -Recurse #copy all the files in the folder

Open in new window

0
 
LVL 1

Author Closing Comment

by:admincbf
ID: 40043944
Precise answer
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now