Windows
Windows 10 + Sysprep + Generalize + Error
I couldn’t run Sysprep on Windows 10 because some packages were incompatible with Sysprep. But you can do it without the option Generalize. Fix: Run Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation – you will see what the user blocks running Login with this users and run: Remove-AppxPackage -Package <invalid packagefullname […]
My python 2.7 script to parse wheather data and speak it
# -*- coding: utf8 ## encoding=utf8 import urllib import re from bs4 import BeautifulSoup import os import subprocess import codecs import sys from setupcon import setup_console setup_console(‘cp866’) sys.getdefaultencoding() reload(sys) sys.setdefaultencoding(“cp866”) # Get the page sock = urllib.urlopen(“http://tvoj.kharkov.ua/help/weather/”) htmlSource = sock.read() sock.close() #print htmlSource # soup = BeautifulSoup(htmlSource, “html5lib”) string = soup.h1 results = soup.find_all(‘span’, limit=10) […]
Exchange 2010 + Changes in renewing certificates 2016
Copy-pasted from: http://brattex.blogspot.com/2012/09/renew-exchange-2010-certificate.html Renew Exchange 2010 Certificate generates a binary file – conversion to base64 tips When renewing an SSL certificate for Exchange 2010, the process is fairly straightforward and there are plenty of sites to give advice on how to do this. Two sites to consider would be Technet and Go Daddy and the steps are summarised as […]
Script to fix issues with Windows updates
net stop wuauserv rmdir /s /q %windir%\SoftwareDistribution net start wuauserv wuauclt /detectnow
Script for W2k12 server to redial VPN
:start ping -n 2 192.168.0.1 | Find /I “TTL=” || goto next echo OK goto start :next echo Not OK rasdial “Office2” /disconnect rem ping 192.168.0.1 -n 5 rasdial “Office2” server password goto start
VPN autostart as a service
sc create VPNstart start= auto binPath= “rasdial vpn admin password” DisplayName= “VPNstart” depend= lanmanworkstation obj= “NT AUTHORITY\LocalService”
Replace or add a file into MSI
http://msi2xml.sourceforge.net/ The command extracts the MSI files: msi2xml -c OutputDir your.msi Open OutputDir and modify the file. To rebuild the MSI run: xml2msi.exe -m yourmsi.xml
Delete Windows Server Backups
We can delete older backups and free the space occupied by them using the following two ways: 1. Deleting System State Backup: wbadmin delete systemstatebackup –keepversions:10 The above command will keep the latest 10 versions and delete the rest all the system state backups. 2. Deleting other backups: Backup application stores multiple backup versions in […]
Subnet cheat-sheet
Subnet Mask Cheat Sheet See also RFC 1878. Addresses Hosts Netmask Amount of a Class C /30 4 2 255.255.255.252 1/64 /29 8 6 255.255.255.248 1/32 /28 16 14 255.255.255.240 1/16 /27 32 30 255.255.255.224 1/8 /26 64 62 255.255.255.192 1/4 /25 128 126 255.255.255.128 1/2 /24 256 254 255.255.255.0 1 /23 512 510 255.255.254.0 […]