![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
Create script to install script in scripts\startup in gpeditthis thread has 7 replies and has been viewed 1397 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
#1
|
||||||||
|
||||||||
|
can or how do you create a script that i could run that would install a script in local computer policy\windows setting\scripts\startup?
i have a script installed on startup to map a drive net use A: \\xx.x.xx.xx\xxxx and it works, just don't want to go to each computer and go to gpedit etc.etc.etc. None of the computers are on a domain. |
|
#2
|
||||||||
|
||||||||
|
If your PCs aren't domain members, there's no central security authority they all talk to, so you'd have to log into each machine at any rate, even using RDP with the target PC's admin creds.
How many machines are you talking about? For applying the same setting to multiple machines like this, create the desired policy on one machine, then export that machine's policy as a template (*.inf file) and then import that to each target machine. But the import would have to be done under admin authority on each target. You could try using PSExec to run the 'secedit' command on each PC in turn. PSExec is one of a collection of tools from Microsoft when they bought SysInternals. There's lots of info thru Google about how to use it for remote code execution. |
|
#3
|
||||||||
|
||||||||
|
it might help if i mention that i'm talking about a terminal server that is part of a domain
![]() ![]() Sorry about that. what i meant to say was that none of the computers are part of a domain, they log into ts's. So if a ts client log's in, a script would run only on that clients computer. if i wanted multiple clients with the same script, i assume i would have to have those users to be part of a group. |
|
#4
|
||||||||
|
||||||||
|
It would make more sense to say that this script would run only when someone logs into the TS, right? But should it be running on the remote host or the Term Server itself?
Or permanently set up the A: net path to a particular share from the TS point of view? Not sure what you're ultimately trying to do with the script. TS can be set to attach the drives physically present on the remote host's PC into the remote user's TS session--RDP does it all the time if you want it to. |
|
#5
|
||||||||
|
||||||||
|
sorry for the confusion, if i have 25 users, but split up into diffrent OU'S, and i wanted to run a script for 10 of those 25 users that are spread across those OU'S, could and how would i do that?
|
|
#6
|
||||||||
|
||||||||
|
You have users in a domain structure in different OU's, logging into a Terminal Server from non-domain PCs, and you want a particular script to run on those non-domain PCs based on who the user is (domain group or OU membership)? And you want to set this up in such a way so as not to have to configure each client PC individually? Am I understanding that correctly?
Ultimately, if your PCs are not domain members, Group Policy won't help you. You may get away with giving the TS local admin rights on each client PC to push the script, but you'd still have to log onto each PC in turn to set that up. Maybe copying the script to a location on each client before a session login might help as well so no copy is needed, but there's still the ultimate problem of executing the code when the domain-centric policy says to, on a device that doesn't recognize the authority of that policy. The most certain way I can think of to enforce it is to set up a policy on each client, such that a script runs at each logon, compares the username against a predefined list and executes your script on a match. But on the client PCs I'm guessing the local security is such that it's too easy for that to be altered. And if the groups or names change, that's every client to be updated each time. All hail AD! Sorry I can't offer a rosier picture, but if someone else has a way to solve this, it's gone beyond me. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GPO - Startup Script - UAC Problems | Adam_231 | General Scripting | 3 | 30th January 2012 22:10 |
| Help create script auto install protocol | b:z | General Scripting | 2 | 4th June 2007 15:55 |
| proxy via startup script | tsentekin | General Scripting | 1 | 17th July 2006 00:56 |
| Computer Startup script | PlaySafe | General Scripting | 4 | 24th May 2006 10:18 |
| GP: Computer StartUp script | konchif | Active Directory | 6 | 6th February 2004 01:09 |