Thursday, 25 October 2012
Connect to registry settings remotely
Launching regedit, connecting to the remote system (File | Connect Network Registry), and inspecting that system's [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Windows\CurrentVersion\Uninstall] may not be as nice as the Control Panel applet, but it may work in a pinch...
Monday, 22 October 2012
Windows 7: Task scheduler - Run a batch file in the background on every 5 minutes
- Create a batch file called copy.bat with following command: xcopy C:\inetpub\wwwroot\GYMREG \\its3\users\staff\mah\Website\GYMREG /E /Y
- Create a new task in task scheduler and run it on every 5 minutes.
- In order to run batch file on every 5 minutes you have to run the scheduled task with another user not using the user normally will be logged on. For example if you login on your pc using mah account then you should run the scheduled task using its2 or any other account.
- The box for "Do not store password" also says "The task will only have access to local resources." As my task didn't need network access, I thought leaving this box checked was OK. I un-checked it, and now the task runs with no users logged in. The XML changed from
Error messege: the selected task "{0}" no longer exists. to see the current task, click refresh
I spent a few minutes
and tracked down the problem and a solution. The issue is a result of task
files which exist in the Tasks folders which have no entry in (presumably) in
the registry. Here's how I worked through the issue - will take some time, but it
has cleared up the issue completely for me:
- Open
Task Scheduler and click OK when prompted with the error. It may seem like
you are receiving the same error over and over, but this is really due to
the number of tasks which are broken. Make a note of the number of times
you are prompted with the the selected task "{0}"
error. This is the number of task files that are out of sync with the
registry.
- Start
with the first folder under Windows tasks (Task Scheduler(Local)\Task
Scheduler Library\Microsoft\Windows) and select each folder in turn until
you receive the the selected task"{0}"
error. This folder contains files that are not in sync with the task
scheduler.
- Open
Windows Explorer and navigate to the tasks file folder
(%SystemFolder%\Tasks\Microsoft\Windows) and find the folder which
corresponds to the folder in which you received the error.
- For
some tasks you will be able to determine which files need to be deleted by
comparing the list in the Task Scheduler with the list of files in
Explorer. Some tasks will only have a single file in explorer, or, in one
case I had 2 and the first was missing. Once Task Scheduler encounters
this error it will no longer display tasks so it makes the job of getting
the two in sync a little more difficult. Once you have determined which
files exist in the File Folder but do not exist in the Task Scheduler
folder, delete those files.
- IMPORTANT - Close and Re-open Task Scheduler. Once the error is
encountered, Task Scheduler no longer displays the tasks so you need to
close it and restart in order to continue your synchronization effort.
- Continue
to select folders in Task Scheduler under Windows tasks until you
encounter the error again and repeat the process of determining which file
exists on the file system, but not in Task Scheduler.
I had 6 files that
were out of sync with what was displayed in Task Scheduler. Once I deleted all
of the offending files, Task Scheduler fired up without issue.
Thursday, 11 October 2012
Solution: IE (internet explorer) processes not closing down
Sometimes when you close a tab or IE itself it doesnt always shut down the corresponding process:
1. Open regedit
2. navigate to HKCU\Software\Microsoft\Internet Explorer\Main
3. Either create a dword entry called TabShutdownDelay or if its already there edit it (wasnt there on mine)
4. Enter the value (in seconds) you want for how long it takes to shut down the process (0 will force the process to close immediately)
pls do same to 2 more registry keys as below:
HKLM\Software\Microsoft\Internet Explorer\Main
HKLM\Software\Wow6432Node\Microsoft\Internet Explorer\Main
1. Open regedit
2. navigate to HKCU\Software\Microsoft\Internet Explorer\Main
3. Either create a dword entry called TabShutdownDelay or if its already there edit it (wasnt there on mine)
4. Enter the value (in seconds) you want for how long it takes to shut down the process (0 will force the process to close immediately)
pls do same to 2 more registry keys as below:
HKLM\Software\Microsoft\Internet Explorer\Main
HKLM\Software\Wow6432Node\Microsoft\Internet Explorer\Main
Monday, 8 October 2012
No access to IIS from another computer
Normally this is firewall problem if you can access iis localy. It means the computer you are trying to access:
--> go to that computer
--> open a browser and type: http://localhost/
-->if you can access the iis locally that means iis is running.
Now:
-->open the firewall
-->click the - allow a program or feature..
-->find the allow the program called: World wide web services(http)
-->click ok and exit firewall
--> go to that computer
--> open a browser and type: http://localhost/
-->if you can access the iis locally that means iis is running.
Now:
-->open the firewall
-->click the - allow a program or feature..
-->find the allow the program called: World wide web services(http)
-->click ok and exit firewall
Monday, 17 September 2012
Active Directory (AD) Query: dsquery
- • List all users in an OU:
dsquery user -limit 2000 "ou=West,dc=MyDomain,dc=com" | dsget user -samid
dsquery user OU=Sales,OU=Usuarios,DC=mycompany,DC=ecu,DC=com
• To find all computers in the organizational unit (OU) given
by ou=sales,dc=micrsoft,dc=com and display their DNs:
dsquery computer ou=sales,dc=microsoft,dc=com
dsquery computer –name (put name here)
Examples:
To find all computers in the current domain whose name starts with "ms"
and whose description starts with "desktop", and display their DNs:
dsquery computer domainroot -name ms* -desc desktop*
Wednesday, 29 August 2012
Windows7: Home folder rename to my documents automatically
Move Files with User Home Folder on Bulk
Users on our network from previous years have home folders set up as follows:
\\servername\staffshare\username\files
This is fine for a windows xp but with Windows 7 it needs a different layout to benefit the libraries. In my setup for the last couple of years, i have used my approach which is to use the follwoing:
\\servername\staffshare\username\documents\files
This works really well and removes the issue with seeing My Documents for folder names. What i want to do now is create the same structure for previous years homefolders, but i will need to move the files into documents. Has anybody done this before on mass with a script or tool. Any help will be greatly appreciated!
Subscribe to:
Posts (Atom)