VM Template bypass Local Admin Password, can it be done?

I was curious to know if there was a way to create a VM from Template in VMM without having to supply a password in the OS Configuration properties? I know that if we leave that field blank normally, when the VM creation occurs, it will get to about 98%
and hang. When you "Connect via Console" option, it is sitting at the screen asking you to supply a password, then the installation finishes, and the VM is ready to go. We are trying to set up VM Templates in SCVMM 2012 R2 that are going to be more
or less a user self-service situation. We have several powershell scripts that automate nearly 100% of our admin tasks for us, and in the VM Template, there is a simple batch file that copies down a directory, and launches a script and away it goes. After
10-15 minutes, the Hyper-V VM is joined to our domain, page file virtual memory is set based on specs of VM, WSUS is connected and all updates applied since template creation, etc etc etc...
Our goal is to have the server log on after creation from a template, run the bat file on the D:\ drive, and go completely untouched from start to finish. The Local Administrator account is renamed and given a new password as part of the setup postload scripts.
But the only way to get the VM to do this is by putting in an initial password in the properties of the VM. How can we create a VM from template without supplying any password? So that once SCVMM creates the powered off VM, the person who created the VM powers
it on, and then after their 15 minute break, have a server joined to the domain and ready for them to log into.

Thank you for the reply, I appreciate it.
I wasn't as clear as I should have been, reading over the initial post I see that now. We have these set up as Service Templates. There is a hardcoded Admin password already supplied in the Machine Tier properties so it does allow from start to creation
a VM. But then none of the scripts we have set under the "Run Once" property of the configuration will run until an initial logon is provided, then the scripts kick off, the VM reboots twice and 15 minutes later....voila! Server ready to go. It was that initial
logon we were wondering about bypassing.
The basic process goes as such:
1) Service Template launched with "Deploy" option in App Controller or SCVMM
2) VM Guest syspreps from Machine Tier VM Template and configuration, a local admin password is provided, and VM powers on when complete.
3) VM Guest stays powered on until local admin hits cntrl+alt+del, provides local admin password
4) Run Once configuration kicks in, reads the "Auto_script.bat" file from root of D:
5) Scripts join VM Guest to domain, uses domain credentials, runs a whole series of tasks, removes the domain credentials, reboots server.
6) Server is now ready for customer to log on to and use, fully updated, on the domain, based on service template used also with the appropriate roles and features configured (File Server, IIS, etc).
It's that step 3 we are hoping to get around somehow with scripts or whatever so that when the VM guest is powered on after creation, something other than the end user or us cntrl+alt+del the OS, logs on with admin password and fully automated deployment
occurs from A-Z

Similar Messages

  • Windows 7 computer outside the domain and no local admin password

    if you google "Ashur Disk" I have created a Winpe toolkit very easy to use and free just put it on a USB and you are good to go.

    Hi guys,
    My sysadmin took a win7 box outside the doman, thinking that he remember the local admin password but he did not. PSTools gives me access is denied.
    Any other tools that may work?
    It's a 7pro 64-bit
    Thanks!
    This topic first appeared in the Spiceworks Community

  • Windows 7 deployment- Local Admin password not working, no way to assign domain admins

    I have SCCM 2012 configured for OS deployment of a Windows 7 64x enterprise image. I am using boot media (cd) since PXE boot was not an option in this office. Deployment seems to work fine except that despite selecting "Enable the account and specify
    the local administrator password" I cannot login to the imaged system as Administrator. I tried several different passwords, and leaving the password field blank. Because of this I cannot add the domain admins as local admins and thus I cannot change
    any major settings on the PC. I have created multiple task sequences, redeployed the source files, tried two different machines (a desktop and a laptop) and have disabled or adjusted just about every part of the task sequence at least once.
    I'm pasting a recent SMSTS.log file, though it has an error 0x80070002 error in it I am not sure if this is related.
    Any suggestions on how to remedy this issue, or workarounds to assign local admins would be helpful. I have already tried adding in some command lines like "cmd /c net localgroup administrators /add "etoo\Administrators" and "cmd /c net
    localgroup administrators /add "localhost\username"" to various points in the sequence without any success.
    https://www.dropbox.com/s/g3s520bwo8pv4kp/smsts.log
    Thanks

    I suspect that your keyboard layout isn't configured correctly so that's why your "Enable the account and specify the local administrator password" doesn't work, check the keyboard layout on the login screen of the client you're trying to log in to...
    There are several ways of adding local admins to the client during  OS deployment:
    "Apply the windows settings" -task sequence step
    unattend.xml (http://sybaspot.com/the-complete-guide-to-preparing-a-windows-7-deployment-image-using-audit-mode-and-sysprep-with-an-unattend-xml-answer-file/)
    "Run a commandline" -task sequence step, after the Setup Windows & ConfigMgr step (cmd /c net localgroup "Administrators" "domain\user" /add)
    And after OS deployment:
    Restricted groups group policy (http://www.windowsecurity.com/articles-tutorials/windows_os_security/Using-Restricted-Groups.html)

  • Built-in Admin and local admin accounts can not logon locally

    When I attempt to logon locally to a Windows 7client as the built-in administrator or local admin I receive the message "You can not logon because the logon method you are using is not allowed on this computer"
    I can logon as a network administrator.  I run gpedit.msc to see the current group policy.
    Local Computer Policy/Windows settings/Security settings/Local policy/User Rights Assignment/Allow log on locally is set to EVERYONE, Administrators
    Local Computer Policy/Windows settings/Security settings/Local policy/User Rights Assignment/Deny log on locally is set to NONE
    This makes no sense as to why the local admin or built admin cannot logon.

    Hi,
    What is the network environment? Are you in a domain? Group Policy processing has a precedence, local GPO has the lowest priority, please make sure that it's not overwritten by other GPOs.
    After setting the policy, make sure to run gpupdate /force to update the policy.
    Does this issue happen only on this specific computer? Another situation is that the profile is corrupted, delete the profile and recreate one, and check if it works.
    Yolanda Zhu
    TechNet Community Support

  • How to reset windows 2008 R2 Local Administrator password

    Hi Team,
    I have forget windows 2008 R2 local admin password, the server is not in domain , is it any way to reset local administrator password.
    Regards,
    Triyambak
    Regards, Triyambak

    When your Windows Server 2008 R2 computer is still accessible, you can reset or change your administrator password with ease by the following steps.
    Step 1: Log in your Windows Server 2008 R2 computer through the administrator account.
    Step 2: Click on “Start” on the lower left corner of your screen, and hit “Control Panel”, and then doubt-click on "User Account".  
    Step 3: Choose “Make changes to your user account”, and then click on “Change your password”.
    Step 4: Now you will be asked to enter your current password, type in it.
    Step 5: Enter your new password and retype it to confirm your new password. You are optional to type in a word or phrase as the hint of the new password. It is highly recommended. 
    Another tip, Using a password recovery tool to recover WIndows server 2008 administrator password
    This is a universal WIndows password recovery method which can fix any Windows system password issue.
    1. Get Windows Password Rescuer and install it on another computer.
    2. Burn password reset disk into USB or CD/DVD device with Windows password recovery.
    3. Boot Windows server from password reset USB or CD disk
    4. Reset forgotten Windows server 2008 local or domain admin password without data loss.
    Detailed steps: http://www.wimware.com/how-to/reset-windows-server-2008-password.html
    I also have seen a way that users can use a Windows server 2008 install CD to reset the administrator password, you could search and have a try.  

  • Give OD Users local admin access

    Is it possible to give an OD user local administrative rights to a computer so they can install programs without having to know the local computer's admin credentials?

    Create "Domain Users" group
    Add SMBRID = 513 to that group
    Add Domain Users to the Power Users group on the computers in question
    Of course it is not much more secure than giving them the local admin passwords but you can revoke their rights by removing them from Domain Users group.

  • Removing admin password form Access 2003 database front end and back end

    We have a legacy database that has been passed down from the original creator, who is no longer with the organization. It was created in Access 2003. It has a front end and a back end. The original admin password can not be located and we are in the process
    of upgrading this application to 2010.  Is there a way to remove that password so we can make changes to the original files?

    Hi,
    What password are you talking about, the one created with the workgroup manager? That will be difficult since 2010 doesn't have the workgroup manager anymore. You can still use the database in the 2010 environment but you can't make any changes to the original
    database without the password.
    Maurice

  • HT201240 How to do restore my mac if i don't have Mac OS X Disc or the admin password?

    I went to Challenger to buy a Mac in Singapore, we got the Mac and asked one of the employees to help us install Microsoft Office, however, the person set a admin password, and now we don't know the password or have the disc to reinstall it, should we go there and ask for a new one or is there another way?

    Welcome to the Apple Support Communities
    https://discussions.apple.com/docs/DOC-4101

  • I just bought a new Macbook Pro and loaded all my info from My old Macbook...now i can't remember for the life of me my Admin Password 9which i created 3 years ago)...is there ANY WAY to bypass this on my new Macbook Pro and begin again...?

    i just bought a new Macbook Pro and loaded all my info from My old Macbook...now i can't remember for the life of me my Admin Password (which i created 3 years ago)...is there ANY WAY to bypass this on my new Macbook Pro and begin again...?

    I assume that you don't have the installation discs, so:
    1. Reboot
    2. Hold command + s key down after you hear the chime.
    3. When you get a text prompt enter in these terminal commands to create a brand new admin account (hitting return after each line):
    (Type these commands very carefully)
    mount -uw /
    rm /var/db/.AppleSetupDone
    shutdown -h now
    4. You will go through the setup process again, create a new admin account, login to it and then change your existing account password or whatever else you need to do. You can delete the account you made in this process, or not.

  • Can local admin change the root password in Mavericks

    One of my people and I keep going back and forth with this question. I remember reading somewhere (cannot find it now) that in 10.9 Apple changed it, so a local admin could not longer change the root password if it has been enabled by the IT group.

    AFAIK, any admin account user can set/change the root password. See OS X Mavericks: Enable and disable the root user for details. If you or IT don't trust your people, don't give them admin privileges.
    iMac refurb (27-inch Mid 2011), OS X Mavericks (10.9.4), SL & ML, G4 450 MP w/Leopard, 9.2.2

  • How to reset password of a local admin in window 8.1

    Hi, I have a window 8.1 machine with only a local admin user. Accidentally, the user id got locked due to three incorrect attempts and not i cannot get in to the machine. To reset the password, i tried to use the password reset USB from other machine as
    i cannot create from the same machine but it didn't work. I also tried to change the password through command prompt but 
    Please suggest how I can reset the Password or unlock the userID of the local admin user.
    Thanks,
    Kunal
    KC

    Hi,
    A locked-out account cannot be used until it is reset by an administrator or until the lockout duration for the account has expired.
    If you remember the password,you may type the password after the lockout duration for the account has expired.
    If you forget the password,please refer to the link below:
    http://windows.microsoft.com/en-us/windows/what-do-forget-windows-password#1TC=windows-8
    Regards,
    Kelvin hsu
    TechNet Community Support

  • How to reset local admin user password in

    Dear members,
    i want to reset local admin account(not administrator built-in), let say i have user adminlocal and member in administrator group. my question, how to reset this user via GPO in domain, because i have more than 5000 workstation in my environment. and how to
    generate summary of all workstation which are password reset.
    i've tried from this link,
    http://community.spiceworks.com/how_to/show/1966-how-to-change-local-user-or-admin-passwords-on-remote-computers
    using PSTools sysinternal from microsoft, but while i execute one PC on domain for sample using this script, they showing access denied
    anyone in this forum can help me to resolve this problem?.

    Dear,
    you can use Powershell to do this.
    I've found a script in the script center which can do this.
    http://gallery.technet.microsoft.com/scriptcenter/66a5b38f-cdf1-4126-aa0c-be65e16dd650/view/Discussions#content
    Set-Password -computer 'server' -user 'Administratorlocal' 
    You can create a loop in powershell to check all your servers which you've posted in a .txt file for example.
    $strcomputers = Get-Content c:\servers.txt
    foreach ($strcomputer in $strcomputers)
    $admin=[adsi]("WinNT://" + $strComputer + "/administratorlocal, user")
    $admin.psbase.invoke("SetPassword", "Whatever1")

  • How to Bypass Windows 7 Login Screen When Forgot Admin Password

    When forgot Windows 7 administrator login password and be stuck at the login screen what can you do? Believe that many people have encountered such a situation where they are locked out of their own computer for forgotten Windows administrator password. So today I would like to talk about several tricks on how to bypass Windows 7 login screen when forgot administrator login password. Trick 1: Reset Windows 7 admin password with password reset diskIf you have ever created a Windows password reset disk for that administrator account before you forgot its password it is easy to use it to reset or remove its password. Just insert the disk into your locked Windows 7 computer and click ¡°Reset Password¡± link on the login screen. Then follow the password reset wizard to perform password reset. This is the easiest way to bypass a Windows login screen when forgot administrator password. Trick 2: Change Windows 7 admin password in Safe ModeIf you have no password reset disk you have to look for other tricks to bypass your Windows 7 administrator password. So if you have enabled the built-in administrator account you can enter Safe Mode by pressing F8 when your computer is booting. And access that built-in administrator account to change other user password. Trick 3: Bypass Windows 7 Login screen with Windows Password RescuerIf the forward 2 tricks don't work, it is necessary for you to use an effective Windows Password Recovery tool like Daossoft Windows Password Rescuer. Steps are as below.Step 1: Download and install Daossoft Windows Password Rescuer into another accessible computer.Step 2: Launch this tool and follow its instruction to burn it to a USB/CD/DVD flash drive.Step 3: Boot your locked Windows 7 computer from the flash drive.Step 4: Follow its instruction to reset/remove your Windows administrator password. Detailed video tutorial :How to Remove or Bypass Windows 7 Administrator Password - Forgot Windows 7 Administrator Password

    The methods above don't work at all. Eventually I used a paid tool - PCUnlocker Live CD, and it successfully bypassed my lost admin password. 

  • Can't Login to Local Admin Account

    Over the weekend I rebuilt an OS X 10.4.10 Server.
    I created a local admin account, then set up DNS & OpenDirectory Master. I created some admin accounts in the domain.
    I also set up a Panther Server as "Connected to a Directory System" and joined it to the Kerberos server on the 10.4 server.
    All the clients are connecting to the domain, and everything is working except I can't log in to the 10.4 server with the local directory accounts anymore. I have created a new account in the local directory and tried changing the passwords, but nothing works for logging into the local directory admin accounts. With the exception that I am able to SSh into the local directory accounts.
    Any suggestions?
    Message was edited by: iGary

    Does this help?
    http://docs.info.apple.com/article.html?artnum=307005
    LN

  • I dont know the admin password and i dont have a disc how do i bypass this

    i need to access admin privlages but i dont have the password and i didnt recive the disc it came with how do i bypass this so i can become a admin?

    It is best to get a disk. Ring an Apple store and they may be able to provide a replacement for your original disk.
    The other benefit of owning a disk is it can be used to repair your hard drive.
    Without a disk it is like driving a car without a spare. Most of the time you don't need it except for the time when you do, and then you are stranded.

Maybe you are looking for