Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU

[webservices] [mdt] [sql 2012 R2] web service sql server 2012 [powershell] MDT

Publié le par damcuvelier

une procédure pour créer un web deploy setup:
https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/powershell-scripts-for-automating-web-deploy-setup

permet de créer une database dédiée

reste à trouver un script pour interroger la base sql depuis powershell.
peut être en modifiant "https://gallery.technet.microsoft.com/scriptcenter/Script-to-verify-web-ceb46109"
pour interroger la base et récupérer les informations

 

mieux: utiliser ces procédures:

https://www.mssqltips.com/sqlservertip/4294/accessing-sql-server-reporting-services-data-using-powershell/

https://www.packtpub.com/mapt/book/big_data_and_business_intelligence/9781785283321/11/ch11lvl1sec198/extracting-data-from-a-web-service

https://www.codeproject.com/Tips/794949/Query-Webservices-with-Powershell

 

et fabriquer une query powershell de ce type:
 

$URI = "http://www.applications.<domain>/Deploymentservice/Applicationliste.asmx"
$szProx = New-WebServiceProxy -Uri $URI -Class Applications -Namespace webservice
$szProx

(result:
applications            cmdline
app1                    setup1.exe /s...
app2                    msiexec app2.msi /i...)

$cmdline = $szProx.cmdline

 

 

 

Commenter cet article