GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Re: script tp modify 300 printers
Operating System - Microsoft
1847798
Members
2765
Online
104021
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2006 12:26 AM
06-21-2006 12:26 AM
script tp modify 300 printers
hello,
i have a file with 300 printers
i should execute the following command to each printer:
pdset -cd -x"-discard-time 43200" printer_name
i have something:
for /f %%p in (printer_list.txt) do call pdset.bat %%p
Pause
and pdset.bat has
pdset -cd -x"-discard-time 43200" %%p
but is not working
could anybody help me, please¿
thanks
regards
i have a file with 300 printers
i should execute the following command to each printer:
pdset -cd -x"-discard-time 43200" printer_name
i have something:
for /f %%p in (printer_list.txt) do call pdset.bat %%p
Pause
and pdset.bat has
pdset -cd -x"-discard-time 43200" %%p
but is not working
could anybody help me, please¿
thanks
regards
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2006 04:12 AM
06-21-2006 04:12 AM
Re: script tp modify 300 printers
Your IF statement looks good.
Your called BAT file parameter is the problem.
It should be %1 I.E.
pdset -cd -x"-discard-time 43200" %1
Jon
Your called BAT file parameter is the problem.
It should be %1 I.E.
pdset -cd -x"-discard-time 43200" %1
Jon
"Do or do not. There is no try!" - Yoda
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP