Search found 35 matches
- 2024-Apr-22, 10:30 am
- Forum: Windows CMD Shell
- Topic: WEVTUTIL displays more results than I want
- Replies: 0
- Views: 20
WEVTUTIL displays more results than I want
I've set up a task that triggers on a Windows Defender event. This is the query: <QueryList> <Query Id="0" Path="Microsoft-Windows-Windows Defender/Operational"> <Select Path="Microsoft-Windows-Windows Defender/Operational">*[System[( (EventID >= 1005 and EventID...
- 2024-Feb-26, 4:08 pm
- Forum: Windows CMD Shell
- Topic: Puzzled by Delims
- Replies: 4
- Views: 622
Re: Puzzled by Delims
Okay, changing tokens=2 solves the problem. It doesn't seem to matter whether delims==" or delims=^=" is used? For clarity, this is IMO the better option delims=^="
- 2024-Feb-22, 3:45 pm
- Forum: Windows CMD Shell
- Topic: Puzzled by Delims
- Replies: 4
- Views: 622
Puzzled by Delims
I want to know the name / make of a pc. So I use this command: wmic csproduct get name /format:list This returns Name=HP Z240 Tower Workstation Now I would like to strip the Name= part, so I use this: FOR /F "usebackq tokens=* delims=Name=" %%F IN (`wmic csproduct get name /format:list ^| ...
- 2024-Feb-22, 2:58 pm
- Forum: Windows CMD Shell
- Topic: Is there any universal way to redirect file operations to nul?
- Replies: 4
- Views: 685
Re: Is there any universal way to redirect file operations to nul?
I think it depends on the program you run? As soon as you start a program, cmd is no longer in control. That is, you can suppress the console output of a program (most of the times), but I don't think you can fiddle with any data operations the program performs.
- 2024-Feb-20, 9:38 am
- Forum: Windows CMD Shell
- Topic: Certificate Storenames
- Replies: 1
- Views: 294
Certificate Storenames
Deploying certificates using a GPO isn't always working correct, so I decided to install certificates using the domain Startup-script. Certutil it is. CertificateStoreName turned out to be a bit difficult. I thought I could use the name listed in the Certificates MMC Snap-in, like "Trusted Publ...
- 2024-Jan-22, 2:49 pm
- Forum: Windows PowerShell
- Topic: Inserting PS1 to Tray notification area of Windows for its execution purposes
- Replies: 5
- Views: 17430
- 2024-Jan-08, 2:12 pm
- Forum: Windows CMD Shell
- Topic: TIMEOUT -T
- Replies: 4
- Views: 2596
TIMEOUT -T
Minor thing / nitpicking. The section about Timeout lists -T as option. Windows 10 doesn't need the T-option, like timeout 30 works just as well. Windows 10 also lists it as /T and not as -T.
- 2023-Dec-19, 4:37 pm
- Forum: Windows CMD Shell
- Topic: How can a batch lower the priority ONLY of the cmd that runs it?
- Replies: 1
- Views: 2402
- 2023-Dec-11, 11:14 am
- Forum: Windows CMD Shell
- Topic: What is the best way to check for a disc in an optical drive?
- Replies: 2
- Views: 2162
Re: What is the best way to check for a disc in an optical drive?
Don't know if it's official, but maybe this could help? Like
Code: Select all
wmic logicaldisk where drivetype=5 get volumename
- 2023-Nov-08, 2:59 pm
- Forum: Windows CMD Shell
- Topic: CMD DISM Language
- Replies: 1
- Views: 3370
Re: CMD DISM Language
Maybe this can help you? Look for heading 'Using silent configurations'.