Posts

Showing posts from June, 2020

Dell 6248 vlan

Dell 6248 configuration script with vlan99 enable configure hostname DMZ/VLAN99 gvrp enable sntp unicast client enable sntp server 108.61.73.244 clock summer-time recurring USA zone "EDT" clock timezone -5 minutes 0 zone "EST" sntp server 108.61.73.244 poll ip http authentication local ip http server ip ssh server flowcontrol y vlan database vlan 99 exit interface range ethernet all no storm-control unicast storm-control multicast storm-control broadcast spanning-tree portfast spanning-tree guard loop end configure interface range ethernet all gvrp enable switchport mode general switchport general allowed vlan add 99 tagged end copy running-config startup-config y reload y enable port fast on port range 1-38 ======================== configure interface range ethernet 1/g1-1/g38 spanning-tree portfast

Clean Out Old IIS Log Files

https://www.stevefenton.co.uk/2015/07/clean-out-old-iis-log-files/ IIS log files are a blessing and a curse. When you are investigating something on your server, they are great. At all other times they are just eating your disk space. What is needed is a way to bin-off the old log files to keep the disk clear. Here is a quick VBScript file that does the job: iisFolderPath = "E:\IIS-Logs" maxAgeInDays = 90 Wscript . Echo "Starting..." Set fileSystem = CreateObject ( "Scripting.FileSystemObject" ) Set iisFolder = fileSystem . GetFolder ( iisFolderPath ) For Each currentFolders in iisFolder . SubFolders Set currentFolder = fileSystem . GetFolder ( currentFolders . Path ) Set currentFiles = currentFolder . Files For Each currentFile in currentFiles ageInDays = now - currentFile . DateCreated if ageInDays > ( maxAgeInDays + 1 ) then Wscript . Echo "Deleting " & curren...

CONFIGURE SHADOWCOPY FOR WINDOWS 10

Image
Windows 10 lack the feature of schedule shadow copy like in windows 7 and server 2008. But you Still can do it with Win32_ShadowCopy class in WMI. First enable the shadow copy option : Open Control Panel -> system -> system protection tab ->choose drive letter-> click enable and set the amount of disk space you want to use The command to run is (for drive c in this example) : wmic shadowcopy call create Volume=c:\ to test this run on command prompt as administrator and check for creation of shadow copy Create Scheduled Task: open Task Schedule and create task -> name it ShadowCopy_C (or any other name you want) ->select the triggers, once it was at 07:00 and 12:00 every day At the action tab write WMIC -> at the arguments -> shadowcopy call create Volume=C:\ Do this for every partition   Good Luck

Enable automatic root certificates update - Windows VIA GPO

Enable automatic root certificates update - Windows VIA GPO Click  Start , and then click  Run . Type  gpedit.msc , and then click  OK . If the Computer Configuration   dialog box appears, confirm that the action it displays is what you want, and then click  Continue . Double-click  Administrative Templates , double-click  System , double-click  Internet Communication Management , and then click  Internet Communication settings . Double-click  Turn off Automatic Root Certificates Update , click  Disabled , and then click  OK . Close the Local Group Policy Editor.

UniFi - Ports Used

https://help.ui.com/hc/en-us/articles/218506997-UniFi-Ports-Used Overview This article lists the ports used by the UniFi Network Controller. To learn how to change ports please see this article:  UniFi - Change Default Ports for Controller and UAPs . By default, the UniFi Controller will operate on the ports listed in the following sections. This is applicable to a UniFi Network Controller installed on the UniFi Cloud Key as well as other hosts. TCP or UDP Port Number Usage UDP 3478 Port used for STUN. TCP 5514 Port used for remote syslog capture. TCP 8080 Port used for device and controller communication. TCP 8443 Port used for controller GUI/API as seen in a web browser TCP 8880 Port used for HTTP portal redirection. TCP 8843 Port used for HTTPS portal redirection. TCP 6789 Port used for UniFi mobile speed test. TCP 27117 Port used for local-bound database communication. UDP 5656-5699 Ports used by AP-EDU broadcasting. UDP 10001 Port used for device discovery UDP 1900 P...

ORA-12571 TNS Packet Writer Failure fix unconfirmed

ORA-12571 TNS Packet Writer Failure sqlnet.ora  Previous --> SQLNET.AUTHENTICATION_SERVICES= (NTS) Actually --> SQLNET.AUTHENTICATION_SERVICES= (NONE) SQLNET.AUTHENTICATION_SERVICES from NTS to NONE SQLNET.AUTHENTICATION_SERVICES= (NONE) SQLNET.EXPIRE_TIME=0