I will not take the credit for this But really nice scripts.
Copy this to a text file, save it with a .ps1 extension, and then open it and run it from the Exchange Management Shell ( ./.ps1 )
#Changing InternalURL Path
$urlpath = Read-Host “Type Internal Client Access FQDN starting with http:// or https://”
Set-AutodiscoverVirtualDirectory -Identity * –internalurl “$urlpath/autodiscover/autodiscover.xml”
Set-ClientAccessServer –Identity * –AutodiscoverServiceInternalUri “$urlpath/autodiscover/autodiscover.xml”
Set-webservicesvirtualdirectory -Identity * –internalurl “$urlpath/ews/exchange.asmx”
Set-oabvirtualdirectory –Identity * –internalurl “$urlpath/oab”
Set-owavirtualdirectory –Identity * –internalurl “$urlpath/owa”
Set-ecpvirtualdirectory –Identity * –internalurl “$urlpath/ecp”
Set-ActiveSyncVirtualDirectory -Identity * -InternalUrl “$urlpath/Microsoft-Server-ActiveSync”
#Changing ExternalURL Path
$urlpath2 = Read-Host “Type External Client Access FQDN starting with http:// or https://”
Set-AutodiscoverVirtualDirectory -Identity * –externalurl “$urlpath2/autodiscover/autodiscover.xml”
Set-ClientAccessServer –Identity * –AutodiscoverServiceInternalUri “$urlpath2/autodiscover/autodiscover.xml”
Set-webservicesvirtualdirectory –Identity * –externalurl “$urlpath2/ews/exchange.asmx”
Set-oabvirtualdirectory –Identity * –externalurl “$urlpath2/oab”
Set-owavirtualdirectory –Identity * –externalurl “$urlpath2/owa”
Set-ecpvirtualdirectory –Identity * –externalurl “$urlpath2/ecp”
Set-ActiveSyncVirtualDirectory -Identity * -ExternalUrl “$urlpath/Microsoft-Server-ActiveSync”
#get commands to doublecheck the config
get-AutodiscoverVirtualDirectory | fl identity,internalurl, externalurl
get-ClientAccessServer | fl identity,AutodiscoverServiceInternalUri
get-webservicesvirtualdirectory | fl identity,internalurl,externalurl
get-oabvirtualdirectory | fl identity,internalurl,externalurl
get-owavirtualdirectory | fl identity,internalurl,externalurl
get-ecpvirtualdirectory | fl identity,internalurl,externalurl
get-ActiveSyncVirtualDirectory | fl identity,internalurl,externalurl
Reference : http://www.seanlabrie.com/2011/script-to-set-internal-and-external-urls-on-all-of-your-exchange-virtual-directories-at-once/
To Manage the Hardware definition of the Network Card in Command Line Linux
Have a look at /etc/udev/rules.d/70-persistent-net.rules
I will not take the credit for this, but it’s happen several time to me windows New HP Tower / Laptop with Windows 7 Pro 64 bits.
Thanks for SpiceWorks Community
Most people have media with SP1 already in it, but if yours is older it may not be included. If not, install it before anything else.
Some of the MS pages don’t work correctly with older versions of IE so getting IE11 installed first is a good idea.
This seems to be the key to everything. Windows Updates and many later manual updates will just spin for hours on end until this one is installed.
This is the closest to SP2 that we’ll ever see for Windows 7. It includes most updates released after SP1 up until April 2016. It’s much faster than downloading and installing all of them individually via Windows Updates.
NOTE: Read the Prerequisites section in the link. You will probably need to install “April 2015 servicing stack update for Windows 7 and Windows Server 2008 R2 (KB3020369).” KB3020369 may not require a reboot. Reboot anyway!
NOTE – adding this step 10/26/16 after reports that it helps move things along.
Install the July 2016 update rollup for Windows 7 SP1 and Windows Server 2008 R2 SP1:
When you move the EC2 instance from one account to another you can follow this procedure it’s working fine, except for one details.
After Creating the snapshot, when you log into the target location and you try to create an Instance from the AMI, you need to be in the same region as the source to access the snapshot.
To validate your region look at the top right corner, on the right of you account Name the region is there. Be Sure the Region is the same for the source and the destination!
Troubleshooting note for a situation (a brand new installation) but the VoIP phone got disconnected randomly.
Let’s start with the switch. Cisco have a feature enabled by default called : “Green Ethernet” if you have a non managed switch. Simply : Trash it. Purchase a switch : Netgear GS105E-200NAS
For Managed switch, there’s a more simple solution, turn off the Green Ethernet and the 802.3 Energy Saving
In the Firewall Rules, OpenUP the port : 5000 up to 5500 UDP, 10000-20000 UDP and TCP – Any to Any (Incoming)
In the VoIP Section :
Check Enable Consistent Nat and Check Enable SIP Transformation and
The MOST IMPORTANT is this setting :
Disable the DPI Setting :
In the Firewall, Advanced, Connections switch the option to Maximum SPI connection (DPI Services Disabled)
After those changes you need to Reboot the Sonicwall appliance.
Monitor the phones and they should stay connected “forever”.
If you are like me and you want to deploy a Sonicwall and create a Private VPN between your Network and Amazon Web Service.. This can give you an hard time and you to understand the Sonicwall / Amazon to get this working. Dell Create a procedure for that, first link on Google and to be honest… 75% is working…
This is an Update Version of this Procedure, I will add some screen shot a bit Later On.. But if you have Knowledge in VPN and Sonicwall This might give you the part missing.
My first attempt The VPN was setup but no traffic in between..
Go to VPC
1 – Initializing the VPC (VPC it’s the Private Cloud- I can compare it to a router)
If you have no VPC, Create One and assigned a VPC CIDR (IP Range like : 10.1.0.0/16)
2 – Creating the Subnet (Network Range visible to the EC2 Instance and also the private Network accessible over the VPN)
Create a Subnet attached to your VPN like 10.1.1.0/24
3 – Creating the Virtual Private Gateway
Create a Virtual Private Gateway (This is the “Amazon side of the VPN”)
4 – Attaching the Virtual Private Gateway to the VPC
(Select the VPG) and attach to VPC
5 – Creating a Customer Gateway
The Customer Gateway it’s the Sonicwall Specs.
6 – Create the VPN Connections
VPN Connections – Create
Download the configuration File in the Format : Generic / Generic / Vendor Agnostic *** KEEP IT FOR FUTUR STEPS
7 – Go to Route Table
Select the Route available – Click on Route and Edit the following :
Add 2 routes :
Destination : 0.0.0.0 / 0 Target : Virtual Private Gateway (it’s Amazon ID – Steps 3)
Destination : 192.168.10.0 / 24 (YOUR LAN NETWORK) Target : Virtual Private Gateway (it’s Amazon ID – Steps 3)
GoTo Route Propagation Tab and Edit and Set Propagate to Yes
NOW SONICWALL! **** I WILL SHOW IT ONLY FOR ONE TUNNEL THE FAILOVER IT’S THE SAME
Open the Text File you Downloaded at Steps 6.
The important Information it’s under : IPSec Tunnel #1
Go to VPN :
Clic OK at this point you should have within couple of seconds the VPN UP.. but the trouble begin 🙂
Go to the Menu VPN / Advanced
Go to the Menu Network / Interfaces
Add Interface (Zone VPN)
Go to the Menu Network / Routing
Under Route Policies
Go to Menu Firewal / Access Rules
from VPN to LAN
*** Create the Reverse now :
from LAN to VPN
NOW THE EC2 Instance :
Network and Security
*** BE SURE YOUR SECURITY GROUP IS ASSIGN PROPERLY TO YOUR EC2
select one of your instance :
Action / Manage Private IP
Set a Private IP from the RANGE you Define in Step 2 (Subnet).
ex : 10.1.1.1
From your Network test the ping : 10.1.1.1
You Should have an answer!
Environment: Visual Studio 2013
Situtation: Trying to publish a website with pre-compile option ON.
Attempt by security transparent method ‘System.Web.WebPages.Administration.SiteAdmin.RegisterAdminModule()’ to access security critical method ‘System.Web.WebPages.ApplicationPart..ctor(System.Reflection.Assembly, System.String)’ failed..
Delete reference to System.Web.Administration (select it in References folder and press Del)
Note: This error can also happen when launching your website if you published with the option pre-compile set to OFF.
I recently had an issue with a VM 2012 R2 domain controller. Unable to open the DNS Server Access Denied, (Event id 4000 – 4017 – 4018). The network location on the domain controler switch from the Network Location Domain to Public. Network Share was not available. All services works fine on the domain controller, the server is slower to reboot.
To Fix the issue :
netdom resetpwd /server:<DC.domain.com> /userd:<Domain\domain_admin> /passwordd:*