How to install a .msu update on Windows 7 from the command line


object meta data information

repadmin /showobjmeta . “CN=JAYESH ROHIT,OU=Users,OU=Kolkatta,OU=Essel Mining,OU=Mining & Ferro Chem,OU=India,DC=testDC=me,DC=com”

. means search all the server

repadmin /showobjmeta ab-mumahu-dc03 “CN=JAYESH ROHIT,OU=Users,OU=Kolkatta,OU=Essel Mining,OU=Mining & Ferro Chem,OU=India,DC=abgplanet,DC=abg,DC=com”

specific DC server name :ab-mumahu-dc03

Search users specific OU

Get-ADUser -Filter * -SearchBase “OU=Belgaum,OU=Hindalco Industries,OU=Metals,OU=India,DC=me,DC=test,DC=com” -Properties * | select ‘SamAccountName’ , UserPrincipalName | Out-GridView

Note: result only view SAMACCOUNTNAME and UPN name.


Domain Join Debug Log

  • Open the file C:\WINDOWS\Debug\NetSetup.log.
  • Go to the very bottom of the file and find the last “NetpDoDomainJoin: status:”
  • If it is not 0x0, then the domain join failed and the code listed instead of 0x0 is the reason it failed.
  • Now, look at each previous line in the file until you come across the last line in the file that returned the same failure code as your Domain Join.
  • You have found the step of the domain join that failed and the reason it failed.

How can I tell if 2008 R2 AD recycle bin is turned on?

PS C:\Users\Administrator> Get-ADOptionalFeature -Filter ‘name -like “Recycle Bin Feature”‘
 DistinguishedName  : CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Conf
EnabledScopes      : {}
FeatureGUID        : 766ddcd8-acd0-445e-f3b9-a7f9b6744f2a
FeatureScope       : {ForestOrConfigurationSet}
IsDisableable      : False
Name               : Recycle Bin Feature
ObjectClass        : msDS-OptionalFeature
ObjectGUID         : e298994a-88e9-47a5-807a-7009c18098f5
RequiredDomainMode :
RequiredForestMode : Windows2008R2Forest
if ENABLEDSCOPES contains values, then it is enabled! As you can see above, in my AD forest it is disabled. Remember: after enabling, you cannot disable it anymore!


OS Versions

%d bloggers like this: