Archive for the ‘Systems Administration’ Category

I’ve recently found myself dealing with GPT protected partitions on HP Proliant Servers on which I’ve created Arrays using “Intelligent Provisioning App” to manage Storage. As with any Array configuration:

  1. Add the discs to the enclosure
  2. Create and array
  3. select the discs in the array
  4. Commit changes

and you are done, but recently after running that same procedure when I boot to Windows or VMware I am unable to use the provisioned array. On Windows when I go to the “Disk Manager” it appears as “GPT Protective Partition”

gpt-offline

gpt-online

I tried a couple of things on the GUI but nothing seemed to work, either because the control were grayed or would get errors. I decide to try it “Old school” and use “Diskpart”

gpt-diskpart

  1. Open “Command Prompt” as Administrator
  2. Enter command “Diskpart”
  3. Then command “List Disk”gpt-list-disk
  4. Then command “Select Disk” and the disk number, in this case I will select disk 2gpt-select-disk
  5. Now command “Clean” this command will wipe the partition on the disk.gpt-clean

The disk has been cleared of any “Protectiveness” and is ready to be configured. I executed command “List Disk” to show that the disc is free.gpt-unknown-disc

gpt-unknown-disc2

gpt-unkown-disc3

Now you can configure the disc to you hearts content. I hope this information was useful. Enjoy!

A couple of days ago I received a call from a Colleague that was working on a VM with Windows Core 2008 R2 Domain Controller that had an issue and they needed to disable the network connection.

*To perform this task you must be logged into the console, no RDP.

  1. First Login to your server (must be able to elevate CMD or Power Shell with Admin Privileges)
  2. Execute command: “netsh interface ipv4 show interface” this will show you a list of all available ipv4 network adapters and their names.netsh-show-interface
  3. Here is the tricky part you need to know which interface you will disable. In this exercise I will disabled the Wi-Fi network adapter.  netsh-show-interface-show
  4. Now that we’ve picked our network adapter we will execute command to disabled it: “netsh interface set interface Wi-Fi disable”. netsh-disable-interface
  5. Now we will confirm that the adapter was disabled, by executing command: “netsh interface ipv4 show interface” .  As you can see on the image below the Wi-Fi adapter is no longer available, because it was disabled.netsh-show-interface-disabled-not-show
  6. Now we will enable it by executing the command: “netsh interface  set interface Wi-Fi enabled”. netsh-enable-interface
  7. Now we execute command: “netsh interface ipv4 show interface” and we can now see the Wi-Fi adapter is visible and enabled.netsh-show-interface-show

This command works on servers and workstations it’s not limited to Windows Core. Have a nice day and Enjoy.

I’ve been using this command for quite a while now, and today a colleague asked me how to install .net framework via PowerShell on Windows Server 2012 R2. After performing the installation I decided to post the command for everyone’s benefit.

I will use Deployment Image Service and management Tool (DISM)

DISM /Online /Enable-Feature /FeatureName:NetFX3 /Source:D:\sources\sxs

Where source= the letter of where the sources files for this feature is. (normally on your Microsoft Windows DVD or media used to Install Windows.

  1. Open PowerShellPowerShell
  2. Insert command DISM /Online… and press Enterdism-net-fx3

Now it’s installed, Enjoy!

 

Ping localhost and receive response ::1  IPv6

I recently had a client who had a support call for an application, and they tell him that they can’t assist him because there is a problem with the server. When they ping the localhost or the hostname from the server instead of getting IPv4 response they get ::1 from IPv6.

C:\WINDOWS\system32>ping localhost

Pinging test.testing.local [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

response-IPv6

How do we solve this:

  1. Open command prompt or power shell as an Administrator
  2. Execute command “netsh interface ipv6 show prefixpolicies”ipv6-prefixpolicies
  3. then modify entry ::/96 as follows: netsh interface ipv6 set prefix ::/96 60 3ipv6-prefix-96
  4. the modify entry ::ffff:0:0/96 as follows: netsh interface ipv6 set prefix ::ffff:0:0/96 3 4ipv6-prefix-ffff-0-0-96
  5. Ping Localhost and you should now get IPv4 responseresponse-ipv4-localhost
Now to revert back to how it was as IPv6 run the following commands:
  1. netsh interface ipv6 set prefix ::ffff:0:0/96 3 4
  2. netsh interface ipv6 set prefix ::96 3 4
response-IPv6

You installed RSAT for Windows 10 Enterprise and did not notice that DHCP is not available, you checked under “Turn Windows Features On or Off” and DHCP is marked.

RSATDHCPWindowsFeature

What do you do:

  1. Go to a Windows Server 2012 (where DHCP is installed) and search for:
            a. dhcpmgmt.msc
DHCPMGMT-MSC
            b. dhcpsnap.dll
DHCPSNAP-DLL
and copy both files into C:\Windows\System32 directory on Windows 10 Enterprise.
      2. Execute command prompt as Administrator.
cmdAdmin
     3. Change directory to SysWOW64  (cd syswow64).
CmdAdminSyswow64
    4. Register dhcpsnap.dll (regsvr32 c:\windows\system32\dhcpsnap.dll) and click OK.
regsvr32-dhcpsnap-dll
Now you can open you Management console and add DHCP.
(Start + Run + MMC)
DHCP
Enjoy!!!

Finally for all those admins, who were waiting to either upgrade to Windows 10, and all those (like myself) who took the leap but could not use RSAT for Windows 10 Enterprise because it was not available… Enjoy

Remote Server Administration Tools For Windows 10

  1. Download
  2. Install
  3. Restart
  4. Go to:
  • Start
  • All Apps
  • Windows Administrative Tools

and there is your bounty…

RSAT

I wanted to Check my Lync Server 2010 and I opened the Microsoft Lync Server 2010 Best Practices Analyzer.

Lync2010BPA

  1.  I connect to the Active Directory Server

Lync2010BPA1

2.  I select “Start a new Best Practices Scan”

3.   I press on “Start Scanning”

after a couple of minutes I get:

“Error: An error occurred: “Microsoft.Rtc.Common.Data.SqlConnectionException” “Cannot open database “xds” request by… The login failed.”

First thing that comes to mind permissions!, but my user is a member of the CSAdministrators group and the local server administrator. Which takes me to SQL permissions.

  1. Open SQL Server Management Studios
  2. Connect to the your MS Lync Server SQL Server [I checked both RTC and RTC local instances]
  3. on Management Studio locate Security and then Login
  4. Create a new login with your user
  5. Add the appropriate role to the new login [in my case I selected sysadmin role]
  6. Closed the SQL Server Management studio
Now I open the Microsoft Lync Server 2010 Best Practices Analyzer, connect to Active Directory Service, Start a new Best Practices Scan, Start scanning and we are good to go:
Lync2010BPA2
If in any case you run to the same error again after performing these steps, just close the Lync 2010 BPA and “Run As Administrator”
Enjoy!