Limited or no network connectivity after upgrading to windows 8.1

Limited or no network connectivity after upgrading to windows 8.1

Run Command Prompt as Administrator and type:

​netsh winsock reset

Reboot

Posted in Microsoft Windows 8 | Leave a comment

Open Elevated Command Prompt in Windows 8

To open an Elevated command prompt in Windows 8 or 8.1 Press the X and Windows keys and select “Command Prompt (Admin)

Posted in Microsoft Windows 8 | Leave a comment

Start Hyper-V Manager using Powershell or command prompt

To start Hyper-V manager using PowerShell or the command prompt type:

​virtmgmt.msc

 

 

 

Posted in Microsoft Windows Server 2012, Windows Powershell | Leave a comment

System Center Service Manager 2012 – Delete an Orphaned Connector

 

Delete an Orphaned Connector using SMLets

 

Open Powershell

​Import-Module smlets

 

​Get-SCSMObject –Class (Get-SCSMClass –Name Microsoft.SystemCenter.Connector) | ?{$_.DisplayName –eq “<Connector Name>”} | Remove-SCSMObject -Force -Confirm

 

Posted in Microsoft System Center Service Manager (SCSM) | Leave a comment

PHP – Redirect based on referrer or IP address

Redirect based on referrer or IP address

Referrer

— Code Example  —————————————-

<?php
$referrer = $_SERVER['HTTP_REFERER'];
if (preg_match("/Google.com/",$referrer)) {
      header('Location: http://www.google.com);
} elseif (preg_match("/yahoo.com/",$referrer)) {
      header('Location: http://www.yahoo.com);
} else {
      header('Location: http://www.connectiveinnovations.com);
};
?>
-----------------------------------
 IP Address
 — Code Example  ———————————–

<?php
$visitor = $_SERVER['REMOTE_ADDR'];
if (preg_match("/192.168.0.1/",$visitor)) {
} else {
};
?>
--------------------------------------------

Posted in PHP | Leave a comment

PHP – If-Else Code statement

If Else PHP Code example

— Code ——————————

<?php
if ($a > $b
)
{
echo “a is bigger than b”
;
}
elseif ($a == $b
)
{
echo “a is equal to b”
;
}
else
{
echo “a is smaller than b”
;
}
?>

———————————

Posted in PHP | Leave a comment

Adobe Acrobat Pro Stops Working

Acrobat Pro is installed and pgm is on the menu but will not work.

1. Make sure you are connected to the internet
2. Launch a regular CS6 product other then Acrobat or Flash builder (Example: Photoshop, inDesign, Dreamweaver)
3. Click on Help -> Deactivate
4. Deactivate the application. Quit application
5. Launch a regular CS6 product other then Acrobat or Flash builder (Example: Photoshop, inDesign, Dreamweaver)
6. Accept EULA
7. Register trial by signing in, Let the app launch
8. Quit and relaunch the app, Wait for the UI to come.
9. Click on the “License This Software” button the the UI
10. Click to sign in
11. Serial number screen will come, Enter the serial number and click Next
12. Quit app and relaunch the app while connected to the internet

After this if you launch Acrobat it will launch and run forever without trouble. In case you face a problem, try relaunching the other CS6 app once more and then launch Acrobat.

Posted in Uncategorized | Leave a comment

MS Active Directory GPO – gpresult (Resultant Set of Policy Queries)

GPRESULT, or otherwise known as Resultant Set of Policy Queries is a tool used to provide client end information of Group Policy settings. The utility ships with all current versions of Windows and is used to aid administrators in troubleshooting group policy problems.

More information: http://technet.microsoft.com/en-us/library/cc733160(WS.10).aspx

This provides verbose log of current logged on user on local PC

— Command ————————

gpresult /v > c:\gp.txt

———————————–

This provides verbose logs of a remote PC for a particular user. This needs to be run using a domain admin account.

— Command ———————–

gpresult /s COMPUTERNAME /user TargetUserName /v > c:\gp.txt

———————————–

Posted in Active Directory | Leave a comment

HP Procurve Switch – Enable IP Directed Broadcast

To enable forwarding of IP directed broadcasts, enter the following CLI command:

​ProCurve(config)# ip directed-broadcast

To disable the directed broadcasts, enter the following CLI command:

​ProCurve(config)# no ip directed-broadcast

Needed for WOL to work between VLANs

Posted in HP Procurve Switch | Leave a comment

HP Procurve – CLI Lockout MAC addresses from Network

lock, view and unlock machine MAC addresses from connecting to HP Procurve switch

Lock MAC address from Network

— Command ———————————–
config term
lockout-mac [machine MAC address]
———————————————–

Show locked out MAC address

— Command ————————————
show lockout-mac
————————————————

Unlock MAC address

— Command ————————————-
Config term
no lockout-mac [machine MAC address]
————————————————–

Posted in HP Procurve Switch | Leave a comment