Start Windows CMD window as Admin (Run as).
Then run this command:
Continue reading “Enable icmp reply (ping) in Powershell”
Remove OneDrive Icon from Windows 10 Explorer
Each single that I am pressing to Windows + E; Having the windows explorer window loaded – Always clicking by mistake to OneDrive.
Thankfully, there’s registry tweak that can quickly remove OneDrive from your File Explorer sidebar.
Continue reading “Remove OneDrive Icon from Windows 10 Explorer”
Email Notification for specific Windows Application Event ID
I wanted to get notified for specific Windows Application Event log ID would appears; As unfortunately the Application does have such of feature/mechanism.
Continue reading “Email Notification for specific Windows Application Event ID”
Allow Ping ICMP in Powershell Windows 2012
Continue reading “Allow Ping ICMP in Powershell Windows 2012”
Massive upload files to SharePoint servers
I have been looking to make using some sort of script the way to make massive upload to a sharePoint server;
I have been finding many using Powershell and I came up with this type of script
param ([String]$spPath, [String]$localPath) ################################################################################# ## Load the SharePoint Snapin so the script can be executed from PowerShell editor ## INTERACTIVE OR AUTOMATIC MODE. ## FOR AUTOMATIC MODE. SET THE VARIABLE BELOW.OTHERWISE PROMPT WOULD REQUEST EACH. ## SET THE NUMBER OF TIME YOU WISH UPLOAD FOR EACH FILES ##$t = "10" ### SET THE REMOTE SHAREPOINT REMOTE LOCATION FOR THE SHARED DOCUMENT ### OR LET THE PROMPT ### EX: $spPath = "http://sharepoint/home/Shared%20Documents/" #### SET LOCAL PATH OF FILES TO BE UPLOADED. #### EX: $localPath = "e:\my_files" ################################################################################## Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue # get the SharePoint path if not specified $i = 1 if ($spPath -eq "") { Write-Host $spPath = Read-Host -Prompt " Please enter the full path for the shared librairy?" } if ($t -eq "") { Write-Host $t = Read-Host -Prompt " How Many times you wish to upload?" } # get the local path if not specified if ($localPath -eq "") { Write-Host $localPath = Read-Host -Prompt " Please enter the full path to the local directory that contains the documents to be uploaded" } do {Write-Host $i;$i++ ## Define our library name and web url $LibraryName = $spPath.Substring($spPath.LastIndexOf("/")+1) $webUrl = $spPath.Substring(0,$spPath.LastIndexOf("/")) ## Define a function to return the destination file name Function BuildFileName($filename) { "$webUrl/$LibraryName/" + $(split-path -leaf $filename) } ## Upload all the documents found in the specified location Write-Host "Uploading all documents from $sourceDocs" $webClient = New-Object System.Net.WebClient $webClient.Credentials = [System.Net.CredentialCache]::DefaultCredentials dir $localPath | % { Write-Host "Uploading file from "$localPath": $_" -nonewline $fName = BuildFileName $_ $webClient.UploadFile($fName,"PUT", $_.FullName) Write-Host " done" -ForegroundColor Green } } until ($i -gt $t)
Query the windows registry
I had the need to query the registry for a specific string, if the string is found or not then engage an action.
Within this scenario as example, it query the registry and a specified string, an action is taken if this one is not found/present.
@ECHO OFF set regpath=HKLM\Software\Microsoft\xx\ set regvalue=mystring set regdata=1 reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%" if errorlevel 1 ( echo Please wait blah blah...... Start /WAIT .\myprog\install.exe EXIT /B /0 )
PHP Warning: phpinfo(): It is not safe to rely on the system’s timezone settings.
Having set the PHP Engine running on Domino Server; Any/All request to access to some PHP files filling up my log.nsf of this type of entries and warning:
PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in E:\IBM\Lotus\Domino\data\domino\html\info.php on line 4
One more thing is needed to be set into the php.ini file:
Set this line:
date.timezone = "UTC"
Or and based on your location; including the list of Supported Timezones
Domino server running PHP CGI /Install/implement PHP on Domino Windows Server
I have been looking the trick to run PHP engine into a Domino server;
By default, Domino Server does not support PHP; However I am including the step by step instructions on how to implement it into Domino Server on Windows Machine.
You need first the PHP binaries:
http://windows.php.net/download/
I have been using the version (5.4.9), downloadable here.
– Uncompress the content of this zip file.
Continue reading “Domino server running PHP CGI /Install/implement PHP on Domino Windows Server”
How to disable SSL for outlook Web access (Exchange 2007/2010)
I had have recently look to disable SSL for Outlook Web Access to fit my need, in fact my Https port (443) was unfortunately already in used on my router.
Continue reading “How to disable SSL for outlook Web access (Exchange 2007/2010)”