Showing posts with label Server 2003. Show all posts
Showing posts with label Server 2003. Show all posts

Sunday, April 24, 2011

Windows 7 + RemProf = Windows XP + Delprof

It has been a while since I have been looking for a remote profile deletion utility for Windows 7. Microsoft provided Delprof for Windows 2000, XP and Server 2003 but it doesn’t work on any OS beginning with Vista. We are in the process of transitioning to Windows 7, out user support guys make heavy use of Delprof as we use Roaming Profiles which get corrupted or have other issues at time or we simply need to clean a workstation. So in the absence of Delprof our user support needs to login to the workstation to clear profiles on a workstation or login to a XP virtual machine and use the command prompt for remote profile deletion.

While  looking for a solution I found the following freeware utility

RemProf download and look at the help file for more info.

Using it with PsExec one can achieve what Delprof does and more. It makes a better Delprof alternative.

for example if you need to delete only one users profile from a workstation, you can user the following command

psexec \\computername \\uncpath\remprof /L username

there are many more options, following is from the help file that comes with it.

Usage:
REMPROF [/LIST|username|/A|/D:days|/AD:days] [/EXCLUDE:usernames] [/?]

/LIST - List all user profiles currently not in use (Default).
username - Delete user profile based on username.
/A - Delete all user profiles that have no username association
including abandoned profile folders.
i.e. The username has been deleted in Active Directory but
a profile still exists in form of a SID or the profile did
not unload correctly and a residue profile folder exists.
/D:days - Delete all user profiles equal to or older than the number of
days specified. NB: /D: without a number is equal to /D:0.
/D:0 will remove CURRENT user profiles not in use.
/AD:days - Delete all user profiles that have no username association
and are equal to or older than the number of days specified.
NB: /AD: without a number is equal to /AD:0.
/EXCLUDE:username/s - Exclude particular users from being deleted.
Can accept multiple entries, seperated by comma.
Must be last command line argument.
Unassociated profiles cannot be excluded.
Do not include the Domain Name.
/? - show this help file

REMPROF without parameters will execute the /LIST switch by default.

I find it a very useful tool, hope it helps you too.

Sunday, January 10, 2010

Users cannot logon to the Terminal Server

When users try to logon to the terminal server they get the following error

Insufficient system resources exist to complete the requested service

or their sessions just drops during the login process without any errors.

In this case one of the reason could be that your terminal server is handling the memory usage correctly.
check the event log to see if you can find event 1500 and event 1508 for each unsuccessful logon attempt.

if yes then use the following method:

To resolve this problem, modify the registry to increase the PoolUsageMaximum value and the PagedPoolSize value. To do this, follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

  3. On the Edit menu, point to New, and then click DWORD Value.
  4. In the New Value #1 box, type PoolUsageMaximum, and then press ENTER.
  5. Right-click PoolUsageMaximum, and then click Modify.
  6. In the Value data box, type 60, click Decimal, and then click OK.
  7. If the PagedPoolSize registry entry exists, go to step 8. If the PagedPoolSize registry entry does not exist, create it. To do this, follow these steps:
    1. On the Edit menu, point to New, and then click DWORD Value.
    2. In the New Value #1 box, type PagedPoolSize, and then press ENTER.
  8. Right-click PagedPoolSize, and then click Modify.
  9. In the Value data box, type ffffffff, and then click OK.
  10. Exit Registry Editor, and then restart the computer.

source: http://support.microsoft.com/default.aspx/kb/935649

Sunday, December 20, 2009

Move DHCP scope from Windows Sever 2000 to Windows Server 2003 or 2008

Move DHCP from Server 2000 to 2003 or 2008

http://support.microsoft.com/kb/325473

Microsoft has detailed step by step KB article on it.. in brief.

  • Reduce the lease duration on server 2000 so the clients will renew IP and you will discover issue quicker if there are any.
  • Timing is important –> deactivate the scope on old server before you import it on the new one.

Here are the steps

  1. Download and install the DHCPExim utility on server 2000, it will not create shortcuts so access it from C:\Program Files\Resource Kit\
  2. Open command prompt and stop DHCP Service with the following command

    net stop dhcpserver

  3. Open DHCPExim.exe and following the instructions to export any selected scope data to be exported to a txt file. You can chose to disable to the scope immediately.
  4. Now on your server 2003 copy the txt file on the local drive and run the following command.

    netsh dhcp server import filepath\filename.txt all


  5. Authorize the new DHCP server

Read the this article for moving DHCP from server 2003 to server 2008


Happy Upgrading!!