Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Kixtart Script Runas Administrator

Posted on 2008-06-12
2
Medium Priority
?
3,359 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:Ralf Klatt
Ralf Klatt earned 800 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Introduction to Processes

730 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