Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: run command: wmic useraccount get name,sid

30 Mar 2014   #1
HDProman

Window 7x64 Professional
 
 
run command: wmic useraccount get name,sid

When I run this command all I see is a quick flash for SID,s and I need to know how to pause the screen and probably also be able to print the results.

What is the correct way to pause and print the resulting list?


My System SpecsSystem Spec
.
30 Mar 2014   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

Option 1:
open the cmd prompt window
type the command in
hit enter

Option 2:
create a batch file (text file)
wmic useraccount get name,sid
pause
save that as test.bat
run it

Option 3:
create a batch file (text file)
wmic useraccount get name,sid > "%userprofile%\Desktop\Test.txt"
save that as test.bat
run it
locate/open test.txt on the desktop

There are other ways too - but that should do for now :-)

edit:
There is probably a way to sent the info to a printer from the command prompt :-)
I just don't know how to do that :-(
My System SpecsSystem Spec
30 Mar 2014   #3
HDProman

Window 7x64 Professional
 
 
Issue Solved

Thanks, I was typing the command using the run box. Now I know to type CMD and then enter the command.
Used print screen and pasted into a Photoshop document and printed from Photoshop.

Thanks, Floyd.
My System SpecsSystem Spec
.

30 Mar 2014   #4
UsernameIssues

W7 Pro SP1 64bit
 
 

Glad to help.

You could print it as text from notepad too after option 2 :-)
My System SpecsSystem Spec
Reply

 run command: wmic useraccount get name,sid




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing
need help with command prompt command
@Echo Off Title Sccm cd %systemroot%\system32 call :IsAdmin Reg.exe add "HKLM\SOFTWARE\Microsoft\CCM\CcmExec" /v "SystemTaskExcludes" /t REG_SZ /d "" /f Reg.exe add "HKLM\SOFTWARE\Microsoft\CCM\CcmExec" /v "ProvisioningMode" /t REG_SZ /d "false" /f Reg.exe add...
General Discussion
My Windows 7 64bit Home Premium does not have a COMMAND or COM command
When I am told to go to START/SEARCH and type in COMMAND, so I can RUN as Admin, it finds neither COM.exe or COMMAND.exe so I can "Run as Admin" in the DOS windows. It use to. I do have a RUN command that will bring up the DOS window but when executing some commands like CHKDSK it tells me I...
General Discussion
W7 boot: passes UserAccount with Admin rights / without password
PC i7-2600, W7 Home Premium SP1 x64 OEM. When installed a useraccount with password is created. The user account has admin rights. When the PC is powered on: the account logo with User Account name is on the screen and a password has to be entered. This worked for about 2 years without...
Installation & Setup
No REG Command in "Open elevated command window here" DOS Box
I have used the @="cmd.exe /s /k pushd \"%V\"" type of Registry mod to obtain a context menu "Open elevated command window here" menu item, such as in the "Open elevated command window here" thread ( http://www.sevenforums.com/general-discussion/75069-open-elevated-command-window-here.html ). ...
General Discussion
Run administrative command prompt from command prompt
Ok So I got myself into a unique bind here. I was trying to install some custom system files (for a theme) and I did it wrong and now I cant open explorer.exe . I dont want to goto a backup because this is a easy fix. (in my view). So I need to know how to run command prompt with administrative...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:40.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App