The following have come in handy for mounting a Windows share on a Linux computer: mount -t cifs -o username=user,password=password,umask=000 //winbox/winshare /mnt/home/ or smbmount //winbox/winshare /mnt/home/ -o username=user,password=password,rw An example of mounting a local NTFS partition held on the same machine: ntfsmount /dev/sda2 /mnt/windows -o umask=0002,silent
Archive for the ‘Windows’ Category
If your running Exchange 2007 and you don’t really have the need for an SSL that’s issued by a valid CA, then you can just renew the self signed one that’s automatically generated on server build. Most devices are happy to connect to an unsigned SSL once an exceptions been made, but they may well [...]
I had a strange error in IIS6 today when adding a secondary IP. The site wouldn’t start and gave the error “The network location cannot be reached”. The IP was correct, pingable and the IIS host headers were all fine. I had to install the Windows 2003 support tools to fix this. They can be [...]
Appcmd list sites Appcmd list site “sitename” /config Appcmd start/stop sites “Default Web Site” (or whatever site you want to start) Appcmd add sites /name:”Site 5” /id:12 /bindings:http://mysite5.com:80 /physicalPath:C:\inetpub\site5 Backup IIS config: appcmd add backup appcmd list backup appcmd restore backup It has much much more functionality – appcmd /h
When you map a network drive in Windows, with a non-domain user for example, Windows will save the username but not the password. To persistently store the password, use the following from cmd: net use x: \\server’s.DNS.name\share /savecred /persistent:yes
A bit crude but it works. Make a schedule task for this batch file: del testsql1.asp C:\wget\wget.exe –timeout=30 –tries=1 http://www.website.com/testsql1.asp find /C “SQLServer Test Code 1″ testscript.asp IF ERRORLEVEL 1 IISRESET /RESTART /TIMEOUT:120 /REBOOTONERROR
To manually force Group Policy to refresh under Windows 2000, you use the command secedit /refreshpolicy Microsoft has replaced this command in Windows 2003 and XP with this command: gpupdate
I expect there will be a flag for this in future versions, but for now regedit is needed: HKEY_LOCAL_MACHINE\SOFTWARE\VERITAS\Backup Exec\Engine\Backup [For versions 9x and 10x] HKEY_LOCAL_MACHINE\SOFTWARE\SYMANTEC\Backup Exec for Windows\Backup Exec\Engine\Backup [For versions 11x and 12x] On the menu bar, select Edit | Add Value In the Value name field, type in “Fail Jobs On Corrupt [...]
By default IIS sets the upload filesize limit to a measly 200KB. To edit this you need to enable direct metabase editing in IIS, then edit c:\windows\system32\inetsrv\Metabase.xml . You need to modify the MaxRequestEntityAllowed which is in bytes. Restart IIS.
In Windows, right click on My Computer -> Properties -> Advanced -> Startup and recovery -> Setting -> Edit and change /NoExecute=… to /NoExecute=AlwaysOff You will need to reboot for changes to take effect.