Monday, July 24, 2017

Remove User profiles on shared computers

For shared computers on your network where users login and you do not want hundreds of user profiles on the local shared computer.


Put the domain user accounts (or a group) into the local Guests group on the shared computers, when the user logs off, the entire profile is deleted.


From here, https://support.microsoft.com/en-us/help/165398/profiles-for-members-of-guests-group-are-deleted




If needed, you can remove old user profiles with a GPO.
Computer Configuration\Administrative Templates\System\User Profiles


Set Delete User profiles older than a specified number of days on system restart to Enabled



Monday, July 17, 2017

Volume Shadow Copies

Restore from Shadow Copy with long filename


- right click the folder you want to restore from shadow copy
- Previous Versions
- select a date and select Open
- navigate within the Shadow Copy to the problem folder or file that you wish to recover
- choose properties on this folder or file
- General tab, select the Location, highlight and copy the full location path
ex.
\\localhost\H$\@GMT-2017.07.14-10.45.03\Shares\Directory\
- open command prompt, cmd.exe
- use robocopy to recover
ex.
robocopy "\\localhost\H$\@GMT-2017.07.14-10.45.03\Shares\Directory\" H:\RESTOREHERE /E /COPYALL

Monday, July 10, 2017

HP Procurve Stuff

Firmware update using TFTP
Setup a TFTP server someplace on your network.
Download switch software, extract and place .swi files into TFTP directory
On the switch,
Switch# configure
Switch(config)# copy tftp flash 10.20.30.34 F_04_82.swi

Device will be rebooted, do you want to continue [y/n]? y
File will be copied to switch, should see a line indicating file being written and then switch will reboot itself.


Enable SSH
crypto key generate ssh
show crypto host-public-key
ip ssh
no telnet-server



Trunks
Switch# configure
Switch(config)# trunk 11-13 trk1



Time
Switch# configure
Switch(config)#  timesync sntp
Switch(config)#  sntp unicast
Switch(config)#  sntp server priority 1 192.168.1.23
Switch(config)#  time daylight-time-rule continental-us-and-Canada
Switch(config)#  time timezone -300