Archive

Archive for the ‘Microsoft’ Category

CVTSP

Spent about 7 hours and cleared CVTSP (Commvault v11 Technical Sales Professional) online free exam.

Categories: Microsoft

Alignment Offset in Windows

March 15, 2014 Leave a comment

Go to RUN->CMD-> execute the below command

wmic partition get BlockSize, StartingOffset, Name, Index

Categories: Microsoft

How can I view the allocation unit size of a NTFS partition

April 29, 2013 Leave a comment

Use “fsutil fsinfo ntfsinfo” utility to view the default allocation unit size. The “Bytes Per Cluster” is the equivalent of the allocation unit.

NTFS allocation size

 

Categories: Microsoft

Multiple Accounts Login in Gtalk

February 3, 2013 Leave a comment
  • Go to Gtalk installed directory. Normally path would be “C:\Program Files\Google\Google Talk\googletalk.exe”
  • Create shortcut for “googletalk.exe” and go to your shortcut add /nomutex switch in target
  • After adding /nomutex switch you can login Gtalk with multiple accounts

gtalk

Categories: Microsoft

Physical disk performance counters

December 18, 2012 Leave a comment

we need to add the below performance counters for finding physical disk’s performance.

perfmon-disk

perfmon-graph

Avg.Disk sec/transfer=Avg. Disk Sec/Read,Avg. Disk Sec/Write

Avg. Disk Sec/Read and Avg. Disk Sec/Write: Both counters measured in seconds in perfmon.we need to convert into milliseconds. This Read/Write latency is morethan 25 ms disk system is experiences latency issue. we need to replace the faster disk.

Less than 10 ms – very good
Between 10 – 20 ms – okay
Between 20 – 50 ms – slow, needs attention
Greater than 50 ms – Serious I/O bottleneck

Source: MSDN

Categories: Microsoft

Virus set my files in all drive to hidden.

December 12, 2012 1 comment

Usually when virus hide files and it also remove folder options it is much difficult to get the files quickly if one is in hurry.I’m going to tell the the way in which you can unhide all the hidden files.

 

* use this command for all the folders in the drive. attrib *. -h -s /s /d

Steps 1

1. Go to Start > Run > type cmd

2. Dos will open type cd\

3. Now type the drive letter in which you want to Unhide the files lets suppose in my case its E: this will open the E: drive

4. If you want to see all hidden files and folders type E:\>dir/ah

5. Now type attrib *. -h -s /s /d

6. Now close cmd using exit command

Steps 2 (folder by folder)

1. Go to Start > Run > type cmd

2. Dos will open type cd\

3. Now type the drive letter in which you want to Unhide the files lets suppose in my case its E: this will open the E: drive

4. If you want to see all hidden files and folders type E:\>dir/ah (*you will now see the files/folders with hidden attributes )

5. Type “attrib [name of file/folder] -r -a -s -h” if you’re going to unhide files, you should type the whole name plus the extension (example: attrib banner.psd -r -a -s -h)

6. Now check you drive. It should be there

 

Categories: Microsoft

LDAP Custom Queries

October 9, 2012 1 comment

In order to configure and use server query do the following.

Go to Active Directory Users and Computers:

Right click the Saved Queries folder and select New, Query.

Enter an appropriate Name and Description.

Make sure the query root is set to the domain level you want the query to pertain to.

Select the Include subcontainers check box if you want the query to search all subcontainers.

Click Define Query.

In the Find dialog box, click the Find drop-down arrow and select Custom Search.

On the Advanced tab, enter your LDAP query string into the Enter LDAP query box.

Click OK twice.

Active Directory Saved Queries Templates

Find Groups that contains the word admin

(objectcategory=group)(samaccountname=*admin*)

Find users who have admin in description field

(objectcategory=person)(description=*admin*)

Find all Universal Groups

(groupType:1.2.840.113556.1.4.803:=8)

Empty Groups with No Members

(objectCategory=group)(!member=*)

Finds all groups defined as a Global Group, a Domain Local Group, or a Universal Group

(groupType:1.2.840.113556.1.4.804:=14)

Find all User with the name Bob

(objectcategory=person)(samaccountname=*Bob*)

Find user accounts with passwords set to never expire

(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536)

Find all users that never log in to domain

(&(&(objectCategory=person)(objectClass=user))(|(lastLogon=0)(!(lastLogon=*))))

Find user accounts with no log on script

(objectcategory=person)(!scriptPath=*)

Find user accounts with no profile path

(objectcategory=person)(!profilepath=*)

Finds non disabled accounts that must change their password at next logon

(objectCategory=person)(objectClass=user)(pwdLastSet=0)(!useraccountcontrol:1.2.840.113556.1.4.803:=2)

Finds all disabled accounts in active directory

(objectCategory=person)(objectClass=user)(!useraccountcontrol:1.2.840.113556.1.4.803:=2)

Finds all locked out accounts

(objectCategory=person)(objectClass=user)(useraccountcontrol:1.2.840.113556.1.4.803:=16)

Finds Domain Local Groups

(groupType:1.2.840.113556.1.4.803:=4)

Finds all Users with Email Address set

(objectcategory=person)(mail=*)

Finds all Users with no Email Address

(objectcategory=person)(!mail=*)

Find all Users, Groups or Contacts where Company or Description is Contractors

(|(objectcategory=user)(objectcategory=group)(objectcategory=contact))(|(description=North*)(company=Contractors*))

Find all Users with Mobile numbers 712 or 155

(objectcategory=user)(|(mobile=712*)(mobile=155*))

Find all Users with Dial-In permissions

(objectCategory=user)(msNPAllowDialin=TRUE)

Find All printers with Color printing capability

Note: server name must be changed

(&(&(&(uncName=*Servername*)(objectCategory=printQueue)(printColor=TRUE))))

Find Users Mailboxes Overriding Exchange Size Limit Policies

(&(&(&objectCategory=user)(mDBUseDefaults=FALSE)))

Find all Users that need to change password on next login.

(&(objectCategory=user)(pwdLastSet=0))

Find all Users that are almost Locked-Out

Notice the “>=” that means “Greater than or equal to”.

(objectCategory=user)(badPwdCount>=2)

Find all Computers that do not have a Description

(objectCategory=computer)(!description=*)

Find all users with Hidden Mailboxes

(&(objectCategory=person)(objectClass=user)(msExchHideFromAddressLists=TRUE))

Find all Windows 2000 SP4 computers

(&(&(&(objectCategory=Computer)(operatingSystem=Windows 2000 Professional)(operatingSystemServicePack=Service Pack 4))))

Find all Windows XP SP2 computers

(&(&(&(&(&(&(&(objectCategory=Computer)(operatingSystem=Windows XP Professional)(operatingSystemServicePack=Service Pack 2))))))))

Find all Windows XP SP3 computers

(&(&(&(&(&(&(&(objectCategory=Computer)(operatingSystem=Windows XP Professional)(operatingSystemServicePack=Service Pack 3))))))))

Find all Vista SP1 computers

(&(&(&(&(sAMAccountType=805306369)(objectCategory=computer)(operatingSystem=Windows Vista*)(operatingSystemServicePack=Service Pack 1)))))

Find All Workstations

(sAMAccountType=805306369)

Find all 2003 Servers Non-DCs

(&(&(&(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows Server 2003*)))

Find all 2003 Servers – DCs

(&(&(&(samAccountType=805306369)(primaryGroupID=516)(objectCategory=computer)(operatingSystem=Windows Server 2003*))))

Find all Server 2008

(&(&(&(&(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows Server 2008*))))

——————————————————————————

#Find All Workstations

(sAMAccountType=805306369)

#Find all 2003 Servers Non-DCs

(&(&(&(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows Server 2003*)))

#Find all 2003 Servers – DCs

(&(&(&(samAccountType=805306369)(primaryGroupID=516)(objectCategory=computer)(operatingSystem=Windows Server 2003*))))

#Find all Server 2008

(&(&(&(&(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows Server 2008*))))

#Find all Windows 2000 SP4 computers

(&(&(&(objectCategory=Computer)(operatingSystem=Windows 2000 Professional)(operatingSystemServicePack=Service Pack 4))))

#Find all Windows XP SP2 computers

(&(&(&(&(&(&(&(objectCategory=Computer)(operatingSystem=Windows XP Professional)(operatingSystemServicePack=Service Pack 2))))))))

#Find all Windows XP SP3 computers

(&(&(&(&(&(&(&(objectCategory=Computer)(operatingSystem=Windows XP Professional)(operatingSystemServicePack=Service Pack 3))))))))

#Find all Vista SP1 computers

(&(&(&(&(sAMAccountType=805306369)(objectCategory=computer)(operatingSystem=Windows Vista*)(operatingSystemServicePack=Service Pack 1)))))

(&(&(&(&(sAMAccountType=805306369)(objectCategory=computer)(operatingSystem=Windows 7*)(operatingSystemServicePack=Service Pack 1)))))

(&(&(&(samAccountType=805306369)(primaryGroupID=516)(objectCategory=computer)(operatingSystem=Windows Server 2008*))))

(&(&(&(&(&(&(samAccountType=805306369)(!(primaryGroupId=516)))(objectCategory=computer)(operatingSystem=Windows 7*))))))

#Modify Password Never Expires Flag for all Users

dsquery user OU=OU-Name,DC=Microsoft,DC=Com | dsmod user -pwdneverexpires no

#Password Never Expires Flag Users

(objectCategory=person)(objectClass=user)(userAccountControl:1.2.840.113556.1.4.803:=65536)

Categories: Microsoft