Ivan’s Corner: a sysadmin thoughts

  • SCCM/MECM How to set computer name automatically during Task Sequence

    SCCM/MECM How to set computer name automatically during Task Sequence

    I know it is possible to set the computer name before you start the task sequence by adding the OSDComputerName variable to a collection – usually used in the Unknown Computers collection. I know as well how to generate it based on the serial number of the workstation or laptop. Well, this was not enough…

  • Simple PowerShell Account Creation script

    Simple PowerShell Account Creation script

    Recently I was inspired by the excellent Master User Creator, which we cannot use, and I had some free time, so I decided to create something simple, but still useful for my service desk guys. I ended with following script – combination of PowerShell , Mahapps and XAML. Script requires PowerShell 7, installed RSAT tools…

  • PowerShell note for myself – Hashtables, arrays and their output to .csv in the wanted way

    This is a note for myself to finally remember once and for all how to export a result to .csv file properly (with column headers in this case) using GetEnumerator()

  • Lazy Exchange On-Premises Mailbox Creator

    One of the ways to use shared mailbox with exchange is to grant “Full Access” and “Send As” access through security group. With the latest exchange security group must be universal and mail enabled. Recently I had to create bunch of mailboxes and found the process… repeating and boring, then I decided that there must…

  • Get size of all items in current path

    I was looking for an easy way to get the size of all user profiles folder through PowerShell and found this woshub and inspired by it ended with the following function which measures the size of everything in current path if used without parameter. Made it a function just to be able to autoload it.…

  • SCCM Reports Service Account

    If you have to change the Report Server service account password (never happens, right?!?) do yourself a favor and before rebuilding the entire report service go to Administration –> Security –> Accounts, double click on the account in question, click SET and enter the new password. Symptoms are: 1. Cannot impersonate user for data source2.…

  • Dell Workstations (3630) UEFI Bios settings – no bootable device found

    Recently I had to install windows through SCCM and Remote Distribution point with enabled PXE support in remote site which doesn’t have an IT technician available and this turned to a challenge for a regular user. I’m using MDT Task sequence and we support secure boot. In order to make it work few settings in…

  • SCCM – Change Site Code on multiple computers

    If you had to change the sccm client site code on multiple computers (after sccm migration or new/upgraded server installation) nowadays you might have discovered that it’s not as easy as it should be. You could push the new site client to all computers generating a lot of heat to the network or try deprecated…

  • PSWriteHTML is awesome

    Recently I was playing with the excellent PSWriteHTML powershell module and ended up creating a dashboard from events. Since I had a hard time going through all of the dashboard option, I’ve decided to share what I did, may be it will help someone. The example script requires PSWriteHTML module installed. Event properties I got…

  • SCCM – Upgrade Microsoft Office

    Recently I had the task to upgrade Microsoft Office from 2010 to 2016 (I now it’s year 2020 now 🙂 using SCCM. I was thinking that it shouldn’t be a big deal, but…. it turned out differently. There was lync client, custom add-in, old office uninstall failed with random errors… To cut the long story…

Got any book recommendations?