From 956dc0e3193dcf63608e1aed5e8c651b48f3d0ca Mon Sep 17 00:00:00 2001 From: David Yoder Date: Thu, 28 Apr 2022 13:51:31 -0400 Subject: [PATCH] added script --- Install-AutodeskDesktopConnector.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Install-AutodeskDesktopConnector.ps1 diff --git a/Install-AutodeskDesktopConnector.ps1 b/Install-AutodeskDesktopConnector.ps1 new file mode 100644 index 0000000..fab15a2 --- /dev/null +++ b/Install-AutodeskDesktopConnector.ps1 @@ -0,0 +1,15 @@ +## Define URL for downloading the installer +$URL = 'https://efulfillment.autodesk.com/NetSWDLD/2020/DTCONN/2FF3C1A4-14EC-3C6D-B127-47327638CC14/SFX/Autodesk_Desktop_Connector_15_5_0_1684_Win_64bit.sfx.exe' + +## Make sure the URL is valid before we do anything +If ( IsURLValid $URL ) +{ + ## Set the local file name to download to + $FILE = '{0}{1}' -f (GetTempPath),(Split-Path $URL -Leaf) + + ## Download installer + Download-File -URL $URL -File $FILE + + ## Install package + Start-Process $FILE +} \ No newline at end of file