- Go To Start > Accessories > Command Prompt
Right-click on the icon “Command Prompt” and choose “Run-As Administrator” - A DOS box will appear.
- Type the following
- net user administrator /active:yes
(this will enable the administrator account) - net user administrator /active:no
(this will disable the administrator account) - net user administrator password
(this will set the password on the account)
(in this example “password” is the password) - net user
(this will list all the user accounts on the system)
- net user administrator /active:yes
Architectural project manager and network admin for HH Architects, a small architectural firm in Dallas.
Sunday, October 11, 2009
Enable the Administrator Account In Vista Home Premium
Saturday, August 22, 2009
Vista Home – Net Account
I stumbled on how to accomplish changing the password expire settings in Vista Home Premium.
To remove the password expire date in Vista Home Premium, you have to use the old command line and use the net command to do this. I looked all over the GUI account dialog box for an option to to this but could not find one.
So to lift the password expire day do this.
- Under Start>Accessories> “Right-Click” on Command Prompt and click on “Run As Administrator”
- This will open a dos dialog box. At the prompt type in
- net accounts (this will list out all the settings for the current user)
- net accounts ? (this will list the syntax for using the command)
- net accounts /maxpwage:unlimited (this syntax will remove the password expiration date)
- net accounts /maxpwage:100 (this will set the password to expire in 100 days)
Friday, July 31, 2009
FreeBSD with ZFS filesystem
My notes to remember different zfs commands.
The FreeBSD Handbook is a good starting place.
or
zpool create zfsstorage /dev/ad0
zfs create zfsstorage/compressed
zfs set compression=on zfsstorage/compressed
zfs set compression=gzip-4 zfsstorage/compressed
zfs list
zfs set sharenfs="-maproot=root -network 10.1.41.0" zfsstorage/compressed
zfs get compressratio zfsstorage/compressed
zs get all
Wednesday, July 1, 2009
Using Ubuntu as a backup server
- Install Ubuntu 8.04 LTS with a minimal install
- Use apt-get update to update the repositories
- Use apt-get upgrade to make your new server current with security patches
- Use apt-get install rsnapshot, rsnapshot will be the backup technique we will use
- Configure your raid volume where your backups will be stored
- I use a hardware raid card, so all I need to do is make the partition.
- Use fdisk to create the partition.
fdisk /dev/sdb - I use jfs for my backup storage filesystem
- Use mkfs.jfs –L raid5 /dev/sdb1
- Add the new partition to /etc/fstab
LABEL=raid5 /mnt/raid5 jfs rw,atime 0 0
If you want you can use blkid to get the UUID of the new partition and use UUID instead of LABEL in /etc/fstab - If you try to mount the partition, you will probably get an error relating to there is not a /dev/ created yet.
- You now need to run partprobe to create the new /dev
- Now you can mount the partition
- mount /mnt/raid5
- Now we can edit the rsnapshot file located at /etc/rsnapshot.conf
- Set snapshot_root to be on your newly created partition like below
snapshot_root /mnt/raid5/rsnapshot/ - Skim thru the rest of /etc/rsnapshot.conf and modify as needed.
- Update here about ssh-keygen –t rsa
- Update here about sftp id_pub to server 2
- Update here about server 2 path in /etc/rsnapshot.conf
- Update here about running rsnapshot daily
- Update here about adding cron entries
- Update here about adding a samba share to access the backup from windows.
Thursday, April 16, 2009
pfSense vs. Vyatta
I recently installed pfsense at work to replace an aging smoothwall 2.0 firewall/transparent proxy. I like the use of FreeBSD as the underlying engine of pfSense. The add-on packages are relatively easy to install, except snort IDS has a few problems that are supposedly fixed in an upcoming version 1.2.3. You have the ability to enable SSH on the firewall, so you can use a command line to configure the firewall or just use the web interface.
I ran across another firewall/transparent proxy/IDS called Vyatta. I am currently testing out the features. At first glance, its seems to have a few more features than pfSense. You have the ability to use a web interface or a series of command line scripts that interact with the 2.6.x Linux kernel.
I am still do not have a determination of which I like better or which performs better on a given set of hardware restrictions.
Tuesday, April 7, 2009
Sugar CRM Installation Warning
"Errors have been detected during compatibility check. In order for your SugarCRM Installation to function properly, please take the proper steps to address the issues listed below and either press the recheck button, or try installing again.
| Component | Status |
|---|---|
| Writable Modules Sub-Directories and Files | Warning: Not Writable |
| Please fix the following module directories and the files under them before proceeding: /modules/ModuleBuilder/tpls" And you know that you have made everything "Writable" then you need to check for to hidden files that may not have been changed to writable. Under the /modules/ModuleBuilder/tpls/ look for the following files: .tmp_studioRelationship.tpl .tmp_studioRelationshipsExt.tpl These files have to be writable also or the installation will never proceed. I have seen posts on the SugarCRM forums that state these must be run as the user the webserver runs as but this is not the case. Just chmod 777 on these two files and all wil be good. | |
Creating a Service on Windows XP or Windows Server 2003
- Start>Run>CMD (get to a command prompt or CLI for short)
- sc is the command to create the service
sc \\server create "MSSQL$ACT7" binPath= "C:\Program Files\Microsoft SQL Server\MSSQL$ACT7\Binn\sqlservr.exe -sACT7" DisplayName= "MSSQL$ACT7" depend= "SQLAgent$ACT7"
This will create a custom SQL Server example for an ACT database.