[vbscript] Adding Domain User To Local Admin

Jan 17, 2013

I'm trying to run a script at the end of sysprep that will add a Domain group to the local Admins group. I found a few scripts while searching around, but none will work for my application.

This is what I have so far.

Code :SET objNet = CREATEOBJECT("WScript.Network" )' Set the user you want to make local administrator herestrUser = "<username here>"strNetBIOSDomain = objNet.UserDomainstrComputer = objNet.ComputerNameSET objGroup = GETOBJECT("WinNT://" & strComputer & "/Administrators,group" )SET objUser = GETOBJECT("WinNT://" & strNetBIOSDomain & "/" & strUser & ",user" )' ignore error if user is already a member of the groupON ERROR RESUME NEXTobjGroup.Add(objUser.ADsPath)ON ERROR GOTO 0

The problem I'm having is that I need to be able to provide a username and password of a domain admin so that it can authenticate. how to do this when I try to add the user.

View 4 Replies


ADVERTISEMENT

RPC Error Adding Domain Users To Local Admin Group

Apr 23, 2012

DC: Win Server 2003
Laptops: Win7 Pro

When joining a set of laptops to the domain it prompts for domain admin credentials and appears to be successful, but gives an error of 'Changing the Primary Domain DNS name of this computer to " " failed. The name will remain domain.local The error was: The RPC Server is unavailable.

When attempting to add Domain Users to the local administrators group: Windows cannot process the object with the name "domain users" because of the following error: The RPC server is unavailable.

This happens even when wired on the network. I have tried uncommenting the localhost line in HOSTS, and manually adding the DNS server (which is also the DC).

View 4 Replies View Related

Adding Domain User To Admin Group?

Jan 16, 2013

How can I add my domain user to administrators group when I am logged in with same domain user ID.

View 9 Replies View Related

Strange Defult Login User Prompt - Local Admin, Not Domain User?

Jan 17, 2012

So a new box recently built, when booted, defaults to the local administrator account.This is a Windows 7 machine for a Linux guru that doesn't want to be bothered pressing more buttons than is necessary, if you get my drift. So my question is, after pressing Ctrl+Alt+Del...how do I dictate to Windows that the preferred used is "HisDomainAccount" on our company domain, as opposed to the local admin account?

View 1 Replies View Related

How To Make Domain User As Local Computer Admin

Apr 19, 2011

I want to make domain user as local admin on his system which he logged in on windows 7. How can I perform this?

View 5 Replies View Related

How To Make Domain User As Local Computer Admin

Sep 17, 2012

actually i put a server,and to create one system as a domain member , that was not installed properly that why i delete this active directory and reinstall and to make a domain members except that system

View 1 Replies View Related

Assigning "domain User" To "local Admin" On Select PCs?

Dec 17, 2009

I'd like to assign a few select "domain users" to be local admin over their test machines which log into a domain. The test machines are Windows 7 64bit and the domain is Win2k8 R2.

View 8 Replies View Related

Can't Login To Local Admin Account After Joining Sbs2008 Domain

Jan 17, 2011

we upgraded from sbs2003 server to sbs2008 server. We removed the pc from the old domain and then added it to the new domain. Something went wrong after we joined the new domain it doesn't see the new domain for login and the local Administrator account has been disabled. The only account available is the guest account. Is there a way to enable the local administrator account again?

View 4 Replies View Related

Corrupt User Profile When Removing And Adding Computer To Domain?

Nov 23, 2011

We have removed a computer from the domain because of some network issues.When we logged in to the computer as a local administrator we've noticed that the user folder of the domain user who was previously logged to that computer was almost empty(except for the appdata folder).When we joined the pc back in the domain the computer made a new profile.Unfortunaly the user did save some documents on his dekstop in the old profile.

View 2 Replies View Related

Allow Local Admin For User?

Oct 24, 2011

I just installed a W7 system for one of my users and I want him to be local admin. I cannot for the life of me figure out how to do this. How do I do this?

View 6 Replies View Related

User With Local Admin Wrights And The Builtin Administrator?

Jul 7, 2010

what is the difference between a user, who is member in the administrator group and the built in administrator.and is there a possibility to grow up a user to a built in administrator

View 1 Replies View Related

GPP Adding Printers Slow, Vbscript Hit And Miss

Sep 20, 2010

Got a real issue with Windows 7 and printers,

We used a vbscript in the past to add to shared printers which worked great in XP, however that same vbscript is very hit and miss in a domain environment whereby sometimes printers map, sometimes they don't.

So i moved to using Group Policy Preferences, and that killed the logon speed, the duration is as much as 5-6 minutes to logon.

View 2 Replies View Related

Automatic Adding Of A Domain Name When Authenticating?

Mar 21, 2011

Not sure if this is where I should be posting this. Please redirect me if there is a better forum that I should use.I use my own laptop while working as a contractor. I am running Windows 7 ultimate x64 Sp1. The laptop uses homegroup to connect to other PCs whilst at home.To access network devices whilst at work I use the Cisco VPN client to attach to their network. This works great for most things I need to do, however,.If I need to access a shared directory on one of their servers the authenication window that appears.automatically adds my laptop name as a domain name. As this is not the domain of the server I fail to authenicate. The added domain name is not in the username box as in previous versions on windows but appears in the text part of the dialogue box so I cannot delete it.Is there any way that I can stop this from happening adn gain access to the files I need without resorting to a friendly staff member and a USB stick?

View 2 Replies View Related

Adding Admin Priviledge In Windows 7?

Aug 24, 2012

A win7 os was loaded with a user created that has support priviledges and not ADMINISTRATOR rights,this has made it impossible 2 do any administrative functions on the system.I have tried to activate the administrator without success

View 3 Replies View Related

Cannot Change Disk From C: To V: With Admin Right On A Domain Network

Sep 4, 2012

when i log on to a employes PC, and run an elevated CMD(admin) and type my admin logons. on the same doamin we both are belong to.

then i dont get allow to change from disk C: to disk V:.

but if i rin a normal CMD then i can change disk. but then i dont get the rights to install a script. i change disk by typing V: dont work

i have seen that some type cd /D V: - <-- what does the /D stands for?

View 2 Replies View Related

Stuck Without Admin Password Or Ability To Connect To Domain

May 16, 2012

I have a laptop that has been attached to a domain that is no longer available. It will not let me logon any other way but a non admin / non domain user account.

Admin password is lost. Can I use something like Nordahl to access that admin account? Domain or not?

View 7 Replies View Related

Admin User Changed To Standard User Startup Programs?

Oct 31, 2012

I changed a user from admin to standard after creating a new admin account. When I boot into the standard user, I am prompted by UAC for the admin password for 4 programs to start. All the programs are ASUS utilities that came with mymotherboard.I have checked the permissions of the programs and the User group has full control.Also, these programs do not show up in the MSCONFIG startup tab. I want the utilities to run but do not want to have to authenticate every time I boot

View 10 Replies View Related

Admin User Has No Admin Rights?

Nov 26, 2012

My problem is that even though I have only one user account defined on my machine and it is set to "Administrator" it is not being allowed to do admin types of things like deleting folders. I tried to create a user group but that's not an option on the Win7 Home Premium version that I use. How can it be that the sole account is not the admin even though it shows that it is in the account user setup?

Tech Support Guy System Info Utility version 1.0.0.2
OS Version: Microsoft Windows 7 Home Premium, Service Pack 1, 64 bit
Processor: Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz, Intel64 Family 6 Model 37 Stepping 5
Processor Count: 4
RAM: 3890 Mb
Graphics Card: Intel(R) HD Graphics, 1721 Mb
Hard Drives: C: Total - 476837 MB, Free - 424790 MB; E: Total - 476937 MB, Free - 381321 MB;
Motherboard: TOSHIBA, NALAA
Antivirus: Lavasoft Ad-Aware, Disabled Microsoft Security Essentials in use

View 1 Replies View Related

Cant Logon As A Local Admin

Jun 22, 2011

i need help on my window 7.i cant logon as a local admini....it is asking for computer name and user name..i created the computer name but no user name and i can logon to it before i join it to the domin

View 1 Replies View Related

Getting Access To Local Admin?

Nov 1, 2012

So, I had to send my original schoolcomputer in for repairing. My, very rude, I might add, IT-staff at school did not include local admin for the temporary computer. I did try to ask him for local admin, as I need to change certain network-settings in order for my update my network-drivers.When asking the IT-staff for local admin, reasoning with the fact that I cannot access the internet properly due to the drivers not being uptodate, they simply wrote me off, saying that I didn't need it. They did, however, challenge me get local admin, claiming that they wouldn't care as long as I didn't cause any harm to the computer.I have a normal local user, connected to the schooldomain. It is still connected to the domain-name after leaving the schoolnetwork, where my username is DOMAIN\username. I am not able to access BIOS, do any changes in group policy or system32, and naturally, all the CMD-commands we did at junior high when we were twelve does not work. The BIOS is set to automatically boot from the HDD; thus any tricks involving .iso files and CD/USB-drives will not work.

View 3 Replies View Related

AD Domain And User Profiles?

May 30, 2012

I get an message that says my profile is not loaded correctly after logging into AD Domain or my account sometimes takes forever to log onto AD Domain.

View 1 Replies View Related

Adding User Accounts?

Jan 11, 2011

I have a laptop with Win 7 Home Premium, and one user account with administrative rights. Now, I would like to add two standard user accounts. How would I do that?I have experimented with copying over User files and folders, but I have really no idea what I should copy, if anything at all.

View 2 Replies View Related

Batch File To Run MMC As A Different Domain User?

Oct 27, 2010

I have a batch file that I used on XP to run an MMC that I created for common management tasks. In the MMC I have the ability to run regedit as a root forest domain privileged user (for remote system registry editing), password resets (using AD) remote computer management, and several web links for common sites the team uses. I did this so it was all in one place and it worked awesome in Win XP. When I run the batch file it reports that the directory could not be found.[CODE]

I have verified that runas is in the same place as in XP, as well as MMC. I have run the batch file with elevate access as well as run the command prompt with elevated access (in fact that was copied from an elevated command prompt). The account I'm running it on has admin rights on the box, though UAC is set, I own both the account this was run from and the "root forest" privileged account, this account is NOT a domain admin.This is all being done on Win 7 Pro in a large enterprise domain environmentthis batch file worked and still works on Win XP in the same environment.

View 4 Replies View Related

Domain User Doesn't Save Locally

Jan 4, 2010

I'm in the midst of implementing Windows 7 Professional in a high school. Currently I'm running a Win2k3 R2 active directory where each machine has its own login. I created my cloned image and replicated it to several student computers to test. For some reason on only 1 of the machines it won't save any domain user's profile information to the hard drive in the user folder.

View 5 Replies View Related

Lost Files After Domain / User Name Change

May 4, 2012

Whilst trying to join the local homegroup network, I found out the issue was that my WORK laptop was connected to a domain & unable to share files because of being connected to this EX company domain/network.Naively, without first checking consquences, disconnected from the WORK domain & made the computer use for home & renamed it. Upon doing so, was asked to re-boot.On re-booting, the adminstator login password had resorted back to the one when setup originally?? As my normal password was not being accepted. I must add - I NO LONGER WORK FOR SAID COMPANY AND HAVE NO WAY OF ACCQUIRING PASSWORD/NETWORK/DOMAIN ACCESS DETAILS ANYMORE!I then used the windows password unlocker tool (£20 paid) to gain access back to my laptop. Obviously now realising a lot of very important information, emails, all desktop icons & file locations were no longer where they were supposed to be I spent an hour searching everywhere... The hard drive is still saying it has 150gigabyte of use & certain files display more data in 'properties' than is actually displayed in the folder itself.After doing a little research it looks like all my files, emails etc are in this imaginery 'domain' that I am now unable to access at all & no longer have the details to re-join again! A few files are still dotted around where they are supposed to be but a lot no longer accessable.With no access details to re-join this domain, is there any way AT ALL of re-claiming these files?

View 1 Replies View Related

The User Profile Service Failed The Logon On Domain

Dec 14, 2011

I have the same issue the other user mentions. I can log on as a domain admin, but not as a domain user. There are only 4 profiles in the registry, with no .bak extensions:

1 is the default user
2 is the localservice account
3 is the networkservice account
4 is the local "Administrator" account

I was assuming the problem was with the default user, so I followed the article previously mentioned, and changed the RefCount from "1" to "0", and the State was already set to "0". I am still unable to log in with any domain account except for domain administrators.

View 2 Replies View Related

Deleting Domain User Accounts, Profiles, And Files

Mar 12, 2010

Im a new user of Windows 7, just turned it on for the first time a few days ago, but Im pretty familiar with the setup since Ive used Vista for over a year now. This Windows 7 machine that I just turned on a few days ago is a new work machine for another employee here at my place of work. Ive gone ahead and already added it to our domain, and I�ve signed onto it using multiple user accounts that were created in our Active Directory. My question is, how can I go about deleting those Domain User Accounts, Profiles, and Files off of this Windows 7 computer? Ive already made the mistake of deleting the user folder in the C:Users folder, just to find out that if I deleted a user and tried to sign back on as that user (thinking it would create a new profile folder in C:Users), it created a temporary profile.

In the past when using XP all I would normally have to do is delete the user profile folder in C:Documents and Settings and I was able to sign back in as that user and have a new profile created.

View 4 Replies View Related

How To Create New User On Existing Domain In Windows 7 64bit

Sep 5, 2012

I have an issue merging an user to an existing domain on my windows 7 ultimate 64bit OS. let me explain my problem in detail. I am using almost 20 computer connected to my domain successfully those computer are using windows 7 32 bit. Now i trying to connect this 64bit OS to my domain. I created user account. When I try to mention the domain it is giving the error message that " The Domain is not available ". Also while I was creating the use account, I saw the entirely an different wizard for user account. There I was not able to mention the domain name. I was wondering weather I need to change any views or I need to change any settings. I don't know.

View 6 Replies View Related

How To Find User Account Password In Windows 7 In Domain

Oct 22, 2012

How to find user account password in windows 7 in domain

View 4 Replies View Related

Will Adding A 2nd Network Card Improve Local Network Transfer Speed

Jan 23, 2013

This sounds really noobie of me but is it possible to improve local network transfer speed by adding a 2nd network card. I was planning to connect one exclusively for lan transfers and another one hooked to a separate wireless router.

Right now only a maximum of 3 users can stream SD videos off the PC before it gets a little choppy.

The pc in question runs on windows 7 and it's board has built in gigabit, I happen to have a spare gigabit card.

View 9 Replies View Related

Switching To New Domain Emptied All Folders Inside User Profiles

Jul 2, 2012

I work at a company and we are in the process of upgrading our network, and switching to a new domain. When we switched one laptop to the new domain, it emptied all the folders inside of the user profiles. The folder with the users name still exist but the desktop, music, document, etc. are completely empty. Where the files could have gone? I am baffled by this. It worked fine on the other 100 computers except this one.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved