[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

Add a batch script... into theire profiel?

Hello,

I'm using Windows 2003 SBS server... All my users use Windows XP... I'm looking to add on the server when the client log in this script to execute on his desktop automatically...


ipconfig /flusdns
ipconfig
Pause

Any idea how i'm able or where is the best place to added ...

Thank you.
0
elieazzi
Asked:
elieazzi
  • 2
  • 2
  • 2
  • +1
4 Solutions
 
luv2smileCommented:
If you want this to apply to all users then the easist thing to do is to implement the script as a login script using group policy. This way you only set it up once and all your users get it. Do you have any experience in setting up group policy?

The other thing you can do is to set it up via each user's individual account in AD.....but again, if you have a lot of users then group policy would be much easier and faster.
0
 
joedoe58Commented:
You can place a batch file on the server here systemroot\System32\Repl\Import\Scripts and then assign you users to use the file you created.
Just a question why you want to run this command?
0
 
elieazziAuthor Commented:
Thank you Both... I have a CISCO Router at work and we're a groupdof 15 person... Due to the Cisco setting the users are not able to access directly the host server... i've created a wwwin. as host... so i want to point them to my internal router configuration...

How i'm able to do it step by step please using Windows SBS server...

Thank you.
0
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
joedoe58Commented:
Well they should be routed to the server. Do you mean that your workstations are not joined to the domain. If not then they will not receive and GPO's, but you should really do that since it will help you a lot.
0
 
theruckCommented:
just create a .bat file with the content
ipconfig /flusdns
ipconfig
Pause

and save it to the /start/programs/startup

0
 
elieazziAuthor Commented:
Is there a way to run this file automatically every one hour on the client desktop?
0
 
theruckCommented:
yes
in the scheduled task create a new task with this bat script.
anyway i can feel you are trying to do something easy by a very very complicated way.
what do you need it for?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now