![]() Windows actually has a free tool to help do this, and can remove old versions of Windows that stay on the computer until you specifically delete them. The first question that comes to mind is how much free space do you have available on that Windows partition? If it's getting anywhere near full, you can try to clear up free space. ![]() I think you could get away with much less. The SysInternal tools are great and could be downloaded, extracted, and used for this purpose, probably more reliably even, but adds complexity and more dependencies.Not sure where you read this about needing 128 gb on Windows. I think Task Scheduler is the best way to run as SYSTEM due to the fact that many company policies or AV vendors view PsExec as a potential security threat. I had added an extra step in the task sequence right after this script to validate that it was done before moving on (secondary insurance), so I'll have to spend some more time verifying that the timing logic itself is working as intended.Īs for invoking it, you can just call "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" with the parameters "-ExecutionPolicy Bypass -File " which will avoid having to change execution policy on the system. We have about 13,000 Mac's, and I've been using Configuration Manager prestages that use a trimmed down version of this script as part of the task sequence. You can definitely include it in the repo! I know there are a few things that could be done better, especially around the timing and reliability of the scheduled task, so as I iron those out, I'll submit the changes for you. # Create Output Directory if it does not exist ![]() # Disable Invoke-WebRequest progress bar to speed up download due to bug $Model = (Get-WmiObject -Class Win32_ComputerSystem).Model, Path = c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\WindowsSupport.dmg Path = c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\Payload~Ĭalling 7-Zip command: C:\Program Files\7-Zip\7z.exe x -oC:\Users\Antonio\Downloads\BootCamp-031-55710 -y c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\WindowsSupport.dmgĮxtracting archive: c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\WindowsSupport.dmg Path = c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\BootCampESD.pkgĬalling 7-Zip command: C:\Program Files\7-Zip\7z.exe e -oc:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife -y c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\Payload~Įxtracting archive: c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\Payload~ Making directory C:\Users\Antonio\Downloads\BootCamp-031-55710.Ĭalling 7-Zip command: C:\Program Files\7-Zip\7z.exe e -oc:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife -y c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\BootCampESD.pkgħ-Zip 16.04 : Copyright (c) 1999-2016 Igor Pavlov : Įxtracting archive: c:\users\antonio\appdata\local\temp\bootcamp-unpack_nevife\BootCampESD.pkg Model supported in package distribution file at. C:\Users\Antonio\Downloads>brigadier.exe -k
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |