Thoughts from the EPS Windows Server Performance Team
Happy Friday AskPerf! No, that’s not a typo in the title, the NET PRINT functionality no longer exists in Windows 7. The decision to deprecate the functionality was based on usage data and the fact that there were multiple ways to perform the same tasks. Before we go over new ways to do what was a familiar task, let’s quickly recap the NET PRINT functionality.
The information below is from the help for the NET PRINT command: NET PRINT \\computername\sharename [\\computername] job# [/HOLD | /RELEASE | /DELETE]
NET PRINT displays print jobs and shared queues. For each queue, the display lists jobs, showing the size and status of each job, and the status of the queue.
Although NET PRINT is no more, there is a VBScript which can be found in : %windir%\System32\Printing_Admin_Scripts\en-US that can be used to perform similar tasks. The name of the scripts is prnjobs.vbs. The help information is below. Run prnjobs.vbs –? to display the help info.
Usage: prnjobs [-zmxl?] [-s server][-p printer][-j jobid][-u user name][-w password]
As you can see from the command above, there are several arguments that can be passed to the script:
Now that we’ve looked at the usage for both tools, here is a mapping of net print commands to their equivalent prnjobs.vbs script usage commands (assuming that you are running this locally. If running remotely, specify the server name using –s in the prnjobs.vbs command):
One final note is that many of these tasks can also be performed via PowerShell scripts or WMI scripts. See the resources below for more information.
Well, that’s it for this post. Enjoy your weekend! Until next time …
- CC Hameed
I was wondering why the team didn't go the Powershell way :)
Oh,I never know Win7 dont have NET PRINT.
Thanks for your reminder.