Showing posts with label Windows tips. Show all posts
Showing posts with label Windows tips. Show all posts

Rejoin a computer to domain without restart

I came across an article today which mention a PowerShell command to rejoin a computer to the domain without restarting it. More from the article :

“We’ve all been in the situation where we have signed on to a computer only to find that its security relationship with the domain has failed. In the past we’d have to remove the computer from the domain and then join it back again to reestablish the relationship.

This involved two reboots (one to leave, one to join). If it was a server that took a while to boot, the process could take so long that we might even forget why we sat down to sign on to the computer in the first place.

Test-ComputerSecureChannel is one of those cool little PowerShell cmdlets that doesn’t get the recognition it deserves. Running the cmdlet by itself checks whether the relationship with the domain controller is still good. If it comes back True then everything is okay. If it comes back False then the relationship needs to be fixed.

Using Test-ComputerSecureChannel with the –credential –Repair options allows you to repair the relationship with the domain without any restarts. You run the command, sign out and then can sign in with your domain credentials. For example, to repair the relationship with the WINDOWSITPRO domain, issue the command:

Test-ComputerSecureChannel –credential WINDOWSITPRO\Administrator –Repair

When signed on as a local administrator.

Test-ComputerSecureChannel has been around since Windows Server 2008 R2.”

How to display folder size in Windows explorer

The other day I was trying to see the size of the all folders in Windows explorer but that option is not available in Windows XP and Windows 7, although that works for files only.

Then after some google search I came across Folder Size for Windows utility on www.Sourceforge.net  which is an excellent add-on to Windows explorer and work with Windows XP only.

Download for Folder Size for Windows XP : http://sourceforge.net/projects/foldersize/files/foldersize/2.5/FolderSize-2.5-x86.msi/download

Folder Size tool for Windows 7: This tool work differently than above one but still comes handy when you want to know the size of folder in a local or network folder .

Here is the link : http://foldersize.codeplex.com/releases/view/41473

Popular Posts