sexta-feira, 21 de outubro de 2011

Get membership by command line

IF you want to get the membership from a group, type the following command line:


dsquery group -name "Group Account Name" | dsget group -members -expand

quarta-feira, 19 de outubro de 2011

Problem with Active Desktop

Today, I had a problem with Active Desktop in some desktop in my environment because yesterday the energy finished unexpectedly.

The solution for this case is very simple: you just need to change the following key in register key:

Browse to the following key:

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\SafeModeComponent

Change the value of DeskHtmlVersion and GeneralFlags to “0”

After this, just logoff and logon your PC.

terça-feira, 11 de outubro de 2011

Mapping Skydrive

In this tutorial I’m going to explain how to access Microsoft Skydrive service from your PC through network map.

First of all, you need to have a windows live account. After create it, go to skydrive and check the CID that you’ll see on browser as an example https://skydrive.live.com/?cid=2f32158b00847e9

Then, go to map network and put the following string

\\docs.live.net@SSL\323a6cf471178562\my_documents

Where mydocuments is the folder that you’ve already created. After that, you’ll see a pop-up in which you must to type you windows live ID

terça-feira, 13 de setembro de 2011

Restart

I was trying to install the Exchange 2007 Console on my Pc so that I can manage it remotely. However, when I run the executable I received a message saying that I need to restart my PC before continue. I already restarted it but even so does not work.

Searching on the web, I've found the fllowwing step:

Delete the register key bellow

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\

Just fine ! After deleting it, the wizard works ok

Regards

quinta-feira, 25 de agosto de 2011

Exchange Information Store does not start

This morning I check that my Exchange Server 2007 was not working. When I check the event viewer I see the following error message:

Unable to initialize the Microsoft Exchange Information Store service because the clocks on the client and on the server machine are skewed

It means that the clock of Exchange Server computer is different of AD. Because of this, some services cannot work properly.

In order to resolve this, I just put this command on Prompt

Net time \\ADServerName /Set
Then, I restarted the Microsoft Exchange Active Directory Topology Service

quarta-feira, 27 de julho de 2011

Remove All users from Local Administrator Group

Hi !

Today, I've needed to find a way to remove all users from local administrator group trough GPO tools. I've found a perfect script wich complete this task . Here is bellow:

Dim network, group, user
Set network = CreateObject("WScript.Network")
Set group = GetObject("WinNT://" & network.ComputerName & "/Administradores,group")
For Each user In group.members
If UCase(user.name) <> "ADMINISTRADOR" And UCase(user.name) <> "DOMAIN ADMINS" Then
group.remove user.adspath
End If
Next


Before to use it, you need to do a little change in these lines

Set group = GetObject("WinNT://" & network.ComputerName & "/Administradores,group")
For Each user In group.members
If UCase(user.name) <> "ADMINISTRADOR" And UCase(user.name) <> "DOMAIN ADMINS" Then