Monday, August 11, 2014

How to Configure BGInfo for Windows Server 2012 R2

FYI: It's not hypervisor specific and works fine for physical servers also.

Download BGINFO from Microsoft Downloads Only
http://technet.microsoft.com/en-us/sysinternals/bb897557

1. Create a folder named bginfo under C:\bginfo
2. Extract all of the contents of bginfo to that folder.
3. Open Bginfo and setup your configurations.


*Custom configurations can be found here thanks to Shay Levy: http://blogs.microsoft.co.il/scriptfanatic/2008/07/22/bginfo-custom-information/

4. Once you have completed your custom configurations. Click on File Save As and save your .bgi configuration to C:\bginfo (Don't bother saving to C:\Windows\System32\* SysPrep and Imaging will strip and mess up any settings so don't bother) *Do NOT just clone your VM's!!


5. After you have saved your configuration. Create a batch file named whatever and add the following to the first line (*whatever you named the .bgi file is what you put second after the bginfo.exe path):



6. In case you forgot how. Enable the ability to see the extensions on folders when you created the file in Notepad (NOTE: Make sure you disable it after you're done!)


7. Go to Regedit (Type regedit in PowerShell) and configure the string for Run (HKLM\Software\Microsoft\Windows\CurrentVersion\Run):


8. Finish configuring your template for your physical server or your virtual image (VMware/OpenStack/RHEV/Hyper-V/OracleVM).




Share:

Monday, June 16, 2014

How to Extract Microsoft SysPrep Files for vCenter Convertor

Are you trying to P2V a Windows 2003 Server? Did you download the Microsoft SysPrep files and run them and it didn't work? Ok. Stop pulling your hair out and read further.



Have you gotten this error when you download and try to run the .exe file for Microsoft Sysprep?

1. VMware KB for SysPrep Locations: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1005593

2. Download error if you just try to run it. (Not enough storage space is available...blah blah blah)


3. Open up Powershell or Command Prompt and put /x after the file name.


4. The files then extract. Wahoo! 

5. Copy them to where they belong...

C:\ProgramData\VMware\VMware vCenter Converter Standalone\sysprep\svr2003 
(*NOTE: You must copy all of the files from SP2QFE and update to \svr2003\)


6. Run VMware Convertor again.




Share:

Saturday, April 12, 2014

How to Hide Clear Text Passwords on Cisco Routers and Switches

When you configure your Cisco Router or Switch you need to make sure your passwords are not in clear text. When you pop your new switch or router out of the box and are running configurations the very first time (or if you have to go back and fix it). You want to make sure you're not allowing casual exposure of your passwords:

Cisco IOS CLI:

SWITCHKING# conf t
SWITCHKING# service password-encryption
SWITCHKING# sh run
SWITCHKING#
!
enable password 7 892398498FF1111D
!
line vty 0 4
 password 7 075E731B7D10987987
 login
line vty 5 15
 password 7 075E731B7D1043434222
 login

SWITCH# crypto key generate rsa
SWITCH# ip ssh version 2

*This is instead of seeing "enable password JimBobPassword or line vty passwords in clear text"
Share:

Friday, November 1, 2013

How to Install .Net Framework 3.5 on Windows Server 2012 R2

Need to install .NET Framework 3.5 on Windows Server 2012 or Windows Server 2012 R2?

If you get the following error. You will need to install .NET Framework 3.5 on your server.


1. Put your Windows Server 2012 R2 disk into the server before doing anything else...
(VMware/Hyper-V add it to the VM Settings and Connect it to the VM / Physical Servers Put in the DVD).

1. Right-Click on PowerShell and "Run as Administrator" (Click Yes on UAC if it's enabled)


2. Run this command at the command line:

dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess



3. It will give you a message that it's 100% completed (Give it a few minutes, it takes like 3-5 minutes).

4. You can then verify if your paranoid that it installed under the Server Manager and check Features...=)



Share:

Sunday, October 6, 2013

Remove Hidden or Ghost Network Interfaces from Hyper-V

Note: Applies to all Windows Servers as a Post P2V Cleanup Tasks.

1. Open CMD Prompt (Run As Administrator)

2. set devmgr_show_nonpresent_devices=1

3. Open Device Manager from the CMD Prompt Command Line: C:\>devmgmt.msc


4. Uninstall all of the Ghost/Shadow NIC's and then reboot your server.

Now your back in business!
Share:

Thursday, March 8, 2012

Truncate Logs on SQL Server 2008


Truncation of Logs in SQL Server 2008 is different from SQL Server 2000/2005. The Truncate_only Option has been terminated (I guess this was to save the integrity of Data). Until Microsoft makes an option to right click on the Database and Select "Truncate Database". Follow the steps below for now.

Do you have a SQL Server 2008 Database with Truncating Logs that are out of control, the Event Viewer is showing Event 9002 MSSQLServer. Then you need to immediately truncate your logs for your database. This will allow you to be able to access, login and use your database. If you are unable to login to vCenter, the first thing you need to do is check your error logs for Event 9002 MSSQLServer and see if you have a message for the database being Full.

1. Verify if you have the following Error under “Application” in Event Viewer on your Windows 2008 Server:
  • Event 9002, MSSQLServer
Event 9002, MSSQLServer



2. After verification, open the SQL Server 2008 Management Studio. Login and select the database. (Need Microsoft SQL Server 2008 Management Studio? - Click Here)

3. You will need to temporarily switch the Database to “Simple” in order to manually truncate the logs. Right-click on your database and select PROPERTIES.
  • Simple DB
Simple DB


4. Select OPTIONS and then Switch the Database to “Simple” and click OK.
  • Options Change for "Simple"
Options Change for "Simple"


5. After you have changed the Database to “Simple”. You can begin your cleanup. Click on the Database and run the following commands (You can highlight the text and click F5 key to run the commands or click on EXECUTE in the toolbar:
SELECT name, size FROM sys.database_files;
GO

6. You will see two lines that tell you the actual name of your database (if it has been changed or is somehow different from a backup, etc. You never know so CHECK FIRST!)

7. After you have the correct log file database name run the following command:
DBCC SHRINKFILE (DATABASE_log, 2);
GO
  • The Truncanatorrrr!
The Truncanatorrrr!


8. After completing the maintenance. Follow Steps 1-4 to Change the Database back to “Full”.
FYI. Make certain that you have Maintenance Plans Setup for Full AND Transaction Log Backups!

9. Immediately Perform a Full Backup of the Database after you have completed all of your operations.
Share: