VBS Startup Script

I have a VBS script that installs printers with a default printer setting. The script works when I add it to my local computer startup folder. I want to apply the script to a GPO to computers that are in an OU. I setup the VBS in the GPO under computer config - policies - windows settings - startup.

It is not working. The GPO is showing up under gpresult /r.

any ideas?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeremy WeisingerSenior Network Consultant / EngineerCommented:
Is it installing local printers or shared printers? What version of AD are you using? It would be easier to manage and deploy printers using Group Policy Preferences instead of scripts.
Gabriel CliftonNet AdminCommented:
There are a few possibilities and hard to troubleshoot without seeing the script.
1) You have made a script that installs printer per user and you have the script running at windows startup before users a logged in.
2) Permissions issue

There are more possibilities, but lets start there. But it is best to use GPOs for the install and configuration of printers with the use of a print server will make it easier to manage.
bbayachekAuthor Commented:
AD 6.1

I just figured out that when I apply the script it was running on user.

This is what we are trying to do.

We want to install printers via GP by computer config and not user. We do not want to use loopback. We can install printers via GP by computer config but cannot set the default printer. If there is a way to set default printer based on computer config, that would work for us.
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Jeremy WeisingerSenior Network Consultant / EngineerCommented:
It's a per user setting and cannot be set globally. You either need to use loopback processing or let the users choose.

Why don't you want to use loopback processing? Or GPP?
bbayachekAuthor Commented:
We were told that lookback cause slow login times.
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
It all depends on the policy settings. All loopback does is merge (appended the policies to the list of user policies to apply) or replace (removes the list of user policies to apply and adds the relevant list according the GPO links).
bbayachekAuthor Commented:
if we use loopback does the other settings from a GPO above user or computer settings get disabled?
bbayachekAuthor Commented:
So merge should run quicker than replace?
Jeremy WeisingerSenior Network Consultant / EngineerCommented:
No, generally replace would be quicker since it's applying fewer policies but we're just talking about applying policies. It completely depends on the settings in the policies and how many you need/want to apply. The loopback processing just appends to or replaces the list of policies the user applies. So it is not a burden if you're going to add the policy to a user one way or another,

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.