Format:
Recent snippets matching tags of windows server
'***********************************************************************************************************************-- '***********************************************************************************************************************-- 'This is a Visual Basic Script that hits a WebURL 'The WebURL hit is the one provided as the parameter (in this case through the windows task scheduler) 'Instructions: Set this .vbs as the action for a schedule task and in the parameters section pass in the WebUrl u wish to hit '***********************************************************************************************************************-- '***********************************************************************************************************************-- 'Create variable to hold passing in arguments args = WScript.Arguments.Count
66 Views
no comments
C:\Users\administrator.OSM>dism /online /enable-feature /featurename:IIS-WebServ erRole Deployment Image Servicing and Management tool Version: 6.1.7600.16385 Image Version: 6.1.7600.16385 Enabling feature(s)
519 Views
no comments
param ([string]$computerName = (gc env:computername)) function GetExceptionType($type, $logEvent) { if ($type -ne "Error") { $logEvent.ReplacementStrings[17] } else { $rx = [regex]"Exception:.([0-9a-zA-Z].+)" $matches = $rx.match($logEvent.ReplacementStrings[0]) $matches.Groups[1].Value }
675 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
