Posts

Showing posts from March, 2017

Script - Add Computer to SCCM Collection

This is a updated version of my Add Device to SCCM Collection script. This version allows you to enter your site code and site server to import the powershell modules directly from the server. If you want to bypass the form to enter your site info you can specify your site server and site code as a parameter. I have also added a parameter to filter what collection show in the dropdown box. Param( $SiteServer, $SiteCode, $Filter = "*" ) #Generates the form to enter site info function Generate-SITEform { Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing $form = New-Object System.Windows.Forms.Form $form.Text = "Site Info" $form.Size = New-Object System.Drawing.Size(300,250) $form.StartPosition = "CenterScreen" #Create the ok button $OKButton = New-Object System.Windows.Forms.Button $OKButton.Location = New-Object System.Drawing.Point(25,130) $OKButton.Size = New-Object System.Drawing.Size(75,23) $OKButt...