Wednesday, 9 May 2018

How to find SID for an Object in Active Directory

1:
How to find SID for an Object in Active Directory.

 Get-ADUser -Identity userid -Properties *

2:
How to find SID for an Object in Active Directory using PStools

C:\PSTool\PSTools>psgetsid user
SID for domain\user: S-1-5-21-1859561886-563848fdf002-90733365-71856

To find name against a SID

C:\PSTool\PSTools>psgetsid S-1-5-21-18fdsfdfs1886-563848002-907024965-7fdfs56
Account for S-1-5-21-1859561886-563848002-907333965-71856:
User: domain\user

Monday, 9 April 2018

unable to install an application on client machines through SCCM 2016


Getting the error "The software change returned error code 0x87D00607(-2016410105)".

after looking into it more, the reason was that the client machines IPs were not added in boundaries.  after adding the required IP ranges in boundary group, issue was resolved.

Monday, 26 March 2018

Block NDRs of a DynamicDistributiongroup to sender

I have a dynamic distribution group which contain thousands of members, some members does not care of their mailboxes and once some one from higher management send email to this group then they get hundreds of NDRs regarding full mailbox issues.
So i decided to stop these NDRs to received to the sender a follow the following way to accomplish this task.

To check the current status of the group: 
[PS] C:\Windows\system32>get-DynamicDistributionGroup -Identity "Abcgroup"| FL ReportToOriginatorEnabled

ReportToOriginatorEnabled : True

To apply the required changes on the group: 
[PS] C:\Windows\system32>Set-dynamicDistributionGroup -Identity "abcgroup" -ReportToOriginatorEnabled $False

To confirm that the required changes applied.

[PS] C:\Windows\system32>get-DynamicDistributionGroup -Identity "abcgroup"| FL ReportToOriginatorEnabled

ReportToOriginatorEnabled : False


Tuesday, 20 February 2018

SCCM errrors and solutions

Error:
 Failed to get DP locations as the expected version from MP 'MPname'. Error 0x87d00215
Solution:

adding boundary Groups to distribution point resolved my issue.
-Administration-->Site configuration-->servers and site system roles-->right click on Distribution point-->properties-->boundary groups and add the boundary group in which the client computer was residing

other settings to check

Select the site under administration > site configuration > sites

- Opened Hierarchy Settings (second button on top left corner)

- Enabled the "Use a fallback site" checkbox and selected my only site from the list
-Create a boundary group and add the IP ranges/AD sites in which the client computer objects resides

Resolved: SCCM 1702 updates synchronization issues

After installing WSUS role and adding the Software Update Point, SCCM was not synchronizing with Microsoft updates server/not getting the updates from Microsoft update Server. getting the following errors in SCCM logs (WCM and Wsyncmgr)

1:
"wsus synchronization failed 6703"

2:

"Sync failed: WSUS update source not found on site 101. Please refer to WCM.log for configuration error details.. Source: getSiteUpdateSource"
in SCCM-->Monitoring--->Software update point--->critical events

3:
" WSUS Synchronization failed.
 Message: WSUS update source not found on site 101. Please refer to WCM.log for configuration error details..
 Source: getSiteUpdateSource.
  The operating system reported error 2147500037: Unspecified error "

4:
"WSUS Configuration Manager failed to subscribe to update categories and classifications on WSUS Server "ServerName"."

After unchecking the Windows 7 Language Pack and restarting the synchronization the issue was resolved.



Tuesday, 26 September 2017

How much email sent and received by a single user in Exchange server 2013

To show that How much emails sent and received by a single user in Exchange server 2013 you can use the following commands accordingly.

[PS] C:\Windows\system32>get-messagetrackinglog -server mbx -resultsize unlimited -sender user@domain.com -start (get-date).adddays(-1) | select messageid -unique | measure

Count    : 1597
Average  :
Sum      :
Maximum  :
Minimum  :
Property :


[PS] C:\Windows\system32>get-messagetrackinglog -server mbx -resultsize unlimited -Recipients user@domain.com -start (get-date).adddays(-1) | select messageid -unique | measure

Count    : 2440
Average  :
Sum      :
Maximum  :
Minimum  :
Property :
 

Wednesday, 12 July 2017

Resolved (1753) There are no more end points available from the endpoint mapper

Few days back i faced hardware issue with one of my DC in my AD environment (Windows server 2008 R2), and the only option with me was to make that server on new hardware with same name and IP.
So i start for cleaning the meta data of old DC as per recommendation of Microsoft.
After cleaning the meta Data of that old DC i check replication through the following command and got the error "(1753) There are no more end points available from the endpoint mapper"

-==============------Start--------///////////-=

C:\Users\Admin>repadmin /replsum
Replication Summary Start Time: 2017-07-11 21:19:55
Beginning data collection for replication summary, this may take awhile:
  ............

Source DSA          largest delta    fails/total %%   error
 A-DC01         03d.03h:32m:35s    5 /   5  100  (1753) There are no more end
points available from the endpoint mapper.
 A-DC02                 12m:56s    0 /   5    0
 H-DC01                   21m:29s    0 /   5    0
 H-DC02                   32m:46s    0 /  10    0
 B-DC01                  34m:45s    0 /  10    0
 B-DC02                  34m:45s    0 /  10    0
 B-DC03                  32m:59s    0 /  25    0
 K-DC01                  32m:57s    0 /  10    0
 K-DC02                  32m:49s    0 /   5    0

Destination DSA     largest delta    fails/total %%   error
A-DC02         03d.03h:32m:36s    5 /  10   50  (1753) There are no more end
points available from the endpoint mapper.
 H-DC01                   32m:47s    0 /  10    0
 H-DC02                   21m:29s    0 /   5    0
 B-DC01                  27m:56s    0 /  15    0
 B-DC02                  32m:59s    0 /  15    0
 B-DC03                  34m:46s    0 /  15    0
 K-DC01                  32m:50s    0 /   5    0
 K-DC02                  32m:57s    0 /  10    0
-==============------End--------///////////-=
Then i started building the new server with the following steps.

  1. Install same OS version on new hardware
  2. Assign the same Name
  3. Assign the same IP
  4. Joined to the domain
  5. Start/Run DCpromo on it
After moving few steps next i got an error something like "that DC with same Name already exist and if you move next then that all change will be applied on this new DC" i click ok/Yes and proceed the wizard, in summary page of wizard i did not found any error, wizard completed successfully.

After that i check replication as mentioned below.

__=====---Start--====

C:\Users\admin>repadmin /replsum
Replication Summary Start Time: 2017-07-12 12:35:01
Beginning data collection for replication summary, this may take awhile:
  ............

Source DSA          largest delta    fails/total %%   error
S-DC01                 48m:04s    0 /   5    0
S-DC02                 48m:07s    0 /  10    0
H-DC01                   36m:35s    0 /   5    0
H-DC02                   47m:51s    0 /  10    0
B-DC01                  49m:51s    0 /  10    0
B-DC02                  49m:51s    0 /  10    0
B-DC03                  48m:04s    0 /  25    0
K-DC01                  48m:00s    0 /  10    0
K-DC02                  47m:48s    0 /   5    0

Destination DSA     largest delta    fails/total %%   error
S-DC01                 48m:08s    0 /   5    0
S-DC02                 48m:05s    0 /  10    0
H-DC01                   47m:52s    0 /  10    0
H-DC02                   36m:35s    0 /   5    0
B-DC01                  43m:01s    0 /  15    0
B-DC02                  48m:04s    0 /  15    0
B-DC03                  49m:52s    0 /  15    0
K-DC01                  47m:49s    0 /   5    0
K-DC02                  48m:00s    0 /  10    0

--=======End---=====
No error found, "(1753) There are no more end points available from the endpoint mapper" error gone.
issue resolved.