HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Windows Server 2003
- >
- Pushing batch scripts across AD
Windows Server 2003
1830192
Members
5044
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2009 02:19 PM
01-27-2009 02:19 PM
Pushing batch scripts across AD
Hi,
I'm in a bit of a pickle and would really appreciate some help.
I'm trying to deploy a batch script across ~100 servers. The problem is if I set the batch script as a startup / logon script, then I have to restart all the computers manually (not an option because of what the servers are used for), or to log in to each system manually (which defeats the purpose of using a script).
As I understand it, I have to somehow convert the batch file into an .msi file to push it out.
OR
To configure some sort of scheduled task in the AD to run the batch script across all systems.
My dilema is I can't solve either of these problems.
Any help or feedback is greatly appreciated.
-Aaron
I'm in a bit of a pickle and would really appreciate some help.
I'm trying to deploy a batch script across ~100 servers. The problem is if I set the batch script as a startup / logon script, then I have to restart all the computers manually (not an option because of what the servers are used for), or to log in to each system manually (which defeats the purpose of using a script).
As I understand it, I have to somehow convert the batch file into an .msi file to push it out.
OR
To configure some sort of scheduled task in the AD to run the batch script across all systems.
My dilema is I can't solve either of these problems.
Any help or feedback is greatly appreciated.
-Aaron
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2009 12:22 AM
01-28-2009 12:22 AM
Re: Pushing batch scripts across AD
Hi,
perhaps of help:
http://www.windowsnetworking.com/articles_tutorials/Managing-Windows-Networks-Using-Scripting.html
A scriptable command to do remote shutdown/restarts of servers - via a batch file for example - would be to use the shutdown command
http://www.online-tech-tips.com/computer-tips/remote-shutdown-command/
But all depends a bit on exactly what task you have in mind. Sometimes you will need more advanced options to make your admin life easier with either Microsoft's http://www.microsoft.com/SMServer/default.mspx or 3.rd party products like http://www.snowsoftware.com/website1/1.0.1.0/53/2/index.php
Cheers,
Rune
perhaps of help:
http://www.windowsnetworking.com/articles_tutorials/Managing-Windows-Networks-Using-Scripting.html
A scriptable command to do remote shutdown/restarts of servers - via a batch file for example - would be to use the shutdown command
http://www.online-tech-tips.com/computer-tips/remote-shutdown-command/
But all depends a bit on exactly what task you have in mind. Sometimes you will need more advanced options to make your admin life easier with either Microsoft's http://www.microsoft.com/SMServer/default.mspx or 3.rd party products like http://www.snowsoftware.com/website1/1.0.1.0/53/2/index.php
Cheers,
Rune
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2009 04:28 AM
01-28-2009 04:28 AM
Re: Pushing batch scripts across AD
Aaron,
Along with the links above, I find PSTools (now Microsoft, formerly SysInternals) very useful. You can check out the suite here:
http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
One of my favorites is psexec, which allow you to remotely execute programs on the destination server/computer. This can be used to open a remote CMD prompt on the server in question, issue your commands (e.g. netsh to change the IP) and exit.
You could encorporate these utilities into a batch file that is executed locally and the changes are made over the network via psexec.
Let me know how it goes.
-Gfuss
Along with the links above, I find PSTools (now Microsoft, formerly SysInternals) very useful. You can check out the suite here:
http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx
One of my favorites is psexec, which allow you to remotely execute programs on the destination server/computer. This can be used to open a remote CMD prompt on the server in question, issue your commands (e.g. netsh to change the IP) and exit.
You could encorporate these utilities into a batch file that is executed locally and the changes are made over the network via psexec.
Let me know how it goes.
-Gfuss
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2009 06:46 AM
01-28-2009 06:46 AM
Re: Pushing batch scripts across AD
Also depending on what you need to do you could use the "AT" command to remotely create a scehduled task on the servers in question:
http://support.microsoft.com/kb/313565
http://support.microsoft.com/kb/313565
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP