Solved

Kixtart Script Runas Administrator

Posted on 2008-06-12
2
3,276 Views
Last Modified: 2011-04-19
In a Windows 2003 Active Directory environment, how can I get my kixstart script to runas administrator or user with admin rights when executing on client pc's?
See attached Code Snippet.
The "Call" statement below will run a subroutine that changes the location of the client workstation printer to a different print server. I need this script to run on client pc as a user with admin rights.	
;=====================================================================
	; Change default print server if needed.
		If (InGroup(Finance)) = 1 Or (InGroup(IS_Staff)) = 1
	  		Call "@lserver\netlogon\Print_server.scr"
		EndIf
	;=====================================================================

Open in new window

0
Comment
Question by:ei00004
[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 15

Assisted Solution

by:Raisor
Raisor earned 200 total points
ID: 21779675
Hi,

The only secure way to do what you're up to is using the AdminScriptEditor at: http://www.adminscripteditor.com/editor/scriptpackager/

... everything else will force you to leave passwords at maybe unsecure places!


Best regards,
Raisor
0
 

Accepted Solution

by:
ei00004 earned 0 total points
ID: 21901919
Thanks, I was able to create a GPO that allows me to add Domain Users to the local admin group on their local PCs. I accomplished this by creating a new policy, then selecting Edit. Select > Computer Configuration\Windows Settings\Security Settings\Restricted Groups. Right-click Restricted Groups then click Add Group.

Click Browse > select the local computer, then select the group that you want to add to the local Administrators group (in this case, the "Domain\Domain Users" group)  click ADD, and then click OK.

This security rights change also allows me to execute a GPO Logon/Logoff batch file that copies a (.ini) file from a shared folder on the server to a folder on the client PC's C:\ drive.

It also allows the kixtart script to execute properly as administrator and changes the printers on the client pc's from one print server to another.

I know this is not the best secure way because all users are now local admins on all PCs, however this is temporarily running just long enough for the changes to be pushed out. I then can use the GPOs > Computer Configuration > Windows Settings > Security Settings > File System option to change file/folder perms to allow the Domain Users group modify permissions.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reccomended programming language for client-server applications 12 196
backup program with robocopy 6 91
statistics basics sources 2 74
Cannot locate cell 15 42
This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

734 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