Server 2008 domainprep Domainprep –W2K or W2K3 AD forest already exists

Posted by support | Active Directory, Command Line, Microsoft | Monday 19 April 2010 8:19 am

If the DC for 2003 is 32bit you have to use adprep32 not adprep

–> ADPREP /Forestprep on the w2k/w2k3 schema master (both w2k/w2k3 forests)

–> ADPREP /rodcprep on the w2k3 domain master (only w2k3 forests)

–> ADPREP /domainprep on the w2k3 infrastructure master (only w2k3 domains)

–> ADPREP /domainprep /gpprep on the w2k infrastructure master (only w2k domains)

–> on the stand alone server execute: DCPROMO

–> and provide the information needed

Nbtstat Switches

Posted by support | Command Line, Microsoft | Saturday 2 January 2010 11:28 pm

Nbtstat Switches

-a < name >
adapter status
Returns the NetBIOS name table and MAC address of the address card for the computer name specified.

-A < IP address >
Adapter status
Lists the same information as -a when given the target’s IP address.

-c
cache
Lists the contents of the NetBIOS name cache.

[ Number ]
Interval
Typing a numerical value tells Nbtstat to redisplay selected statistics each interval seconds, pausing between each display. Press Ctrl+C to stop redisplaying statistics.

-n
names
Displays the names registered locally by NetBIOS applications such as the server and redirector.

DSQuery computer -inactive -limit 0

Posted by support | Command Line, Microsoft | Friday 18 September 2009 12:16 pm

The example below uses 8 weeks – from the command line enter:

dsquery computer -inactive 8 -limit 0

After reviewing this list to make sure these computers no longer exist on your network you can use the following command to find and delete them:

dsquery computer -inactive 8 -limit 0 | dsrm -noprompt

Remove Hidden Devices

Posted by support | Command Line, ESX (VI3), Hardware, Microsoft | Tuesday 15 September 2009 7:29 pm

To get rid of that unwanted driver, device, or service:
1) Open the “Start” menu and choose “Run…”
2) Type in “cmd” (without the quotes) and click “ok”.
3) At the cmd prompt, type in “set devmgr_show_nonpresent_devices=1″ (without the quotes) and press enter. (Note that nothing seems to happen–this is ok. We are actually setting an environment variable which is going to help us to see hidden devices)
4) On the next cmd prompt line, type in “devmgmt.msc” (without the quotes) and press enter. This will launch the Windows Device Manager Console.
5) In the Device Manager Console, from the “View” menu, select “Show Hidden Devices”.

Using Perfmon Trace Logs to Monitor AD

Posted by support | Active Directory, Command Line, Microsoft | Sunday 9 August 2009 12:11 pm

Problem (REF:http://robbieallen.com/downloads/Recipe15-11.htm)
You want to enable Perfmon Trace Logs to view system level calls related to Active Directory.

Solution
1. Open the Performance Monitor.

2. In the left pane, expand Performance Logs and Alerts.

3. Right-click on Trace Logs and select New Log Settings.

4. Enter a name for the log and click OK.

5. Click the Add button.

6. Highlight one or more of the Active Directory providers and click OK.

7. Use the tabs to configure additional settings about the log.

8. When you are done, click OK.

SRV2003 slip stream Service Pack 2

Posted by support | Command Line, Microsoft | Saturday 27 June 2009 8:42 pm

to extraxt exe to a folder:
WindowsServer2003-KB914961-SP2-x86-ENU.exe /x
screen will popup, just choose your location
to upgrade the Server 2003 files run this command

C:\Win2003SP1\i386\Update\Update.exe -s:C:\Win2003

Ref:http://www.petri.co.il/windows_2003_sp1_slipstreaming.htm

Export and Import PST Files from the Exchange 2007 PowerShell

Posted by support | Command Line, Exchange, Microsoft | Thursday 15 January 2009 4:16 pm

Must Setup Permission before creating pst files
Get-Mailbox -Database ’servername\Private Information Store (xxx_xxx)’ | Add-MailboxPermission -User administrator -AccessRights FullAccess

Export All Mailboxes to pst files.
Get-Mailbox -Database ’servername\Private Information Store (xxx_xxx)’ | Export-Mailbox -PSTFolderPath E:\PSTs

Export Single user to PST file.

Export-Mailbox -Identity john@contoso.com -PSTFolderPath C:\PSTFiles\john.pst -BadItemLimit 9999

 

IMPORT All PST Files into Exchange.

(must run permission on for user to import, mailboxes in target server must be created before import.)

Get-Mailbox -Database ’servername\Private Information Store (xxx_xxx)’ | Import-Mailbox -PSTFolderPath E:\PSTs 

 

Diskpart command Microsoft

Posted by support | Command Line, ESX (VI3), GSX, VMWare, Virtual Center | Monday 7 January 2008 8:34 am

Diskpart

This was taken from the Microsoft website.  A customer asked how this command would work in VMWare.  I tried it and it worked just like usual.

Symantec System Restore –Netsh for NIC

Posted by support | Command Line, Symantec | Thursday 1 March 2007 9:26 pm

Microsoft KB Aritcle

Restore Server Backup Mail from 1650 to 2550 Dell
Restore work but the command netsh to reset the TCP/IP needed to be ran.

March 6, 2007
No issue yet on this hardware. 

Netsh in Windows

Posted by support | Command Line, Microsoft | Wednesday 13 December 2006 2:31 pm

Netsh command

use this to add a primary ip address
netsh interface ip set address name=”Local Area Connection” source=static addr=ipaddress mask=netmask

add gateway

netsh interface ip set address name=”Local Area Connection” gateway=ipaddress gwmetric=1

******************************************

add more IPs to same NIC

netsh interface ip add address “Local Area Connection” 192.168.0.1 255.255.255.0

Admins can use the above command for batch files on webservers etc.

*******************************************

to delete an IP(s)

netsh interface ip delete address “Local Area Connection” ip address

to delete quickly

netsh interface ip set address name=”Local Area Connection” source=dhcp

Next Page »