Thursday, March 8, 2018

Netapp & SMB options

SMB setting changes:


  • To enable/disable SMB1
    "cifs control set smb1.enable [yes/no]"
  • To enable/disable SMB2
    "options cifs.smb2.enable [on/off]"

Tuesday, May 30, 2017

Reset SoftwareDistribution Folder

Occassionally, Windows Update process stops cleaning up or something and the C:\WINDOWS\SoftwareDistribution folder starts to get full.


To reset this, stop the service, rename the folder, and restart service.  This should create a new SoftwareDistribution folder:
  • Open a CMD window runas admin
  • type net stop wuauserv and press enter
  • type rename c:\windows\SoftwareDistribution softwaredistribution.oldand press enter
  • type net start wuauserv and press enter
  • type exit and press enter
Reboot and if all is well, you can delete the old softwaredistribution.old folder.



Monday, July 11, 2016

Large CBS folder in Windows 2008 R2

Possible fix to problem of running out of C: drive space due to log/cab files filling up C:\Windows\Logs\CBS folder...


To reset the compression in the CBS folder use the following method:
  1. Disable TrustedInstaller.exe (Windows Module Installer) in Taskmanager Services
  2. Delete all the .log files in the C:\Windows\Logs\ CBS directory, delete the .persist and .cab files as well
  3. Enable TrustedInstaller.exe again
NOTE: Cleaning up the CBS folder resets the compression process, so the new created log files should not get bigger than 50 Mb before the compression into .cab files as it should be.


Reference:
http://superuser.com/questions/803842/why-is-cbs-log-file-size-20-gb



Wednesday, December 16, 2015

Wednesday, June 10, 2015

How to change NetworkCategory for Win 2012 R2

By default Win 2012 R2 treats NIC interfaces as PUBLIC.  Even with Windows Firewall OFF, it will still block RDP, etc... from external IPs...  To fix, change NetworkCategory to PRIVATE...

Using GPEDIT.MSC, runas Administrator
  • Navigate to Computer Configuration / Windows Settings / Security Settings / Network List Manager Policies.
  • Double click the Network name of network that you would like to change the location
  • Select the Network Location tab, and set the location to PRIVATE
  • Click OK, and close Local Group Policy Editor

Reference:
http://anonit.blogspot.com/2014/02/change-network-location-in-server-2012.html

Tuesday, May 19, 2015

Saving Netapp CIFS audit logs to file

From the command line of filer:
  1. Putty into filer
  2. Enter the following command to update the event log:
cifs audit save [-f]
The -f option allows you to overwrite the existing event log. If the event log does not exist, you can omit the -f option


Reference:
https://library.netapp.com/ecmdocs/ECMP1196993/html/GUID-E58BC8F8-15B9-404F-B097-FD6214E1D409.html

Wednesday, April 8, 2015

AD Search tool on Win 7

Create a shortcut called "AD Search" or something similar for this:

%windir%\system32\rundll32.exe dsquery.dll,OpenQueryWindow

Reference:
http://www.windowsdevcenter.com/pub/a/windows/2004/06/01/ad_shortcut.html