To create a package deployment for Visual Studio Code (VS Code) with Auto Update disabled you must do the following. Install the version of Visual Studio Code you plan to deploy. Browse to: C:\Program Files\Microsoft VS Code\resources\app Open the “product.json” file and remove the following line:“updateUrl”: “https://update.code.visualstudio.com”, Save the “product.json” file to the location of […]
The following script will detect check if the CCMSetup binaries are locally installed. If they are available, it will use those binaries to run the remove/install. If they are not it will reach out to the UNC path specified in the script and copy them locally for the removal/install. Please note that the system has […]
The following code will query the WMI database for installed applications that match what is specified and then invoke the Uninstall() command. This PowerShell command comes very handy when writing removal scripts. Then after you know the exact product name, use the following command to uninstall. Since I’m using the match command, I would recommend […]
This script will search AD for any computer objects that match the OperatingSystem value of Windows 7. It will then disable those systems and move them to a container called “To Be Removed” at the root of the domain. The second part imports your SCCM module, mounts the drive and then removes those same objects […]
This PowerShell script will check the registry for the last time the policy ran, calculate the current date and compare to a set value (30 Days). It will then return $true or $false if Group Policy has not run in more than 30 days.