- A stuck print job in the queue will prevent the printer from being removed. Try running Delete Print Jobs to remove the stuck print job.
- Disconnect the printer.
- Uninstall the printer.
- Restart your computer. Make sure the printer is removed. Manual Printer Driver Removal
Monday, 10 December 2012
Cannot completly remove printer
Thursday, 15 November 2012
Delete cached copied of user profile Windows 7 using GPO
Method 1:
Add your users to the 'Domain Guests' global group - those users won't leave any profile on your computers.. it works!
Method 2:
You can configure a Group Policy Object (GPO) to perform the preceding behavior by performing the following steps:
Add your users to the 'Domain Guests' global group - those users won't leave any profile on your computers.. it works!
Method 2:
You can configure a Group Policy Object (GPO) to perform the preceding behavior by performing the following steps:
- Edit the GPO that you want to modify.
- Locate the following section: Computer Configuration \ Administrative Templates \ System \ User Profiles.
- Double-click Delete cached copies of roaming profiles (the Group Policy setting).
- Click Enabled.
Method 3:
You can run this script every night to clean up. The check at the start is to exclude certain machines (the ones in lecture theatres)
The next section uses a WMI call to get a list of profiles other than the "special" ones (localsystem etc) and delete them (this is what you see when you go to the control panel and delete profiles)
This will sometimes leave bits behind so the next step is to get a list of folders which shouldn't be deleted by reading the existing profiles from the registry - this list is built in a dictionary. To this is then added things like "public" and "default".
The script then scans c:\users and checks each folder it finds against the dictionary. If the folder isn't listed then it gets deleted (because it doesn't need to be there)
The next section uses a WMI call to get a list of profiles other than the "special" ones (localsystem etc) and delete them (this is what you see when you go to the control panel and delete profiles)
This will sometimes leave bits behind so the next step is to get a list of folders which shouldn't be deleted by reading the existing profiles from the registry - this list is built in a dictionary. To this is then added things like "public" and "default".
The script then scans c:\users and checks each folder it finds against the dictionary. If the folder isn't listed then it gets deleted (because it doesn't need to be there)
Code:
const HKEY_LOCAL_MACHINE = &H80000002 set oDic=createobject("scripting.dictionary") Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv") Set oWMIService = GetObject("winmgmts:\\.\root\cimv2") set oFSO=createobject("scripting.filesystemobject") set oShell=createobject("wscript.shell") on error resume next 'are we on an AV machine? if so, quit - leave profiles alone in theatres if ofso.fileexists("c:\windows\av") then wscript.quit Set colItems = oWMIService.ExecQuery("Select * from Win32_UserProfile where special=false and loaded=false",,48) For Each oItem in colItems sSid=oItem.SID Set oUserProfile = GetObject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2:Win32_UserProfile.SID='" & sSID &"'") oUserProfile.Delete_ Next 'now clean up directories not attached to profiles 'and profiles not completely deleted by first step 'build a list of the directories used by profiles sPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" oReg.EnumKey HKEY_LOCAL_MACHINE, sPath, arrSubKeys For Each subkey In arrSubKeys lRc=oReg.GetStringValue(HKEY_LOCAL_MACHINE, sPath & "\" & subkey ,"ProfileImagePath",sDir) sDir=lcase(sDir) oDic.add sDir, subkey Next 'now add the "fixed" profiles lRc=oReg.GetStringValue(HKEY_LOCAL_MACHINE, sPath ,"ProfilesDirectory",sRoot) sRoot=lcase(oShell.expandenvironmentstrings(sRoot)) sRoot=sRoot & "\" oDic.add sRoot & "public","public" oDic.add sRoot & "all users", "all users" oDic.add sRoot & "default","default" oDic.add sRoot & "default user", "default user" set oFolder=ofso.getfolder("c:\users") for each oSubFolder in oFolder.subfolders sFolder=sRoot & lcase(oSubFolder.name) if not(oDic.exists(sFolder)) then 'orphaned folder so delete it ofso.deletefolder sFolder, true end if next
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!
Monday, 28 May 2012
Make a user Print Manager
In AD 2008 is a organisational unit called "builtin" and a group called "Print Operators". Just add user to this group "Print Operators".
Tuesday, 6 March 2012
Keyskills server test unlock
1. Application Windowà Staffà KeySkillsà KeySkills Test Unlock
2. Server: KeySkillsà Press Enter (OK)
3. Password: $tcharl3s
4.
5.
6.
7.
8.
9.
10. If any error message comes up, please call me on 235.
11. Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã Ã
Key Skills Exams – The Process
Key Skills Exams – The Process
DRH
1. Register students on exam base website (www.exambase.org.uk)
2. Set up exam on exam base website (which exam, date and session)
3. Register students onto the exam
MFL – In advance of exam (at least the day before)
4. Log into exam base server (password in user guide)
5. Download candidates (see user guide)
6. Download exam
7. Schedule exam (check start & end times – max window 3.5 hours)
8. Screen print window into MS Word
9. Add exam details to document (Date, Period, Room)
10. Print 4 copies to MS10 printer (DRH, RDE, MFL x 2)
11. Use right corner cross to close server software (not really closed)
12. Distribute printouts
MFL – 5 minutes before exam starts
13. Be in exam room
14. Log PCs on as 0000 (enough for number of candidates, plus 2 spares) Try to space candidates out. Use every other PC if possible.
15. Load Exambase client on each PC
16. When student arrive, direct them to every other PC first. Once every other PC is in use, use others.
17. Give copy of exam codes sheet to invigilator
18. Both go round class, giving the candidate code to each student
19. Get all students present to the same point, where they are ready to enter the key code
20. Read the key code out loud to the class – they can start!
21. Ask invigilator to complete seating plan – PC numbers next to names
MFL - Technical problems for individuals
22. Use Ctl+Alt Combination to exit an exam in the middle – no answers will be lost
23. Move student to a different PC (Should be already logged in)
24. Give them their candidate code and key code again to continue exam
MFL – Ending the exam
25. Students are entitled to the full hour, but are free to leave as soon as they finish
26. Once all candidates have finished, ensure all machines are logged out. Some may still be on the Exambase client login screen, so use the Ctl+Alt combination to exit. Then log out.
27. Lock the classroom if no teacher is present.
MFL – After the exam
28. Take the seating plan (register) to the Exambase server.
29. Maximise the server software (right click the icon in the system tray and choose ‘Show’.
30. Click on the exam just taken.
31. Ensure the exam status column says ‘Exam Complete’ for all the students who were present. Do not move on if not.
32. If the two lists match, click on ‘Upload Results’ to send the results to Edexcel.
33. Use right corner cross to close server software (not really closed)
MFL – Getting results
34. Login to the Exambase website (www.exambase.org.uk)
35. Go to ‘Reports menu’.
36. Go to ‘Feedback of results by exam’.
37. Choose the correct exam from the list.
38. Change the page setup to landscape.
39. Print 3 copies to MS10 (1x subject teacher, 1 x DRH, 1 x MFL for folder).
40. Distribute results to subject teacher & DRH.
RDE 8/3/2005
Keyskills server installation steps
Key Skills Server - Installation Steps
Support details: 08445 760 024 (option 3)
Centre no: 10163
This is a physical machine (Summer 2007 PC) located on a desk in the Manning 2nd floor server room. It is running Windows Server 2003.
Do not use remote desktop to control this server. Use VNC, which is available from the ZCM Application Window \ Staff \ Keyskills folder.
Full instructions in ‘Keyskills test unlock.doc’ Password: $tcharl3s
The main server software is called Enterprise Site Manager, which communicates with the Exam board (Edexcel), downloads lists of students registered for tests, and serves the actual on-screen exams.
1. Please download the Enterprise Site Manager from:
userid: r1431253
password: luCk381 (Changed each year by SAM in Maths)
2. Create a folder in c drive name: ESM_Test_Centre and give it full access share to everyone.
3. In the installation process select this folder as destination of installation
Key Skills Client - Installation Steps
1. Login to all PC as domain administrator and locate the setup file from:
a. \\keyskills\ ESM_Test_Centre\Updates\AdmSetup.exe
2. During installation please DO NOT just click next next….Select the Exam file location to \\keyskills\ ESM_Test_Centre\
(Please DON’T forget the last “\”)
Unlock Test Mail: (attachment saved in its3\2010\keyskills)
Dear Bob and Sam,
This year, you can unlock key skills & Adult Numeracy tests for all candidates. You only can unlock test prior to 3/4 hours of the tests. So for a test at 2 pm, unfortunately you can not unlock it 9 am in the morning.
It should work fine but in case if you face any problem in server or any kind of error message, please call me on 235 instantly and please DO NOT do anything as if server getting closed or interrupted, all current running tests will be interrupted. Please find the attachment file for graphical instruction and I will go through with both you for more details.
Please be sure that, only Sam and Bob can see the icon in 'application launcher' and NO other teaching or support staff can see the Test Unlock icon apart from the IT Services.
IT Services can also unlock the tests.
Feel free to call me on 235
Thanks,
Monir
Monday, 23 January 2012
Install and Configure WSUS Server
Q: Software list for server:
- IIS 7.0
- servermanagercmd -install web-asp-net web-static-content web-windows-auth web-mgmt-compat web-metabase
- servermanagercmd -i web-mgmt-console
- Microsoft sql server 2005 sp1
- Microsoft wsus server 2005 sp1-download it and then install it.
- Microsoft report viewer 2005
- Microsoft wsus client wuau22.msi
Tools for server:
- gpresult.exe
Q: Software list for client machine:
- wsus client agent ‘wuau22.msi’
- windowsupdateagent30 –x86.exe
- group policy client side extension
Tool for client:
1. clientdiag.exe wsus client diagnostic tool
1. Installing WSUS 3.0 SP1 on Windows Server 2008
Install WSUS pre-requisites
First, install the WSUS operating system pre-requisites. These pre-requisites are listed on the WSUS 3.0 release notes and can be installed using the ServerManagerCMD.exe command line tool.C:\>servermanagercmd -install web-asp-net web-static-content web-windows-auth we
b-mgmt-compat web-metabase
................................................................................
..............
Start Installation...
[Installation] Succeeded: [Web Server (IIS)] Management Tools.
[Installation] Succeeded: [Web Server (IIS)] Web Server.
[Installation] Succeeded: [Web Server (IIS)] IIS 6 Management Compatibility.
[Installation] Succeeded: [Web Server (IIS)] Common HTTP Features.
[Installation] Succeeded: [Web Server (IIS)] Security.
[Installation] Succeeded: [Web Server (IIS)] Application Development.
[Installation] Succeeded: [Windows Process Activation Service] .NET Environment.
[Installation] Succeeded: [Windows Process Activation Service] Process Model.
[Installation] Succeeded: [Web Server (IIS)] IIS 6 WMI Compatibility.
[Installation] Succeeded: [Web Server (IIS)] IIS 6 Metabase Compatibility.
[Installation] Succeeded: [Web Server (IIS)] Windows Authentication.
[Installation] Succeeded: [Web Server (IIS)] ISAPI Extensions.
[Installation] Succeeded: [Web Server (IIS)] ISAPI Filters.
[Installation] Succeeded: [Web Server (IIS)] Static Content.
[Installation] Succeeded: [Web Server (IIS)] Default Document.
[Installation] Succeeded: [Web Server (IIS)] Request Filtering.
[Installation] Succeeded: [Web Server (IIS)] IIS 6 Management Console.
[Installation] Succeeded: [Web Server (IIS)] IIS 6 Scripting Tools.
[Installation] Succeeded: [Web Server (IIS)] .NET Extensibility.
[Installation] Succeeded: [Web Server (IIS)] ASP.NET.
<100/100>
Success: Installation succeeded.
Though it is not a pre-requisite I also find it useful to install the IIS7 Management Console.C:\>servermanagercmd -i web-mgmt-console
.................................................
Start Installation...
[Installation] Succeeded: .
[Installation] Succeeded: [Windows Process Activation Service] Configuration API
s.
[Installation] Succeeded: [Web Server (IIS)] IIS Management Console.
<100/100>
Success: Installation succeeded.
2. Next, download and install Microsoft Report Viewer 2005 SP1.
3. Install the Microsoft SQL server 2005 service pack 2
4. Install the wsus 3.0 sp1
5. Run the ‘windows server update service 3.0 sp1’ from the ‘administrative tools’. And configure it from the option menu and then select the ‘windows server update service configuration wizard’.
a. Configure the automatic approvals
i. On the Update service administrator console that opens when the setup ends, click options and on the options tab. On the options window, click automatic approvals.
ii. On the automatic approval window, check the default automatic approval rule (automaticly approves critical and security updates) and click new rule if you wish to add additional auto-approve rules for specific products or classifications.
iii. On the add rule wizard specify any other auto approve rules that you wish by product or classification.
iv. On the choose product and classifications window, check only forefront-forefront client security and click ok.
v. Back on the add rule window under step 3, type rule name (ex. FCS Update rule) and click ok twice.
6. Now it is time to install the software on the client machine and configure the client machine
a. The wsus client wuau22.msi (windowsupdate30 x86) on client machine from the server that is running active directory.
b. Configure the wsus client registry settings using the ‘group policy’ from the ‘domain controller’.
i.
c. Turn Windows Defender on or off if it is vista.
i. In the domain controller-> administrative tools->group policy object-> computer configuration->administrative template-> windows defender-> then enable the ‘windows defender’
d. Check this following registry settings added to the registry of each Windows client at this location:
HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU
7. Enable the anonymous access to default site:
iis manger->sites-> default web site-> authentication-> enable anonymous access
1. ClientWebService
2. Content
3. DssAuthWebService
4. ReportingWebService
5. ServerSyncWebService
6. SimpthAuthWebService
7. SelfUpdate
2. Content
3. DssAuthWebService
4. ReportingWebService
5. ServerSyncWebService
6. SimpthAuthWebService
7. SelfUpdate
8. WSUS clients not updating or checking in with server:
net stop wuauserv
Del c:\windows\windowsupdate.logs (XP Client)
net start wuauserv
wuauclt.exe /resetauthorization (do not do this because it will reset the local policy-windows update configuration)
net start wuauserv
wuauclt.exe /resetauthorization (do not do this because it will reset the local policy-windows update configuration)
uauclt.exe /detectnow
wuauclt.exe /reportnow
On client computers running Windows 2000, you can type the following at a command prompt: secedit /refreshpolicy machine_policy enforce.
9. Download the clientdiag.exe - wsus client diagnostic tool
Q. To check the client is updating from the wsus server use the following two tools from the client machine:
Clientdiag.exe
C:\windows\windowsupdate.log
C:\windows\softwaredistribution\reportviewer.log
Q. How to check wsus Client is installed in the client pc
The first thing to check is whether the client computer is using the latest Automatic Update client version.
The current version of the Windows Update Agent (the WSUS client component in AU) is determined by the version of the WUAUENG.DLL, located in %systemroot% \system32 folder. If the version of WUAUENG.DLL is 5.4.3790.1000 or greater, the WSUS client (or WUA) is installed. A version less than 5.4.3790.1000 indicates that SUS or earlier AU version 1.0 is installed.
Q: How do I verify that the AU client is installed correctly?
- Look at the IIS Logs of the website running on port 80 for Self Update Attempts
- Check the version of one of the Windows Update Agent binaries.
- %windir%\system32\wuaueng.dll should be version 5.7.0.2177 or higher after a successful selfupdate.
- From an IE browser on the client, try the following URLs to ensure that you are prompted to download or save:
- http://wsusservername/iuident.cab
- http://wsusservername/selfupdate/AU/x86/XP/EN/wuaucomp.cab
- Look at the Windows Update log on your local client for Self Update Success.
- Look at the Windows Update log for Detect Success.
The AU software for WUS includes the following:
wuaserv.dll is the service dll(Windows Update AutoUpdate Service), but there some of the other key files are:
wuauclt.exe(Windows Update AutoUpdate client)
wuaueng.dll(Windows Update AutoUpdate Engine)
wupdmgr.exe(Windows Update Manager for NT)
qmgr.dll (BITS service dll)
wuapi.dll(Windows Update Client API)
wucltui.dll(Windows Update Client UI Plugin)
wupdinfo.dll(Windows Update Info for NT)
wups.dll(Windows Update client proxy stub)
wuv3is.dll(Windows Update Engine)
wuweb.dll(Windows Update Web Control)
A. Run this command from Command prompt at the AU client:
wuauclt.exe /detectnow
Use the Resultant Set of Policies (RSOP), like Group Policy Management Console, GPMC, or GPRESULT.EXE to investigate if the policies are being correct applied to your client systems.
WUServer = http://192.168.0.10:8530
WUStatusServer = http://192.168.0.10:8530
WUStatusServer = http://192.168.0.10:8530
Client Connection Problem to WSUS Errir 80072efd
Make sure ANONYMOUS access is enabled for the following virtual
directories from IIS;
1. ClientWebService
2. Content
3. DssAuthWebService
4. ReportingWebService
5. ServerSyncWebService
6. SimpthAuthWebService
7. SelfUpdate
directories from IIS;
1. ClientWebService
2. Content
3. DssAuthWebService
4. ReportingWebService
5. ServerSyncWebService
6. SimpthAuthWebService
7. SelfUpdate
Q: Enable client side targeting:
If you want to assign a client to more than one computer group, you should separate the computer group names with a semicolon plus a space: Group1; Group2.
Netstat-command line tool
Subscribe to:
Posts (Atom)