Peter's IT Blog

Subscribe


My Library

Disclaimer:

DISCLAIMER: THIS BLOG SITE IS FOR MY OWN PERSONAL RECORD. PLEASE USE AT YOUR OWN RISK. I NOR MY EMPLOYERS/COMPANY WILL NOT BE HELD RESPONSIBLE FOR YOUR ACTION(S).
Peter's IT Blog

Mass creating users using PowerShell and PowerGUI from Quest

This script can be used to create multiple users using powershell along with PowerGUI from Quest with Active Directory module installed. To use this script, first create a csv file using excel or notepad as follows:

FirstName,Initials,LastName
John,S.,Smith
Jane,,Johnson
Anthony,H.,Do
Ari,,Zeckinson
Aydin,,Valare
Ben,,Franklin
Benson,,Cheng
Cassie,,Doyle

or

...

<< MORE >>

Windows Update Command Line Utility Switches

I found this on another site:

Reposting for you guys.
***
From a dump of the .exe (W2k3 R2 version ) we can extract the following options:
/DetectNow
/ReportNow
/RunHandlerComServer
/RunStoreAsComServer
/ShowSettingsDialog
/ResetAuthorization
/ResetEulas
/ShowWU
/ShowWindowsUpdate
/SelfUpdateManaged
/SelfUpdateUnmanaged
/UpdateNow
/ShowWUAutoScan
/ShowFeaturedUpdates
/ShowOptions
/ShowFeaturedOptInDialog
/DemoUI

Most of these options don't give any noticable ... << MORE >>

Track Log Viewer (Message Tracking Task) does not work in Exchange 2010 Edge Server

Message Tracking Task does not work in the Exchange Troubleshooting Assistant (Extra.exe) tool on an Exchange 2010 Edge Server.



When you use the message tracking task in the Microsoft Exchange Troubleshooting Assistant (Extra.exe) on an Exchange 2010 Edge server, you get the following error message:
The process "ExTRA (PID=1928) has been initialized as unknown multiple instance type un-expectedly.


This is a known issue with Exchange 2010 server running as Edge Server. Microsoft is working on a hotfix for this. ...
<< MORE >>

Removing Hub Transport server / server role from an exchange 2007 server

How to remove an Hub Transport Server Role from an Exchange Server

When you try to remove a Hub Transport Server Role from an Exchange Server you will need to remove the machine you're about to uninstall Exchange from the Send Connectors of the Exchange Organization. To do this:

Open Exchange Manangement Console
Expand Organization Configuration
Select Hub Transport
Select Send Connectors tab
Go through and open each of the Send Connectors
Go to the Source Server tab
Select the server you want to uninstall the Hub Transport Role and click Remove (X)

Once this is done you should be able to remove the Hub Transport Role from the server in question.

 del.icio.us  Stumbleupon  Technorati  Digg 

Removing Hub Transport server / server role from an exchange 2007 server

How to remove an Hub Transport Server Role from an Exchange Server

When you try to remove a Hub Transport Server Role from an Exchange Server you will need to remove the machine you're about to uninstall Exchange from the Send Connectors of the Exchange Organization. To do this:

Open Exchange Manangement Console
Expand Organization Configuration
Select Hub Transport
Select Send Connectors tab
Go through and open each of the Send Connectors
Go to the Source Server tab
... This Server is the Source for a Send Connector<< MORE >>

Monitoring Exchange Services on a Remote Server using Powershell and WMI

The purpose of this script is to monitor Exchange Services from a remote server, if any of the services failed then trigger an email alert using one of the present SMTP server. This requires that the SMTP server allow for anonymous relay for the specific IP address of the server that this script runs under. This script can be triggered as a scheduled task and send an alert to an Exchange Admin warning he/she that a service is down. An example of how this would be useful:

Let's say you have 2 edge servers (Server A and Server B ). You can ...<< MORE >>

Pruning Old Computer Accounts in AD

In an organization with large Active Directory (AD) database, it is a daunting task to manage the Directory Services and keep it clean from inactive or old computers account. By using the DSQUERY command, you can query AD for old computers account based on the specific time frame since it last reported to AD and remove them.

An example of using DSQUERY to do such task is:

dsquery computer -inactive 12 -limit 0

The output result would be a list of computers that have not reported to AD for the last 3 months or 12 weeks. You can then review the list and verify that ...<< MORE >>

Asterisk - VoIP Codecs

Below are a diffrent types of Codecs that Asterisk can handle

































Codec  Speed Simultaneous Calls over T1 (1.5 Mbps)   Notes 
 u-law  64 Kbps  24  US Standard
 a-law  64 Kbps  24  European standard
 G.723.1  5.3/6.3 Kbps  289/243  
 G.726  16/24/32/40 Kbps  96/64/48/38  
 G.729  8 Kbps  192  Requires license






















 GSM  13 Kbps   118  
 iLBC  15 Kbps   102  
 LPC-10  2.5 Kbps   614  
 Speex  2.15 - 44.2 Kbps     714 - 34                                                      Open Codec          

With higher compression you can squeeze more calls ...<< MORE >>

Creating bulk contacts in Exchange 2007 using Powershell

We needed to create a massive list of mail-enabled in Exchange. We needed a script that flexible enough to allow us to create contacts in multiple OUs, Different primary SMTP addresses, different External email addresses. So we came up with this script, the script operates on the input of a text file which tell it information such as the user's name, OU to create the contact in and their email addresses. The script will also override the Default Domain Email Address Policy, this means if you have a policy stating that ALL email contacts/users/mailboxes email addresses will have to follow a ...<< MORE >>

Building a Windows 2008 Server Core Domain Controller Step by Step

Below are the steps of configuring a Windows 2008 Server Core from scratch to a secondary Domain Controller To set the server with a static IP address 1. At a command prompt, type the following: netsh interface ipv4 show interfaces 2. Look at the number in the "Idx" column. Take note of the Idx number of the NIC that needed to be setup with the IP address 3. netsh interface ipv4 set address name="" source=static address= mask gateway= Where: = The Idx number noted in step 2. = The static IP address that needed to be assigned to the server = The subnet mask for the IP address = Default gateway's IP address To set the DNS server's IP address 1. netsh interface ipv4 add dnsserver name="" address= index=1 Where: = Idx number noted previously = IP address of the DNS Server 2. Repeat step 1 for each DNS server that needs to be added, incrementing index= by 1 each time3 To set hostname of the server: 1. At a command prompt type: hostname Notice the name of the machine is randomly generated during the install 2. To rename type: netdom renamecomputer %computername% /NewName 3. Reboot the machine: Shutdown -r -t 0 4. Verify new name is set by repeating step 1 Joining the server to a domain: 1. netdom join %computername% /domain: /userd: /passwordd:* 2. Reboot the server: Shutdown -r -t 0 Configuring firewall for RDP 1. netsh advfirewall set rule group="Remote Desktop" new enabled=yes Configuring RDP 1. cscript c:\windows\system32\SCregEdit.wsf /ar /v 2. Note the number presented. 1 = RDP disabled, 0 = enabled 3. To enable RDP: cscript c:\windows\system32\SCregEdit.wsf /ar 0 4. Test RDP to the server from a different machine Configuring WinRM (Windows Remote Management) for remote management via WinRS (Windows Remote Shell) 1. WinRM qc or WinRM quickconfig Verifying WinRM is configured: 1. winrm e winrm/config/listener Configuring Automatic Updates: 1. cscript c:\windows\system32\SCregEdit.wsf /au 4 Promoting to Domain Controller: 1. Creating an unattended installation file: At the command prompt type: notepad Enter the following: ;dcpromo.exe /unattend:c:\additionalDC.txt ;You may need to fill in password fields for true unattended installation ;If you leave the values for "Password" as * ;then you will be promted for credentials [DCInstall] ReplicaDomainDNSName=pnlab.local SiteName=Default-First-Site-Name InstallDNS=Yes ConfirmGC=yes Username:pnlab\pnguyen Password=* DatabasePath="C:\Windows\NTDS" LogPath="C:\Windows\NTDS" SYSVOLPath="C:\Windows\SYSVOL" SafeModeAdminPassword=* RebootOnCompletion=No Save file as c:\additionalDC.txt. For reference on creating unattended installation file go to: http://www.petri.co.il/creating-unattend-installation-file-dcpromo-windows-server-2008.htm 2. dcpromo /unattend:c:\AdditionalDC.txt 3. If there are no error, reboot the machine: shutdown -r -t 0 To activate the server: 1. slmgr.vbs -ato Note: to change the product key: start /w slmgr.vbs -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx start /w slmgr.vbs -ato 2. Verifying activation completed: start /w slmgr.vbs -dli Configuring Error reporting: 1. serverWerOptin /disable Options: disable, detailed, summary, query Confirm regional settings: 1. control timedate.cpl 2. control intl.cpl Log off the server: 1. Logoff << MORE >>
Blog Software