Posts

System Center Configuration Manager Tools

System Center Configuration Managaer 2012 R2 Toolkit https://www.microsoft.com/en-in/download/details.aspx?id=50012 The Microsoft System Center 2012 R2 Configuration Manager Toolkit contains fifteen downloadable tools to help you manage and troubleshoot Microsoft System Center 2012 R2 Configuration Manager. The following tools are included in this toolkit. Server Based Tools * DP Job Manager, Collection Evaluation Viewer, Content Library Explorer , Security Configuration Wizard Template for Microsoft System Center 2012 R2 Configuration Manager , Content Library Transfer, Content Ownership Tool, Role-based Administration Modeling and Auditing Tool, Run Metering Summarization Tool Client Based Tools Client Spy, Configuration Manager Trace Log Viewer, Deployment Monitoring Tool ,Policy Spy , Power Viewer Tool, Send Schedule Tool, Wakeup Spy Client Center for Configuration Manager https://github.com/rzander/sccmclictr

Update 1706 for Configuration Manager Technical Preview Branch

Update 1706 for Configuration Manager Technical preview branch is available for a month now. There are many new features / improvements included in this update. https://blogs.technet.microsoft.com/enterprisemobility/2017/06/23/update-1706-for-configuration-manager-technical-preview-branch-available-now/

Troubleshooting System Center Endpoint Protection (SCEP) Client

Image
Microsoft System Center Endpoint Protection provides an antimalware and security solution for the Microsoft platform. This can be integrated with System Center Configuration Manager. I have consolidated the information which are useful for SCEP client side troubleshooting. 1. Managing Endpoint Protection client with Command Line Interface – MpCmdRun.exe The MpCmdRun.exe (Microsoft Antimalware service command line utility) is very useful tool to manage local Endpoint protection client with command line.  The MpCmdRun.exe is located in C:\Program Files\Microsoft Security Client folder. On Windows 10 machines, the MpCmdRun.exe is available in C:\Program Files\Windows Defender folder. When executed, this command automatically creates a log file named as MpCmdRun.log in C:\Users\ username\AppData\Local\Temp folder. This log file records the commands that are executed using MpCmdRun.exe. Few of most commonly used command lines are listed below. For a complete l list of av...

Powershell - Add Users / Computers to AD Group

The below script can be used to add multiple user or computer to an AD group. The list of users / computers to be provided in the text file. Usage: See below example. To see full help Type script name and press enter. You have to provide computer name or user name (SAM Account) in text file. Add computer to AD Group     .\AddObjectsToADGroup.ps1 -FileName Computers.txt -ADGroupName "TestGroup" -ObjectType Computer .Add user to AD group     .\AddObjectsToADGroup.ps1 -FileName Computers.txt -ADGroupName "TestGroup" -ObjectType User Github Repostiorty Raw File #Script #Version: 1.0 #Author: Equebal Ahmad <# .SYNOPSIS     Add the computers / users account to an AD Group .DESCRIPTION     Add the computers / users account to an AD Group     The script can add user and computer in an AD group. You need to pass this with ObjectType parameter. .EXAMPLE     .\AddObjectsToADGrou...

Configuration Manager - Maintenance Window for member of specific collection

The below SQL query will provide the details of Maintenance Window with collection name for all members in provided collection. select fcm.Name as 'Server Name',sw.CollectionID,col.Name as 'Collection Name',sw.Name as 'MW Name',sw.Description,sw.StartTime,sw.Duration,sw.IsEnabled from v_ServiceWindow SW inner join v_FullCollectionMembership fcm on fcm.CollectionID = sw.CollectionID inner join v_Collection col on col.CollectionID = sw.CollectionID where fcm.name in (select name from v_FullCollectionMembership where collectionID = ' CollectionID ')

Powershell - Get system uptime

$Computer = Read-Host   "Input Computer Name " $LastBoot = (Get-WmiObject -Class Win32_OperatingSystem -ComputerName $Computer ).LastBootUpTime $uptime = (Get-Date) - [System.Management.ManagementDateTimeconverter]::ToDateTime($LastBoot) Write-Host  "$Computer uptime is:"     [$uptime]   [dd:hh:mm:ss.ms]

Powershell - List AD Organizational Unit and GPOs linked to them

The below script will search Active Directory for all Organizational Unit which contain specific name and list them along with all Group Policies linked to those OUs. Example: The below command will get a list of all OUs which name contains 'Test'. It will also show the details of all GPOs linked to OUs. Usage Example: .\Get-OUList.ps1 –OUName “Test” #Script [ CmdletBinding () ] Param (   [ Parameter (Mandatory = $True ) ]   [ string ] $OUName   ) $invocation = ( Get-Variable MyInvocation ) . Value $directorypath = Split-Path $invocation . MyCommand . Path $outputfile = $directorypath + "\Result.csv" $OUName = "*" + $OUName + "*" $Results = @() $OUList = Get-ADOrganizationalUnit -Filter * | Where-Object -FilterScript { $PSItem . distinguishedname -like $OUName } foreach ( $OU in $OUList ){     $LinkedGPOs = Get-ADOrganizationalUnit -Identity $OU | select -Expa...