Monday, July 8, 2013

Powershell Script to check whether there is a file created/copied today or not

Powershell Script to check whether there is a file created/copied today or not
This script can be used to check whether there is backup activity happened or not also the presence of a newly created file .it can also incorporate with an email string to initiate an email as per the required action
Script


$today = (get-date).Date;
Get-ChildItem C:\Users\User1\ | where { $_.CreationTime.Date -eq $today };
if ($_ -eq $null)
{
Write-Host "no File"
}
else
{
Write-host $FileName}



You can change write host part with an email script
-Sachin

Friday, May 24, 2013

The following error occurred while attempting to connect to the specified Exchange server 'exchange.mydomain.com

Exchange management console couldnt open
The attempt to connect to http://exchange.yourdomain.com'/powershell using 'Kerberos' authentication failed: Connecting to the remote server failed with the following error message : WinRM cannot process the request. The following error occurred while using Kerberos authentication: The network path was not found

Resolution :
Step :1
Close Exchange powershell
Step :2
Open Posershell and run the below command

Remove-ItemProperty -Path HKCU:\Software\Microsoft\ExchangeServer\v14\AdminTools\ -Name NodeStructureSettings

This sill resolve the

:)

Friday, April 12, 2013

Error :To use the redirect option ,you must provide a Webserver name

Error
While publishing a website redirection rule I found an error as below
"To use the redirect option ,you must provide a Webserver name"

Solution
This is because there is no specific entry in Action tab for http/https protocol in the  web publising rule for redirection
if we want to redirect https://abc.com to http://abc.com , you should put the entry as https://abc.com in the action tab

Error :To use the redirect option ,you must provide a Webserver name

In ISA 2006 while doing a URL redirection I faced the eblow issue

Error :To use the redirect option ,you must provide a Webserver name

Solution

This is because there is no specific entry in Action tab for http/https protocol in the  web publising rule for redirection
If we want to redirect https://abc.com to http://abc.com , you should put the entry as https://abc.com in the action tab

Thursday, March 28, 2013

Lync Calls Failing with error code0x12b


Issue :

ms-client-diagnostics: 22; reason="Call failed to establish due to a media connectivity failure when both endpoints are internal";CallerMediaDebug="audio:ICEWarn=0x12b,LocalSite=

 

Cause

This might be because of internal VLAN restrictions implemented. Because of those rules, Users are not able to contact the VoIP device .

Resolution :

Check there is no restrictions implemented between the user VLAN and the VoIP devices. If that could not be changed, check the MRAS server internal IP address is reachable from both the VoIP device and the user system