Openunix.eu
Windows
Warning: using MS Window$ may cause legal and moral issues, even more, mental issues too!!!
- rebooting or halting windows from command line (especially useful when remote desktop used):
run "cmd" and when the command prompt opens run:
shutdown /r
for reboot
shutdown /s
for shutdown
- Add local user:
net user James bigblackcat123 /add /expires:never
- Remove the user:
net user James /delete
- Make user James administrator
net localgroup administrators James /add
- Remove user James from administrators
net localgroup administrators James /delete
- Scheduled shutdown Windows 7
-
1. Go to Start > Control Panel > System and Security > Administrative Tools and click on the Task Scheduler.
-
2. From the Action menu in Task Scheduler, click "Create Basic Task..."
-
3. In the "Create Basic Task Wizard" windows that pops up, Type in a title and a description. Something basic like "PC Shutdown."
-
4. Click "Next."
-
5. On the "Task Trigger" screen, choose the frequency with which you want the Shutdown PC to run. For nightly shutdown, click on "daily" and click the Next" button.
-
6.On the "Daily" screen, enter the date and time you want your PC to shutdown. Click "Next."
-
7. On the "Action" screen, choose "Start a program" and click "Next."
-
8. On the "Start a Program" screen, type C:\Windows\System32\shutdown.exe in the "Program/script" text field.
-
9. In the Add arguments text field type /s.
-
10. Click "Next."
-
11. Confirm your settings on the Summary screen and click "Finish."
- activating Win7 with MAK (multi activation key)
In case en error concerning DNS comes up during windows activation, it's possible to solve it with command line manually once you have the key:
using CMD:
slmgr.vbs /xpr
will display how many days till the activations remain
slmgr.vbs /ipk 00000-00000-00000-00000-0000
will attempt to activate locally using your product key
slmgr.vbs /dli
will display license information
- adding shared disks via cmd
using CMD:
net use x: \\192.168.7.1\shared
adds shared disk to the system
net use x: \\192.168.7.1\shared password /user:username
will use authentication
net use x: /delete
will remove the share
- Network Desktop Shortcuts Disappear in Windows 7
On Windows 7 Professional - typically in a domain environment - desktop shortcuts that you create pointing at network locations or mapped drives occassionally vanish never to be heard of again. This is due to the location of the shortcuts being unavailable or broken during the System Maintenance Troubleshooter performing it's maintenance tasks. The System Maintenace Troubleshooter will either fix problems it detects or report them using the Action Center.
When it comes accross 3 or more 'broken' shortcuts it automatically deletes all shortcuts without warning. The shortcuts may be valid and for whatever reasons if at that point in time the network location is unreachable (such is the case from time to time) it will class these shortcuts as broken and delete them
1. Disable the System Maintenance Troubleshooter. Note that disabling the System Maintenance Troubleshooter will also disable all the other routine maintenance procedures that are carried out such as fixing disk volume errors, removing logs/reports that are older than a month and fixing broken shortcuts. To Disable the System Maintenace Troubleshooter you must be logged in as an Administrator.
First Left Click the Start Button
Left Click Control Panel.
Under System and Security, click Find and fix problems.
On the left navigation pane, click Change settings.
Then Select Computer Maintenance to Off.
Click OK and close the open window.
2. Place the links in a folder somewhere else and create a link to that folder to the desktop.
3. Keep the number of broken shortcuts on your desktop to 4 or less - that way they will not be deleted.
- Cracking passwd on W7
Download OPH crack live CD
- Burn & Boot & mount windows partition, e.g. mount /dev/sda2 /mnt
- run ophcrack in QT4 interface
- download and unzip Vista Tables from sourceforge
- click on Tables and pick the directory with unpacked table files
- click on Load and go to /mnt/windows/System32/config
- Then press crack and start praying....
- Resetting passwd on W7
Download & Burn & Boot Hiren's live CD
- Enter Offline NT/2000/XP/Vista/7 password changer
- Wait for Registry Editor to load
- If no hard disk is found boot again with "irqpol"
- Choose the correct hard drive partition
- Confirm the windows registry path
- Choose the password reset option
- Choose Edit User Data nnd Passwords Option
sources:http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/how-to-schedule-computer-to-shut-down-at-a-certain/800ed207-f630-480d-8c92-dff2313c193b
- Open ports - Netstat
Show Open Ports
netstat -an |find /i "listening"
Show established connections
netstat -ao |find /i "listening"
- Routing tables
Show route
route print
Add new route (until dhcp is renewed)
route add 10.0.0.0 mask 255.0.0.0 192.168.0.1 metric 2
For permanent change
netsh int ip set address "Local Area Connection" address=192.168.1.64 mask=255.255.255.0 gateway=192.168.1.1
Delete route
route delete 10.0.0.0
sources: https://technet.microsoft.com/en-us/library/cc757323%28v=ws.10%29.aspx , http://serverfault.com/questions/293064/change-gateway-on-windows-7-from-command-line
Powered by NetBSD. Running on a toaster.