mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 14:01:42 -07:00
Add tests for windows setup module.
This commit is contained in:
parent
bceaf96fd6
commit
5b85252043
3 changed files with 38 additions and 3 deletions
|
@ -28,7 +28,6 @@ $powershellpath = "C:\powershell"
|
|||
|
||||
function download-file
|
||||
{
|
||||
Get-Process | Out-File c:\powershell\whatisrunningrightnow.txt
|
||||
param ([string]$path, [string]$local)
|
||||
$client = new-object system.net.WebClient
|
||||
$client.Headers.Add("user-agent", "PowerShell")
|
||||
|
@ -78,6 +77,6 @@ else
|
|||
}
|
||||
|
||||
$FileName = $DownLoadUrl.Split('/')[-1]
|
||||
# download-file $downloadurl "$powershellpath\$filename"
|
||||
|
||||
download-file $downloadurl "$powershellpath\$filename"
|
||||
write-host "$powershellpath\$filename"
|
||||
."$powershellpath\$filename" /quiet /log "C:\powershell\install.log"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue