We’ve worked very hard to automate our environment where I work. As a part of that I’ve wrote a lot of PowerShell functions to perform various actions. I even went so far as to put together a module.
Copy Site Settings between sites
This post is for a coworker of mine, Daniel. He’s a smart cookie I work with and has a great blog, PotentEngineer. Here ya go my friend!
For the last two years, we’ve just had workstations in our SCCM environment, and now we are starting to bring in the servers. The server teams have a patching schedule and there are quite a few of them. They also change every month, they always relative to Patch Tuesday and have different reboot times. As … Read moreSet Maintenance Windows for Software Updates
The story Our distribution points were getting pretty full, and I wanted to see if I could clean them up before requesting more disk space. I wanted to go out and make sure we remove any packages that were on our DP’s and DP Groups that were not referenced by a task sequence or had … Read moreRemove Unreferenced packages from Distribution Points
I like to log things when I code, especially while debugging. I also like how I can watch logs real time with CMTrace, so I wrote a function that writes out the log entries in a format CMTrace can read. To use it, at the beginning of the script you are writing, these are the parameters to add for logging.
This has been the week from hell. Our software update points have been having issues syncing for quite a while and we finally had to rip them out and reinstall them. We changed the configuration and use a shared database and content store for all the SUPs in a site.
This script will put all the site systems and their roles in an Excel spreadsheet.
I was discussing the use of single quotes with a colleague, Daniel Ratliff, and how to have a single quote show up in a string delimited by single quotes.