Rexxer

Some tips for me and other

Windows

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”

Allow users to restart a service

sc sdset audiosrv O:BAG:BAD:(A;;GA;;;WD)

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 […]

The trust relationship between this workstation and the primary domain failed

Powershell: Reset-ComputerMachinePassword [-Credential ] [-Server ] Cmd: netdom.exe resetpwd /s:<server> /ud:<user> /pd:* <server> = a domain controller in the joined domain <user> = DOMAIN\User format with rights to change the computer password

Remote Assistance suddenly stop working

I met a strange issue with Remote Assistance: I couldn’t connect with msra to several PCs. But it worked before. After some investigation I found that if my user in the Local Administrators group – it works. After googling I supposed it’s related to DCOM and found this: https://support.microsoft.com/en-us/kb/884910 So, the resolution for me was […]

DKIMValidator

http://dkimvalidator.com/

Previous Posts Next posts