License status querying from slmgr powershell - windows

I'm creating a powershell wrapper script to the windows 7 ESU and I need to set up a registry footprints accordingly.
after slmgr /IPK, this is how my slmgr /DLV looks like below
I was able to get the same as string value through .Stdout from the process.
Software licensing service version: 6.1.7601.17514
Name: Windows(R) 7, Client-ESU-Year1 add-on for Enterprise,Professional,EnterpriseN,ProfessionalN,Ultimate
Description: Windows Operating System - Windows(R) 7, VOLUME_MAK channel
Activation ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Application ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Extended PID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Installation ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
Use License URL: http://go.microsoft.com/fwlink/?LinkID=88341
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
Partial Product Key: XXXXX
License Status: Unlicensed
Remaining Windows rearm count: 1
Trusted time: 2/20/2020 2:36:18 PM
Name: Windows(R) 7, Enterprise edition
Description: Windows Operating System - Windows(R) 7, VOLUME_MAK channel
Activation ID: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Application ID: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Extended PID: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Installation ID: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
Use License URL: http://go.microsoft.com/fwlink/?LinkID=88341
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
Partial Product Key: YYYYY
License Status: Licensed
Remaining Windows rearm count: 1
Trusted time: 2/20/2020 2:36:19 PM
I need to filter out both the license status and both the activation ID.
Any help would be much appreciated!! I have been googling around for hours and really couldn't help myself.

Check this out, in powershell
Get-CimInstance -ClassName SoftwareLicensingProduct | ? { $_.PartialProductKey -ne $null }

Related

PS command to pull logon Types assosciated with Specific event ID

The follow code is the proposed solution to an online interactive lab. This is the solution as provided by the lab creator. The intention is to use this to find a pass the hash login type (logon Type 9) tho in this example I am using type 3.
Get-WinEvent -LogName 'Security' -FilterXPath '*/*/EventID="4624" and */*/Data[#Name="LogonType"]="3"' -ComputerName <example dc> | Format-List | findstr /R \<Network.Account.Name\>
I would expect the list to be formatted list of users that had a 4624 event ID with a type 3 login.
But I get this..
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
Network Account Name: -
I'm not sure what the problem is but I am wondering if the Network.Account.Name is not the proper variable to use with this problem.
Name Value
---- -----
PSVersion 5.1.17763.1490
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.1490
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
When removing the list formatting
ProviderName: Microsoft-Windows-Security-Auditing
TimeCreated Id LevelDisplayName Message
----------- -- ---------------- -------
2/6/2021 8:06:28 PM 4624 Information An account was successfully logged on....
2/6/2021 8:06:28 PM 4624 Information An account was successfully logged on....
2/6/2021 8:06:27 PM 4624 Information An account was successfully logged on....
2/6/2021 8:06:27 PM 4624 Information An account was successfully logged on....
2/6/2021 8:06:27 PM 4624 Information An account was successfully logged on....
2/6/2021 8:06:27 PM 4624 Information An account was successfully logged on....
So it is finding the events...
You're using findstr to specifically look for the string <Network.Account.Name> and nothing else. That's why you're getting it. Also findstr has limited regex capabilities, so I would not use it for more complex requirements.
Try something like:
Get-WinEvent -LogName Security -FilterXPath '*/*/EventID="4624" and */*/Data[#Name="LogonType"]="3"' -ComputerName <example dc> | ? {$_.Message -match 'Network.Account.Name'} | select *
This will get your Security events, filter for text matching Network.Account.Name and expand it.
This should work in powershell 7, but I don't have that event type in my logs:
get-winevent #{logname='security'; id = 4624; logontype = 3}
Here's all the xml data in powershell 5 on a computer with matching logs. "data = 3" is generic for any eventdata field that equals 3. Actually, I don't see where "Network Account Name" comes from. I would use this inside invoke-command for a remote computer.
get-winevent #{logname='security'; id = 4624; data = 3} -MaxEvents 1 |
% { ([xml]$_.toxml()).event.eventdata.data }
Name #text
---- -----
SubjectUserSid S-1-0-0
SubjectUserName -
SubjectDomainName -
SubjectLogonId 0x0
TargetUserSid S-1-5-21-2423303272-2025932682-2187700762-274702
TargetUserName js2010
TargetDomainName stackoverflow.com
TargetLogonId 0x14529312
LogonType 3
LogonProcessName Kerberos
AuthenticationPackageName Kerberos
WorkstationName -
LogonGuid {faa04afa-a7c8-23f4-b05c-aaff9e0ea54f}
TransmittedServices -
LmPackageName -
KeyLength 0
ProcessId 0x0
ProcessName -
IpAddress -
IpPort -
ImpersonationLevel %%1833
RestrictedAdminMode -
TargetOutboundUserName -
TargetOutboundDomainName -
VirtualAccount %%1843
TargetLinkedLogonId 0x0
ElevatedToken %%1842

Windows 10 WDK Computer Provisioning Error

I'm fairly new to Driver development but I'm currently using the latest version of Visual Studio and Windows 10 on both my Host and Target computer. I'm trying to set up provisioning for my target computer so that I can test the drivers that I make! However, I'm having an issue... I get this error every time I try to add my target computer to set up provisioning (Driver -> Test -> Configure Devices -> Add New Device). My computer hostname is correct (I can do 'ping PCNAME' and it works just fine). Visual studio, WDK, and the Windows 10 SDK are run on both computers. I've completely gone through Microsofts guide on how to provision a computer (https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/provision-a-target-computer-wdk-8-1) and done everything it says. I've turned off the firewall completely. Every time I try to set up the provisioning though I get this error
Name: Install Driver Test Components
Path: C:\Users\Ztowne13\AppData\Roaming\Microsoft\WDKTestInfrastructure\InfrastructureTaskGroups\Install Driver Test Components.xml
Target Computer: New Computer
Install Driver Test Components: Host Computer: DESKTOP-5S0AEBO
Install Driver Test Components: Host Architecture: x86
Install Driver Test Components: Host 64bit Operating System: True
Install Driver Test Components: Host Operating System Version: 10.0.17134.0
Install Driver Test Components: Process Administrator Privilege: False
Progress event: Current: 1, Max: 15, Message: ""
Progress event: Current: 1, Max: 15, Message: "Copying required files"
[19:24:24:121]: Copying required files
[19:24:24:539]: Task "Copying required files" was aborted because an unexpected error occured during execution.
None of the discovered or specified addresses match the socket address family.
Parameter name: context
Progress event: Current: 1, Max: 15, Message: " Task "Copying required files" was aborted because an unexpected error occured during execution.
None of the discovered or specified addresses match the socket address family.
Parameter name: context"
Task result status updated: Aborted
Result completed
Test process exit code: 0
[19:24:24:543]: None of the discovered or specified addresses match the socket address family.
Parameter name: context
Progress event: Current: 1, Max: 15, Message: "None of the discovered or specified addresses match the socket address family.
Parameter name: context"
Progress event: Current: 1, Max: 15, Message: "Computer configuration log file://C:/Users/Ztowne13/AppData/Roaming/Microsoft/WDKTestInfrastructure/ProvisioningLogs/Driver%20Test%20Computer%20Configuration%2020181129192424070.log"
and this file is the configuration log suggested at the very end if you were curious.
I have no idea why this is not working and I can't provision my computer, any help would be much appreciated... Thank you!
Well... I solved it. All I did is type ipconfig in my target computer and put the IP (10.0.0.X) in the "Network Host Name" category instaed of the computer's name (DESKTOP-TESTPC) despite Microsoft's article saying to put the PC name and not the local IP.

Provisioning target computer fails with VS 2013

WDK: 8.1
VS: 2013 Pro
Host OS: Win 7 x64
Target OS: Win 10 Enterprise N x64
Provisioning fails at installing WDTF (Windows Driver Test Framework):
Log shows:
Initialize: Computer:
Progress event: Current: 11, Max: 17, Message: "Installing driver test framework"
GetMachinePropertiesFromService: Computer Name: DESKTOP-OFDQ6IA
GetMachinePropertiesFromService: Architecture: AMD64
GetMachinePropertiesFromService: Operating System Version: 6.3.9600.0
GetMachinePropertiesFromService: Operating System Product Type: 1
GetMachinePropertiesFromService: Domain Joined: False
Initialize: Computer: DESKTOP-OFDQ6IA
InternalRunTest: Host Computer: ROBI-WIN7
InternalRunTest: Host Architecture: x86
InternalRunTest: Host 64bit Operating System: True
InternalRunTest: Host Operating System Version: 6.1.7601.65536
InternalRunTest: Process Administrator Privilege: True
Initialize: Computer: DESKTOP-OFDQ6IA
GetMachinePropertiesFromService: Computer Name: DESKTOP-OFDQ6IA
GetMachinePropertiesFromService: Architecture: AMD64
GetMachinePropertiesFromService: Operating System Version: 6.3.9600.0
GetMachinePropertiesFromService: Operating System Product Type: 1
GetMachinePropertiesFromService: Domain Joined: False
ExecuteProcess: Arguments: "%SystemDrive%\DriverTest\Run\msiexec.exe" /select:"#Name='Installing driver test framework'" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Installing_driver_test_framework_00009.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
[14:04:20:990]: [Installing driver test framework] Command Line:
te.exe "%SystemDrive%\DriverTest\Run\msiexec.exe" /select:"#Name='Installing driver test framework'" /rebootStateFile:%SystemDrive%\DriverTest\Logs\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Logs\Installing_driver_test_framework_00009.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
Initialize: Computer:
Initialize: Computer:
Created new result:
Path: C:\Users\robi\AppData\Roaming\Microsoft\DriverTest\TestRepository\Results\Installing driver test framework 00009.xml
Log Path: C:\Users\robi\AppData\Roaming\Microsoft\DriverTest\TestRepository\Results\Installing driver test framework 00009.log
Computer: DESKTOP-OFDQ6IA
Test Binary: msiexec.exe
Test Name: Installing driver test framework
Test Display Name: Installing driver test framework
Initialize: Computer:
RemoteExecute: Binary: msiexec.exe
RemoteExecution: Arguments: /i "%SystemDrive%\DriverTest\Setup\Windows Driver Testing Framework (WDTF) Runtime Libraries-x64_en-us.msi" /qb- KITTARGET=1 /l*v "%SystemDrive%\DriverTest\Logs\Windows Driver Testing Framework (WDTF) Runtime Libraries-x64_en-us.msi_install.log"
Initialize: Computer:
RemoteExecute: Process creation return code: 0
RemoteExecute: Process exit code: 1603
Result completed
Test process exit code: 1603
Result status updated: Fail
Installing manually results in same error. Windows Feature Pack for Win 10 N has been installed.
Ok, I fixed it by running:
WDK 8.1 + VS2013 Pro + Target OS Win 8.1 Pro
Then provisioning went ahead without problems...

Error while installing SQL Server 2012 Standard Edition

Here's how the error looks while the installation:
An error occurred during the setup process of the feature Attempted to
perform an unauthorized operation.
Clicking on Retry doesn't help, if I click on the Cancel button, it continues but then there will come up more errors like this one:
NOTE: I'm not using any VM, I'm using Windows 7 Ultimate 32 bit as my OS.
Here's the log details:
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2068119551
Start time: 2013-10-18 14:59:09
End time: 2013-10-18 16:02:02
Requested action: Install
Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for SQLEngine: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for Replication: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for IS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Machine Properties:
Machine name: H65617
Machine processor count: 4
OS version: Windows 7
OS service pack: Service Pack 1
OS region: United States
OS language: ...)
OS architecture: x86
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered
Package properties:
Description: Microsoft SQL Server 2012 Service Pack 1
ProductName: SQL Server 2012
Type: RTM
Version: 11
SPLevel: 0
Installation location: F:\x86\setup\
Installation edition: Standard
Product Update Status:
None discovered.
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: false
AGTSVCACCOUNT: bezeq
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: MULTIDIMENSIONAL
ASSVCACCOUNT: <empty>
ASSVCPASSWORD: <empty>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <empty>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Automatic
CLTCTLRNAME: <empty>
CLTRESULTDIR: <empty>
CLTSTARTUPTYPE: 0
CLTSVCACCOUNT: <empty>
CLTSVCPASSWORD: <empty>
CLTWORKINGDIR: <empty>
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131018_144620\ConfigurationFile.ini
CTLRSTARTUPTYPE: 0
CTLRSVCACCOUNT: <empty>
CTLRSVCPASSWORD: <empty>
CTLRUSERS: <empty>
ENABLERANU: false
ENU: true
ERRORREPORTING: false
FEATURES: SQLENGINE, REPLICATION, BIDS, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, SNAC_SDK
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: <empty>
FTSVCPASSWORD: <empty>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: false
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: <empty>
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: ****
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <empty>
MATRIXNAME: <empty>
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE: <empty>
RSINSTALLMODE: DefaultNativeMode
RSSHPINSTALLMODE: DefaultSharePointMode
RSSVCACCOUNT: <empty>
RSSVCPASSWORD: <empty>
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: ****
SQLSVCACCOUNT: ****
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: ****
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: false
TCPENABLED: 1
UIMODE: Normal
UpdateEnabled: true
UpdateSource: MU
X86: false
Configuration file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131018_144620\ConfigurationFile.ini
Detailed results:
Feature: Management Tools - Complete
Status: Passed
Feature: Client Tools Connectivity
Status: Passed
Feature: Client Tools SDK
Status: Passed
Feature: Client Tools Backwards Compatibility
Status: Passed
Feature: Management Tools - Basic
Status: Passed
Feature: SQL Server Data Tools
Status: Passed
Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x84BB0001
Error description: Attempted to perform an unauthorized operation.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0x6121810A%400x92D13C14&EvtType=0x6121810A%400x92D13C14
Feature: SQL Server Replication
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x84BB0001
Error description: Attempted to perform an unauthorized operation.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0x6121810A%400x92D13C14&EvtType=0x6121810A%400x92D13C14
Feature: Integration Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Integration Services
Component error code: 0x84BB0001
Error description: SSIS setup exception
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0x6121810A%400x92D13C14&EvtType=0x6121810A%400x92D13C14
Feature: SQL Browser
Status: Passed
Feature: Documentation Components
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: SQL Client Connectivity
Status: Passed
Feature: SQL Client Connectivity SDK
Status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131018_144620\SystemConfigurationCheck_Report.htm
This also worked for me, however the path for Win7 is
C:/Users/[UserName]/AppData/Local/Microsoft_Corporation.
I deleted the contents in this folder, ran the SQL installation again as a repair and it ran clean. Nothing got recreated in the c:/Users/[UserName]/AppData/Local/Microsoft_Corporation folder.
I had the same experience trying to install SQLServer 2012 standard on Windows 8.1, I resolved it by deleting the folder "C:/Users/[UserName]/AppData/Microsoft_Corporation" and it worked, extracting the iso file into a local folder would help too .

How to install SQL Server 2008 R2 Express from command prompt

I have try to install SQL Server 2008 R2 Express from command prompt with below command line
/ACTION=Install /FEATURES=SQLEngine /INSTANCENAME=Myinstance /SQLSVCACCOUNT=NT AUTHORITY\NETWORK SERVICE /SQLSYSADMINACCOUNTS=BUILTIN\ADMINISTRATORS /IACCEPTSQLSERVERLICENSETERMS=True"
But it always fail and i check log file it showing error like
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup.
Exit code (Decimal):-2068578304
Exit facility code: 1204
Exit error code: 0
Exit message: The specified credentials for the SQL Server service are not valid. To continue, provide a valid account and password for the SQL Server service.
Start time: 2012-11-30 12:51:24
End time: 2012-11-30 12:51:59
Requested action:Install
Machine Properties:
Machine name: Victor
Machine processor count:2
OS version:Windows 7
OS service pack:Service Pack 1
OS region:India
OS language: English (United States)
OS architecture:x64
Process architecture: 32 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature Language Edition Version Clustered
Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS Database Engine Services 1033 Express Edition 10.0.1600.22 No
Sql Server 2008 SQLEXPRESS MSSQL10.SQLEXPRESS SQL Server Replication 1033 Express Edition 10.0.1600.22 No
Sql Server 2008 Management Tools - Basic 1033 Express Edition 10.0.1600.22 No
Package properties:
Description: SQL Server Database Services 2008 R2
ProductName: SQL Server 2008 R2
Type: RTM
Version: 10
SPLevel: 0
Installation location: e:\f5b5880eab8afb8665d3b15bd6c0\x86\setup\
Installation edition: EXPRESS
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: True
AGTSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASDOMAINGROUP: <empty>
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT: <empty>
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <empty>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Automatic
CONFIGURATIONFILE:
CUSOURCE:
ENABLERANU: True
ENU: True
ERRORREPORTING: False
FARMACCOUNT: <empty>
FARMADMINPORT: 0
FARMPASSWORD: *****
FEATURES: SQLENGINE
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: <empty>
FTSVCPASSWORD: *****
HELP: False
IACCEPTSQLSERVERLICENSETERMS: True
INDICATEPROGRESS: False
INSTALLSHAREDDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTANCEID: Myinstance
INSTANCENAME: Myinstance
ISSVCACCOUNT:
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
NPENABLED: 0
PASSPHRASE: *****
PCUSOURCE:
PID: *****
QUIET: True
QUIETSIMPLE: False
ROLE: AllFeatures_WithDefaults
RSINSTALLMODE: FilesOnlyMode
RSSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: <empty>
SQLBACKUPDIR: <empty>
SQLCOLLATION: Latin1_General_CI_AI
SQLSVCACCOUNT:
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: BUILTIN\ADMINISTRATORS
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: False
TCPENABLED: 0
UIMODE: AutoAdvance
X86: False
Configuration file: C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\20121130_125044\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files (x86)\Microsoft SQL Server\100\Setup Bootstrap\Log\20121130_125044\SystemConfigurationCheck_Report.htm
Exception summary:
The following is an exception stack listing the exceptions in outermost to innermost order
Inner exceptions are being indented
Exception type: Microsoft.SqlServer.Chainer.Infrastructure.InputSettingValidationException
Message:
The specified credentials for the SQL Server service are not valid. To continue, provide a valid account and password for the SQL Server service.
Data:
SQL.Setup.FailureCategory = InputSettingValidationFailure
DisableWatson = true
Stack:
at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.LogAllValidationErrorsAndThrowFirstOne(ValidationState vs)
at Microsoft.SqlServer.Configuration.SetupExtension.ValidateFeatureSettingsAction.ExecuteAction(String actionId)
at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
at
Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
Inner exception type: Microsoft.SqlServer.Configuration.SqlEngine.ValidationException
Message:
The specified credentials for the SQL Server service are not valid. To continue, provide a valid account and password for the SQL Server service.
But when i try to install same exe file using c# code it will succeessfully installed
Dim info As New System.Diagnostics.ProcessStartInfo("cmd.exe")
info.FileName = My.Application.Info.DirectoryPath + "\SQLEXPR_x86_ENU.exe"
info.Arguments = "/Q /ACTION=INSTALL /FEATURES=SQLEngine /INSTANCENAME=Myinstance /SQLSVCACCOUNT=" & ChrW(34) & "NT AUTHORITY\Network Service" & ChrW(34) & " /SQLSYSADMINACCOUNTS=" & ChrW(34) & "BUILTIN\ADMINISTRATORS" & ChrW(34) & " /IACCEPTSQLSERVERLICENSETERMS=" & ChrW(34) & "True" & ChrW(34)
System.IO.File.WriteAllText("C:\\pathinsideinstaller", info.FileName)
info.UseShellExecute = False
info.CreateNoWindow = True
info.WindowStyle = ProcessWindowStyle.Hidden
Dim process As New System.Diagnostics.Process
process.StartInfo = info
process.Start()
process.WaitForExit()
process.Close()
Please help me how to resolve this issues ...
As it countains spaces, you need double quotes around the /SQLSVCACCOUNT parameter value, like so:
/SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE"

Resources