This PowerShell script will check the registry for the last time the Group Policy ran, calculate the current date and compare to a set value (30 Days). It will the result is greater than the set value it will return $true or $false.
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 […]
I wrote this script to detect the disk number and assign it a variable in the SCCM task sequence. Most hardware manufactures always set the default disk to 0. However, there are some instances where that is not the case. Running this script before the task sequence formats the hard drive will assign the correct […]