running Enter-PSSession -ComputerName MyServer001 -Credential pricing\dbaconnected at[MyServer001]: PS C:\Users\dba\Documents>"for clear post I placed setup params on separate line, in my call params on same line"[b]trying to run [/b][MyServer001]: PS C:\Users\dba\Documents>\\myserver123\microsoft\mssql\2014\Ent\Setup.exe /Q /ACTION=Install /IACCEPTSQLSERVERLICENSETERMS /FEATURES=SQL, Tools /INSTANCENAME="S999" /AGTSVCACCOUNT="pricing\dba" /AGTSVCPASSWORD='mypass' /SAPWD="AAA_sa" /SECURITYMODE=SQL /SQLSVCACCOUNT="pricing\svcsql" /SQLSVCPASSWORD="1234" /SQLSYSADMINACCOUNTS="pricing\svcsql" "pricing\dba" [b] getting error[/b] powershell.exe : The term '\\myserver123\microsoft\mssql\2014\Ent\Setup.exe' is + CategoryInfo : NotSpecified: (The term '\\mys...\Setup.exe' is :String) [], RemoteException + FullyQualifiedErrorId : NativeCommandErrornot recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. [b] also tried to test if my connection can see the shared file[/b] [MyServer001]: PS C:\Users\dba\Documents>cd \\myserver123\microsoft\mssql\2014\Ent Set-Location : Cannot find path '\\myserver123\microsoft\mssql\2014\Ent' because it does not exist. + CategoryInfo : ObjectNotFound: (\\myserver123\...oft\mssql\2014\:String) [Set-Location], ItemNotFound xception + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand [b]Question [/b] How correctly run remote unattended sql setup using powershell?
↧