Skip to content
  • Twitter
  • Powershell
  • GitHub
  • Windows 10
  • SCCM

Exec|Mgr

ConfigMgr/Powershell Bits & Pieces

Month: August 2015

List SCCM Collections for PC – Powershell

Posted on August 20, 2015April 4, 2018 by Dan Padgett

This script will list all collections a machine is a member of, script should be called like " .\script.ps1 -smartname HOSTNAME" Hostname should be the computers AD object name. You will need to change the following values: $SiteCode = "XXX" $SiteServer = "prodservername" https://gist.github.com/danjpadgett/75e8010ebef99f46f59d.js

Leave a comment

Add Group Membership Powershell

Posted on August 20, 2015April 4, 2018 by Dan Padgett

This script will add an AD Computer member to groups, script should be called like " .\script.ps1 -smartname HOSTNAME"Hostname should be the computers AD object name.  https://gist.github.com/padgo/a8505459d07ea758c264.js

Leave a comment

Search

Archive

  • June 2021 (1)
  • September 2018 (1)
  • August 2018 (1)
  • June 2018 (1)
  • April 2018 (2)
  • February 2018 (3)
  • November 2017 (1)
  • September 2017 (1)
  • July 2017 (1)
  • March 2017 (2)
  • February 2017 (1)
  • September 2016 (1)
  • August 2016 (2)
  • May 2016 (3)
  • April 2016 (2)
  • March 2016 (1)
  • February 2016 (4)
  • January 2016 (2)
  • December 2015 (2)
  • November 2015 (2)
  • August 2015 (2)
  • January 2015 (1)
  • September 2014 (1)
  • June 2014 (4)

Follow me on Twitter

My Tweets
  • Twitter
  • Powershell
  • GitHub
  • Windows 10
  • SCCM

Search

Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Exec|Mgr
    • Already have a WordPress.com account? Log in now.
    • Exec|Mgr
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar