To extend the period for testing etc. great !
http://www.microsoft.com/downloads/details.aspx?FamilyID=ba571339-5436-4cf5-9c37-6ed7dab6f781&displaylang=en
How to manually rearm the 10 day activation grace period
When the initial 10-day activation period nears its end, you can run the Slmgr.vbs script to reset it back to 10 days. To do this, follow these steps:
1. Click Start, and then click Command Prompt.
2. Type slmgr.vbs -dli, and then press ENTER to check the current status of your activation period.
3. To reset the activation period, type slmgr.vbs –rearm, and then press ENTER.
4. Restart the computer.
This resets the activation period to 10 days, and can be used up to five times. After this you will need to either activate or reinstall the evaluation.
Some scripts for user account management (tested in AD 2003 / Exchange 2003 environment):
- Create user, random password, generate username...
- List all users who have their mail forwarded
Some scripts for groups - simple really but sometimes useful:
- Add users to a groups
- List all memebrs of a group
- List all groups in the domain and all the users in each group
// Show ip4 interface config
netsh interface ipv4 show config
// Set static IP-adress & Properties
netsh interface ipv4 set address name =<interface name> source static address=<ip-adress> mask=<subnet mask> gateway=<gateway adress>
// Add DNS Server
netsh interface ipv4 add dnsserver name=<interface name> address=<dns-server-ip> index=1/2 (For 1st/2nd DNS)
// Rename server
netdom renamecomputer <old-server-name> /NewName:<new-server-name>
// Join server to domain
netdom join <server-name> /domain:domain.local /userd:* /passwordd:*
//
c:\Windows\System32\cscript scregedit.wsf /AR 0
// Activate Windows
c:\Windows\system32\cscript slmgr.vbs -ato
// Install prodkey
c:\Windows\system32\cscript slmgr.vbs -ipk
// UnInstall prodkey
c:\Windows\system32\cscript slmgr.vbs -upk
// Enable Remote Desktop in Windows Firewall
netsh advfirewall Firewall set rule group="Remote Administration" new enable=yes
// Activate Automatic Updates
cscript \windows\system32\scregedit.wsf /au 4
net stop wuauserv
net start wuauserv
wuauclt /detectnow
// Change Display settings
Control desk.cpl
// Set language, keyboard etc.
Control intl.cpl
// Change System Properties
Control sysdm.cpl - View or set system properties.
// Set date & Time
Control timedate.cpl
// Enable Windows Remoteshell
WinRM quickconfig
// Apply security update/fix
wusa.exe patchname.msu /quiet
// List installed/not installed server roles
OCList.exe
// Add or remove server roles / features
OCSetup.exe
// List a lot of commands you can run to configure OS
cscript C:\Widnows\System32\Scregedit.wsf /cli
// Lsita system info
SystemInfo
// Handle eventlog
wevtutil.exe
// List installed updates
Wmic qfe list