Solved

Is there a way to immediately execute a network-wide script?

Posted on 2009-03-31
2
235 Views
Last Modified: 2012-05-06
Just out of curiosity, is there a way for a network administrator to instruct all computers on the network to run a batch file or a script, IMMEDIATELY (ala, not on logon or boot-up, just during session)?

In my scenario, I just want to temporarily map a network drive to all workstations for a demonstration purposes, and I'd like to just push a "net use X: \\blah\blah" kind of thing to everyone.
0
Comment
Question by:ringo380
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 24030056
You can use PsExec to run local commands on multiple remote machines simultaneously, but this wouldn't work for your particular example since network drives are mapped on a per-user basis and PsExec's commands don't normally run in the user's context.  To do so you'd have to use the -user and -psswd switches and this would require that you know every user's password.  That wouldn't be secure or practical.
0
 

Author Closing Comment

by:ringo380
ID: 31564898
That's pretty much exactly what I was looking for, not to mention an extremely useful program. I had no clue about it, and I appreciate the link immensely. It doesn't quite accomplish the "gpo-equivalent" network-wide thing that I was talking about, but this is about as close as I think I'll get.
0

Featured Post

Does Powershell have you tied up in knots?

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Task Scheduler: Access to an Executable File 5 38
Boot Camp 3 59
Unable to hit site 2 30
Best website to study network, virtual lan, lan switching 3 32
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

733 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