How to Provide Windows Credentials in Invoke-sqlcmd

Hi,
Could you please let me know how to execute TSQL Queries using Invoke-Sqlcmd by passing Windows Credentials.
I Know Other methods(sqlcmd, SMO) to Run, But Im looking for this Solution.
I Tried below Commands but it is failing.
Add-PSSnapin SqlServerCmdletSnapin100
Add-PSSnapin SqlServerProviderSnapin100
Invoke-Sqlcmd -ServerInstance "ABC\XYZ" -Database "master" -Query "select * from sys.databases" -Username "Domain\user_ID" -Password "Pwd"
The credentials which I have passed is having Sysadmin access to SQL Server and it is a Domain Account.
Note: if I Run the same command Without passing Credentials in the same machine(ABC), then Im getting the Output.
Please help

As Mike notes.  The username and password are only useful when you are connecting in mixed mode and you have defined a SQL standard login.  For all trusted connections you must start PowerShell as the user that you want to connect with.  There
no alternate credentials in MSSQLServer.  The is a "Trusted" connection and a user login connection.  Logins arte not enabled by default in MSSQLServer.
If you have sufficient priviliges in SQLServer you can act as another user and use their schema.  I recommend posting in the SQLServer forum to learn how to set up and use this.
¯\_(ツ)_/¯

Similar Messages

  • How to execute SQL Script using windows powershell(using invoke-sqlcmd or any if)

    OS : Windows server 2008
    SQL Server : SQL Server 2012
    Script: Test.sql (T-SQL)  example : "select name from sys.databases"
    Batch script: windows  MyBatchscript.bat ( here connects to sql server using sqlcmd  and output c:\Testput.txt) 
     (sqlcmd.exe -S DBserverName -U username -P p@ssword -i C:\test.sql -o "c:\Testoutput.txt)  ---it working without any issues.....
    This can execute if i double click MyBatchscript.bat file and can see the output in c:\testput.txt.
    Powershell: Similarly, How can i do in powershell 2.0 or higher versions?  can any one give full details with each step?
    I found some of them online, but nowhere seen clear details or examples and it not executing through cmd line (or batch script).
    example: invoke-sqlcmd -Servernameinstance Servername -inputfile "c:\test.sql" | out-File -filepath "c:\psOutput.txt"  --(call this file name MyTest.ps1)
    (The above script working if i run manually. I want to run automatic like double click (or schedule with 3rd party tool/scheduler ) in Batch file and see the output in C drive(c:\psOutput.txt))
    Can anyone Powershell experts give/suggest full details/steps for this. How to proceed? Is there any configurations required to run automatic?
    Thanks in advance.

    Testeted the following code and it's working.....thanks all.
    Execute sql script using invoke-sqlcmd with batch script and without batch script.
    Option1: using Import sqlps
    1.Save sql script as "C:\scripts\Test.sql"  script in side Test.sql: select name from sys.databases
    2.Save Batch script as "C:\scripts\MyTest.bat" Script inside Batch script:
    powershell.exe C:\scripts\mypowershell.ps1
    3.Save powershell script as "C:\scripts\mypowershell.ps1"
    import-module "sqlps" -DisableNameChecking
    invoke-sqlcmd -Servername ServerName -inputFile "C:\scripts\Test.sql" | out-File -filepath "C:\scripts\TestOutput.txt"
    4.Run the Batch script commandline or double click then can able to see the output "C:\scripts\TestOutput.txt" file.
    5.Connect to current scripts location  cd C:\scripts (enter)
    C:\scripts\dir (enter )
    C:\scripts\MyTest.bat (enter)
    Note: can able to see the output in "C:\scripts" location as file name "TestOutput.txt".
    Option2: Otherway, import sqlps and execution
    1.Save sql script as "C:\scripts\Test.sql"  script in side Test.sql: select name from sys.databases
    2.Save powershell script as "C:\scripts\mypowershell.ps1"
    # import-module "sqlps" -DisableNameChecking #...Here it not required.
    invoke-sqlcmd -Servername ServerName -inputFile "C:\scripts\Test.sql" | out-File -filepath "C:\scripts\TestOutput.txt"
    3.Connect to current scripts location
    cd C:\scripts (enter)
    C:\scripts\dir (enter )
    C:\scripts\powershell.exe sqlps C:\scripts\mypowershell.ps1 (enter)
    Note: can able to see the output in "C:\scripts" location as file name "TestOutput.txt".

  • [Forum FAQ] How do I have Invoke-SqlCmd return a date value without adding time

    Introduction
    A select statement executed from Invoke-SqlCmd returns a value from a Date column, the value has "12:00:00 AM" appended.  The same select statement executed within SQL Server Management Studio displays the date properly without any time formatting.
    Sample data is as follows:
    How to have Invoke-SqlCmd return Date values without adding time for multiple Date type columns and pipe the output into CSV file?
    Solution
    In SQL Server 2012 or onwards, use the FORMAT() function to convert datetime values to date format when executing query from Invoke-SqlCmd. In earlier versions such as SQL Server 2008 R2, use the traditional CONVERT() function to format datetime values to
    different date formats(yyyy.mm.dd, mm/dd/yyyy, etc) when executing query from Invoke-SqlCmd. Then pipe the output of SQL query result into CSV file by specifying export-csv parameter. An example is as follows.
    Create a table named “Test_invokesqlcmd” that contains Date type columns in SQL Server.
    USE Test
    Go
    CREATE TABLE [dbo].[Test_invokesqlcmd](
        [id] [int] NOT NULL,
        [name] [varchar](20) NULL,
        [test1] [date] NULL,
        [test2] [date] NULL
    ) ON [PRIMARY]
    GO
    insert into [dbo].[Test_invokesqlcmd]
    values(1,'David','2014-10-15','2015-01-07'),(2,'Jane','2011-08-05','2012-11-7'),(3,'Crystal','2013-09-15','2010-02-24')
    Define a query string, execute it from Invoke-SqlCmd and save the query result to a CSV file.
    Scripts for SQL Server 2012:
    $query1 = @"
        use Test;
        SELECT FORMAT(test1,'d') as newtest1, FORMAT(test2,'d') as newtest2 from dbo.Test_invokesqlcmd
    write-host $query1
    Invoke-Sqlcmd -Query $query1 -ServerInstance localhost | export-csv -notypeinformation -path c:\Files\test.csv
    Scripts for SQL Server 2008 R2:
    $query2 = @"
        Use Test;
        SELECT CONVERT(varchar, test1, 102) as newtest1,CONVERT(varchar, test2, 102) as newtest2
        FROM dbo. Test_invokesqlcmd
    write-host $query2
    Invoke-Sqlcmd -Query $query2 -ServerInstance localhost | export-csv -notypeinformation -path c:\Files\test.csv
    Check the results in SQL Server PowerShell window and csv file.
    SQL Server 2012:
    SQL Server 2008 R2:
    Reference
    Using the Invoke-Sqlcmd cmdlet
    SQL Server Functions that helps to convert date and time values to and from string literals and other date and time formats
    Applies to
    SQL Server 2014
    SQL Server 2012
    SQL Server 2008 R2
    SQL Server 2008
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Cross posted. More appropriate in JSF forum so continue conversation there.
    http://forum.java.sun.com/thread.jspa?threadID=717292&messageID=4142615#4142615

  • How do I set ClientCredentials property to windows credentials?

    As per MSDN
    http://technet.microsoft.com/en-us/library/92a9678c-bc4f-4d7a-ba44-85989bfe27ca
    Building Applications Using the Reporting Web Service and the .NET Framework we have to set Credentials as below
    ReportingService2010 rs = new ReportingService2010();
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    However, after creating the proxy I don't see proxy has Credentials property as MSDN says. The proxy has ClientCredentials property but it is not derived from ICredentials
    I'm using http://serverurl/ReportServer/ReportService2010.asmx
    How do I set ClientCredentials property to windows credentials in this case?

    But i dont see "Add web reference" option.
    Have you read the link I posted? "Add Service Reference" => button "Advanced" => "Add Web Reference"
    to check if the folder already exists
    Sure, with
    ReportingService2010.ListChildren
    Method
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to provide credentials in MS Infopath for authenticaing Web Services?

    I have created a form in MS INFOPATH where it simply queries a Customer ID and return the Customer Address using Web Services(SIEBEL CRM ON DEMAND).The Webservices requires Username and Password for authentication purpose.I searched the whole MS Infopath and their is no way to provide the credentials.If i run my query on Infopath the following error messgae is dispalyed
    The SOAP response indicates that an error occurred on the server:
    Server
    <detail><ErrorCode>SBL-ODU-01006</ErrorCode><ErrorMessage>Internal Error: Session is not available. Aborting.</ErrorMessage></detail>
    How can this be done?
    Plz help
    -Sankalp

    Hi ,
    My problem is still not resolved. I tried applying the people picker property and set a specific field(an email id field) to be available to only admins. Now the field is not visible to the normal users but only admins which is good but that email field
    should be able to take normal users as wel as admin's email ID. currently due to the people picker property it only takes admin's ID and not normal user's ID - which is not as per expectation.
    What this email ID field does is - when a normal user is logged in he/she wont see this field in that view. But when an admin logs in he/she can switch to admin view and see this field . The admin can put any user's ID in this field and pull out the required
    resource's Time Report for modification.
    Please let me know how do i overcome my problem. Detailed step description will be very helpfull .
    As per Cameron's suggestion (add a rule on the "additional admin section") , i am not sure how exactly that is done. Would help a lot if i got to know how this works.
    Regards,
    Guru

  • How to save the credentials in windows security when opening a report?

    How to save the credentials in windows security when opening a report?
    in Silverlight program, user click a link to SQL server report services link, it pops up a new IE window and ask for windows security.
    Type the user name password in and check save password. reports showed and close IE. user click again, the same windows security popup dialog showed up. how to really remember the credentials?
    If keep the IE open, reports shows in second tab of the same IE window for the second click, and it didn't ask for the windows security.

    Hi Lascorpion,
    According to your description, users need to type username and password before they can open the SSRS report when reopening IE, right? If I have anything misunderstood, please point it out.
    Base on my research, this issue offten occurs on IE9 which ships with Windows 7 operating systems. In this case, to avoid this issue we can add the report URL to the trust site, for the detail information, please refer to the link below.
    SSRS Prompt for username and password in IE
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to provide credentials for outbound HTTP connection

    Hi all,
    My outbound request requires basic authentication How to provide credentials within xsjs for outbound request.
    My .xshttpdest file has authType=basic:
    host = "host";
    port = 80;
    description = "decription";
    pathPrefix = "/geoserver/";
    authType = basic;
    useProxy = false;
    proxyHost = "proxy";
    proxyPort = 8080;
    timeout = 0;
    Correspondent xsjs class create request:
    var request = new $.net.http.Request($.net.http.GET, "");
    Is any possibility to provide request with credentials?
    Thanks.
    Slava

    You provide credentials by configuring for the HTTP destination via the XSAdmin tool. Directly supplying credentials in the XSJS code itself would not be sure.

  • Invoke-Sqlcmd problem on Windows server 2008

    We have several Web Servers running Win2008 and need to be able to use the Invoke-Sqlcmd powershell cmdlet to execute arbitrary SQL.  
    Tried installing PowerShellTools.msi but Invoke-Sqlcmd still isn't recognized.
    What do I need to do to get support for PowerShellTools.msi in PowerShell 4.0?
    SQL 2008 SP1

    here are the installation instructions:
    http://blog.smu.edu/wis/2012/11/26/sql-server-powershell-module-sqlps/
    ¯\_(ツ)_/¯
    Installed the dependencies and it still didn't work.  Did myself a favor and used this
    version.  It uses stock SqlConnection/SqlCommand and has no dependencies other than .Net framework.

  • Invoke-sqlcmd with domain user name and password

    I am trying to execute below small SQL script from powershell by passing my domain user name and password..but it is throwing an error login failed for the user.
    Howerver I am able to execute the same query by passing normal user 'non domain' and password. The issue is only when i am trying to connect with domain username.
    Can you please suggest if there is any way to execute below query with domain user..
    Invoke-Sqlcmd
    -query "select name from master.sys.databases"
    -ServerInstance "CM-NCKM-DBTST04\SQL2012" -username "sos\9venk" -password "xxxx"
    Thanks
    Venkat
    venkat

    Hi Venkat,
    Agree with Mike, to connect sql via powershell, you can refer to this article about authentications:
    Connecting to SQL Server through Powershell
    Please try to gather credentials using Get-Credential, and then use New-PSSession -Authentication CredSSP to open the pssession.
    A similar discussion about this issue is for your reference:
    Invoke-SQLCmd with Different Credential
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Connect Coldfusion 9 to SQL using intranet users windows credentials

    Is it possible to use pass through / integrated authentication using the application users windows account (rather than the service account) when a Coldfusion application connects to an MS SQL DB?
    For background, we are running:
    ColdFusion 9,0,1,274733 hosted on a Windows 2008 R2 (64) server
    SQL server 2008 R2 hosted on a Windows 2008 R2 (64) server
    IE 8 and/or 9 as the client browser
    I have an intranet application that is used only by users within our AD domain. I have no problem getting ColdFusion to connect to the SQL database using the ColdFusion service account, but ideally we would like the connection to be made under the application user's account.
    I would appreciate any guidance on how to achieve this if it is possible?
    (I am not a webmanager/developer and so my ColdFusion knowledge is very limited!)
    Thanks in advance,
    Darren

    Again, thanks for the responses - it is nice to be able to talk through these things (I work in a fairly small organisation and so do not often get to talk through technical subjects with other professionals!)
    Firstly, to respond to BKBK, I have been considering that approach, though unless I have missed something, I would either:
    1. have to use simple authentication - in which case a users windows credentials would be passed as Binary_Base64 (i.e. clear text) - and possibly would need to replicate all AD accounts as SQL server accounts (not sure in that account replication bit as I may be able to still get it to authenticate as a windows account from the SQL engine - but the clear text passwords is the real problem), or:
    2. have to use form based credentials, in which case the users would have to 'login' to the application - I am trying to avoid this to make it as seamless for the users as possible.
    Neither of those approaches are ideal (unless, as I say, I am missing an option there) and so I am more inclined to use a single SQL account from the datasource definition and control access from a combination of the application and the database.
    Secondly, to respond to Dan.
    I agree, it would be no good for User A to receive an error if they tried to run a proc that they do not have permissions for. However, if these errors occur they are captured and handled gracefully in both the application suite and the database.
    Aside from this, the application does not provide the ability for user A to execute procedure 7 (from the example in my previous post) - which I guess is what you are saying with " Whatever UI control User B has to run sp 7 cannot be available to User A".
    The reason for controlling physical permissions in the DB was that:
    1. it is universal for all interfaces with that database - so long as integrated auth is used
    2. it provides a belt and braces approach (as parts of this application has sensitive data) - so that if somehow user A gets the web application to call procedure 7 then the DB would still prevent it
    For thought/discussion:
    I think I will end up using a single account from the datasource, but make it a datasource that can only be called from AD users accessing the application (though only AD users can access the application which achieves this already).
    Any call to the database must include the CGI variable "AUTH_USER" as an input parameter.
    The DB will then:
    1. check the account that is logged in to the SQL engine (to ensure a user hasnt bypassed coldFusion and gone straight to the DB - though Group permissions are already set for this scenario)
    2. Check the user supplied as a parameter exists in AD and is an active account
    3. and check the permissions of that user for the particular task that was requested of the DB engine. - execute if permissable, gracefully refuse with appropriate messages passed back if not.
    This combined with the control in the application to only present the right functions to the right user should give me the belt and braces that we are after - all be it in a bit of a convoluted way!
    I guess the big question is how easy/difficult is it to fake "AUTH_USER"?

  • How to embed user credentials in Secured Web Service from OBIEE 11gFMW?

    I am trying to invoke a webservice that I successfully exposed as a WSDL Web Service using EBS Integrated SOA Gateway. I am using OBIEE 11g Action Framework which uses WebLogic.
    Here are the steps I completed:
    - I exposed a WSDL web service in EBS R12 via Integrated SOA Gateway
    - I granted the access to this service in EBS R12 to user SYSADMIN
    - I used OBIEE 11g to make a Action to call the Web service (using Action Framework) by searching for the WSDL
    - When I try to execute the action: I get the error:
    Action could not be invoked.
    ServiceExecutionFailure :
    Error invoking web service HR_PHONE_API_Service at endpoint http://ip-10-87-33-3.ec2.internal:8000/webservices/SOAProvider/plsql/hr_phone_api/ Missing <wsse:Security> in SOAP Header
    PROBLEM: I am unsure how to add the credentials for SYSADMIN user and password to add the SOAP username/pwd to the outgoing call. According to the documentation in the Integrators guide, FMW Security guide, and Web Logic guides..seems we have to configure the SOAP call to have the proper credentials. The documentation is not very clear on exactly how to do this. I tried to set up the credential store and an account in ActionFrameWorkConfig.xml but I am still missing something. I am logged into OBIEE as biadmin and I am trying to call a webservie in EBS that is granted to SYSADMIN/sysadmin user. Pls advise.

    I am trying to invoke a webservice that I successfully exposed as a WSDL Web Service using EBS Integrated SOA Gateway. I am using OBIEE 11g Action Framework which uses WebLogic.
    Here are the steps I completed:
    - I exposed a WSDL web service in EBS R12 via Integrated SOA Gateway
    - I granted the access to this service in EBS R12 to user SYSADMIN
    - I used OBIEE 11g to make a Action to call the Web service (using Action Framework) by searching for the WSDL
    - When I try to execute the action: I get the error:
    Action could not be invoked.
    ServiceExecutionFailure :
    Error invoking web service HR_PHONE_API_Service at endpoint http://ip-10-87-33-3.ec2.internal:8000/webservices/SOAProvider/plsql/hr_phone_api/ Missing <wsse:Security> in SOAP Header
    PROBLEM: I am unsure how to add the credentials for SYSADMIN user and password to add the SOAP username/pwd to the outgoing call. According to the documentation in the Integrators guide, FMW Security guide, and Web Logic guides..seems we have to configure the SOAP call to have the proper credentials. The documentation is not very clear on exactly how to do this. I tried to set up the credential store and an account in ActionFrameWorkConfig.xml but I am still missing something. I am logged into OBIEE as biadmin and I am trying to call a webservie in EBS that is granted to SYSADMIN/sysadmin user. Pls advise.

  • Re: How to install Windows 8.1 on new Satellite Pro C50?

    I've just purchased a TOSHIBA SATELLITE PRO C50 which came with Windows 7 Pre-installed.
    Upon starting the system for the first time, I simply shut it down and put the Windows 8.1 Media in the Optical Drive (disk 1 of 4) and then went into the recovery wizard, and may have chosen the wrong option, as I completely wiped the hard drive and partitions.
    Now that I've done that, I cannot find the way to install the Windows 8.1 Pro Media from the 4 DVDs provided. I cannot find the correct option to do this. I've changed the boot option in the system settings by pressing F2 upon boot, so it reads from the DVD drive. The DVD starts up but then takes me into a system recovery area, which is no good as I've completely wiped the system.
    How can I just simply now install the provided Windows 8.1 Pro onto the clean system now?
    Thanks for any advice.

    At first I would like to know which notebook model do you have exactly. If possible please post the whole model number (C50-xxxxx). I just want to check specification for this notebook model.
    Have you bought this notebook model as brand new product and originally boxed?
    Anyway, if you have original recovery installation discs for it you should be able to install it without some problems. Start your notebook and press F12 to enter boot menu. When this menu wil be shown on the screen, put disc 1 into optical disc drive, choose CD/DVD drive in menu and press ENTER.
    ODD should start to read disc and recovery wizard will be shown o the screen. Choose option to install out-of-box/factory settings and just follow menu on the screen.

  • How to add security credentials to SOAP header for EBS Web Service call..

    All,
    I am trying to invoke a webservice that I successfully exposed as a WSDL Web Service using EBS Integrated SOA Gateway. I am using OBIEE 11g Action Framework which uses WebLogic.
    Here are the steps I completed:
    - I exposed a WSDL web service in EBS R12 via Integrated SOA Gateway
    - I granted the access to this service in EBS R12 to user SYSADMIN
    - I used OBIEE 11g to make a Action to call the Web service (using Action Framework) by searching for the WSDL
    - When I try to execute the action: I get the error:
    Action could not be invoked.
    ServiceExecutionFailure :
    Error invoking web service HR_PHONE_API_Service at endpoint http://ip-10-87-33-3.ec2.internal:8000/webservices/SOAProvider/plsql/hr_phone_api/ Missing <wsse:Security> in SOAP Header
    PROBLEM: I am unsure how to add the credentials for SYSADMIN user and password to add the SOAP username/pwd to the outgoing call. Anyone on this forum know how to set up the SOAP to call with the correct credentials? I have been looking at the documentation but it is not clearly explained.

    Dear Heiko,
    did you solve this problem?
    We are facing the same problem. Every parameter that requries "cmd" does not work. I guess we don´t use this paramter the right way.
    Best, Chris

  • How to Install Windows 7 Without the Disc

    1a)  Here is very useful article from PCWorld.com. The article is entitled "How to Install Windows 7 Without the Disc" and means just what it says. The article also has links to Magical Jelly Bean Keyfinder and legitimate Windows 7 ISOs from Digital River, a licensed distributor of Microsoft software. The article lists "Step 1" as;
    "Find your Windows 7 product key: Typically this 25-character alphanumeric string is printed on a sticker affixed to your PC or on documentation included with your PC. Alternatively, you can use a keyfinder program such as Magical Jelly Bean Keyfinder to pull your product key from the Registry. You need your product key to reinstall Windows."
    1b)  Using a key finder, however, is only useful if the Windows 7 product key was printed on a sticker (Microsoft Certificate of Authenticity) affixed to your PC, on documentation included with your PC, or sent via email by Microsoft. Assuming your computer came from one of the big brand computer manufacturers... HP, Sony, Dell, Gateway, etc... as most do, it uses a generic "mass activation" OEM SLP key. Trying to use this key by itself isn't going to work. This OEM SLP key needs to be mated with an OEM SLP certificate and an appropriate OEM BIOS with a proper SLIC table.
    1c)  Here is where ABR Beta With Windows 7 Support comes to the rescue. Follow the "How to use it" section of ABR for Windows Vista for information and instructions on how to use ABR. The steps listed for Vista apply to Windows 7 as well. Perform the "activation backup" to "backup" and save the OEM SLP key and OEM SLP certificate. Save the entire ABR folder to an external location for later use. This will allow you to pre-activate your "clean" Windows 7 install on the computer you pulled the key and certificate from.
    1d)  Now install Windows 7 from your new "Windows 7" disc or USB stick, following all prompts as needed. Don't enter a Windows 7 product key if request. Also, don't allow Windows to try to auto-activate. Once Windows is fully installed, run ABR "activation restore" to "restore" the previously backed up product key and certificate to the new Windows 7 install. Verify that Windows is activated, repeat "activation restore" if needed.
    2)  Here is another useful article, this time from SevenForums.com. This arcticle is entitled "Clean Reinstall - Factory OEM Windows 7" and provides detailed steps required to backup your computer, audit current hardware and software, locate software and drivers, install and activate Windows 7, and create a Windows 7 Backup Image of your fresh install.
    Good luck.
    Links to additional Windows 7 SP1 "Editions" and "Languages" can be found HERE and HERE.
    Link to "ei.cfg Removal Utility". The "ei.cfg Removal Utility" is a simple tool that will remove the ei.cfg  from any Windows ISO disc image, thereby converting the image into a "universal disc" that will prompt the user to select an edition during setup instead of being forced to use different discs for different versions of Windows 7.
    Direct link to Windows 7 USB/DVD Download tool.
    <Cross posted to Notebook Operating Systems and Software for Notebook, Laptop, and Netbook users>
    EDITED by Frank on 8/28/2013
    Please click the white KUDOS star to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

    ervis,
    Before formatting the hard drive you should have been able to use the HP Recovery Manager to create your recovery discs or perform a system recovery. This is provided the recovery partition wasn't already corrupt or damaged. If the "D:" HP Recovery partition is missing or damaged and you don't have a set of HP Recovery Discs, you will need to use the information in my previous post to get your computer up and running again.
    The information in the document referred you to applies to several different "types" of installations;
    Using ABRbeta is only needed if you have an active OEM factory SLP (system locked preactivated) installation of Windows. You use ABR to pull the factory key and certificate off the computer, to reuse it on the same computer with a clean Windows install.
    If you are just installing Windows and are going to use the Windows 7 product key on the COA on the side of your computer, all you need to do is download the same version of Windows that your key is for and burn the ISO. Now install Windows answering or following all prompts as needed (except do not enter the Windows product at this time... it will be entered later). Once Windows has completely installed, enter the key and activate it. Your Windows 7 OA key should work on a SP1 install without issue.
    The only thing I see that could mess things up, is the language of the install. If you are still having trouble activating Windows, please reference the ISO you download and a post a photo of your Windows COA
    with the key erased or Xed out.
    Please send KUDOs
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • How to Reset Windows 8 Admin Password without Disk

    Problem:Forgot Windows 8 admin password and no reset disk available, how can I reset Windows 8 admin password? On the occasion, how to reset password on Windows 8 seems to be our problematic issue. However, the problem looks difficult, not difficult actually. Two factors make efforts on it. One is the new characteristics of Windows 8 system, the other is software technology development. So just let me help you to solve it. Just choose one and put it into practice:1. Get User password via Windows Password Hint.2. Get into computer with PIN code, and reset password for locked account.3. Login windows 8 Via Microsoft MSN Account.4. Reset Windows password with another available admin account.5. Reset Windows 8 password with iSunshare password tool. These methods will be introduced in details for people who have encountered or are facing this problem. 1. Get Administrator password via Windows Password HintWhen we are creating our Windows system account and login password, a password hint will be asked to set up for preparation. This password hint had better can remind you, only just you of lost or forgotten password. So it couldn’t like the password, but is related to your login password. As a result, while you type a wrong password, the password hint will pops up below the password input box. Based on the password hint, you can think of your origin password.  As seen above, my password hint is email [email protected], and my Windows 8 login password is the same as the password of email. So when the password hint pops up, I will think of Windows login password instantly. 2. Get into computer with PIN code, and reset password for locked accountPIN code is a quick, convenient way to sign in to this PC by using a 4-digit code. If you have ever created one, this may be the most simplest and effective method for Windows 8 password reset. Totally two steps are needed. Step 1: Sign in with PIN code
    When you forgot your local account password in the login page, sign-in options is provided for you to choose. Click the Sign-in options, there are two options, Password and PIN. Choose PIN, and input 4-digit code in the box. Then you can sign in to your computer successfully. Step 2: Press Windows +X, and click on Command Prompt (Admin) and Yes. Step 3: On the Command Prompt, type in: Net User <user name> <new password> and press Enter to reset a new password for Windows 8.  Command Prompt screen appears, input the words like the words in the red box, user name is iSunshare, new password is 12345, and then press Enter to complete the Windows password reset process.  3. Login windows 8 Via Microsoft MSN AccountIf your computer has set up to sign in to Windows 8 with Microsoft account, and you can login Windows with it, and create a PIN that any user who has a password must enter it when waking this PC, and then login with PIN code, reset password with Command Prompt. 4. Reset Windows 8 Password with Another available Admin AccountIf there is another admin account available, log on to Windows with this account first, and then reset other accounts passwords would be easy.
    >> Enter Computer Management screen
    Click My Computer to select Manage to enter this screen
    >> Set password for account you want to reset
    Click Local Users and Groups, choose Users, and right-click the account you want to reset its password to choose Set Password. 5. Reset Windows 8 password with iSunshare password toolWhen you have no password reset disk, the first and most important effort of Windows password recovery advanced tool is to create a password reset disk. How to reset Windows 8 forgotten password step by step by iSunshare Windows Genius Advanced? Follow the below steps.Step 1: Download iSunshare Windows password recovery advanced tool from iSunshare official website. Install and launch it on an accessible computer.Step 2: Create a password reset disk
    Insert writable USB or CD/DVD into accessible computer and select correct media type, and then click Begin burning to burn the removable device. Until the message “Successfully burning” pops up, it means password reset disk has been created completely.
    Step 3: Boot from USB or CD/DVD Setup
    >> Insert the removable device to your locked computer
    >> Boot your locked computer, and press DEL or F2 at the same time to enter BIOS setting screen
    >> Reset removable device as the first boot device under Boot option
    >> Windows password reset screen appears after all the above settingsStep 4: Reset Windows 8 forgotten password
    After all the above settings, Windows password reset screen appears.
    >> Select the Windows system type and the account you want to reset its password. Or you can add a new account for Windows 8.
    >> Click “Reboot” to restart your computer, then you could login Windows 8 without password successfully.   Source: Reset Windows 8 Password without Disk

    A few days ago, I had met the headache things that I had forgotten Windows 8 password. The login screen rejected my passwords. I was frustrated because there was very important data on my disk and I couldn’t reinstall the OS. ………….
    I fortunately got to know the PCUnlocker program, which is a professional windows password recovery tool for us to reset windows 8 password instantly yet no data loss.

Maybe you are looking for