![]() ![]() PAGEFILESET WHERE Name=”C:\\pagefile. PAGEFILE GET AllocatedBaseSize,CurrentUsage,Name,PeakUsage OS GET CSName,CSDVersion,OSType,Version,NumberOfUsers,Caption,CurrentTimeZone ![]() NETEVENTLOG GET FileSize,MaxFileSize,LogFileName,OverWritePolicy If possible, not the SID but the username in plain text ReportFileName 'c:\printerreport. Is it possible to export the users and groups of the installed printers. Hello, I found the following PowerShell script in this forum, it works very well. NTDOMAIN GET Description,DnsForestName,DomainControllerAddress get DeviceID, DriverName, Hidden, Name, PortName, PowerManagementSupported, PrintJobDataType, VerticalResolution, Horizontalresolution. Get printer names, IP addresses and drivers from a computer using WMI. NICCONFIG WHERE MACAddress!=NULL GET Caption,DefaultIPGateway,DHCPServer,DNSHostName,DNSServerSearchOrder NIC GET AdapterType,Caption,MACAddress,NetconnectionStatus,ServiceName,MACAddress NETPROTOCOL GET Name,Status,SupportsBroadcasting NETLOGIN GET PasswordExpires,Name,NumberOfLogons,ScriptPath,LogonServer ![]() MEMPHYSICAL GET MaxCapacity,MemoryDevices MEMORYCHIP GET Capacity,DeviceLocator,MemoryType MEMLOGICAL GET TotalPageFileSpace,TotalPhysicalMemory MEMCACHE GET InstalledSize,CacheType,SystemName LOGON GET AuthenticationPackage,LogonID,LogonType,StartTime LOGICALDISK WHERE “DriveType=’3’ OR DriveType=’4’” GET Caption LOADORDER GET Name,GroupOrder /format:csv:”sortby=GroupOrder” IDECONTROLLER GET Manufacturer,Name,Status,SystemName To run one of the queries, cut the entire contents of a cell in the Example Text column, paste at the WMIC command prompt, edit the variables as appropriate, and press the ENTER key.īIOS GET Manufacturer,Name,ReleaseDate,SMBIOSBIOSVersionĬDROM GET Drive,MediaLoaded,Name,Size,SystemName,VolumeNameĬOMPUTERSYSTEM GET Domain,Manufacturer,Model,Name,PrimaryOwnerNameĬPU GET CurrentClockSpeed,DeviceID,ExtClock,MaxClockSpeed,L2CacheSize,CaptionĭATAFILE WHERE “Extension=’ini’ and path=’\\’” GET Name,LastModifiedĭATAFILE WHERE “Path=’\\windows\\system32\\wbem’ AND Extension=’dll’ GET Name,LastModifiedĭESKTOPMONITOR WHERE Availability=’3′ GET ScreenHeight,ScreenWidth,PNPDeviceIDĭEVICEMEMORYADDRESS GET CSName,Name,StartingAddress,EndingAddressĭISKDRIVE GET InterfaceType,Model,Partitions,Size,SystemName,Model,NameĮNVIRONMENT WHERE “Username=’’” GET Name, VariableValue,NameįSDIR WHERE “Path=’\\Windows\\’” GET CSName,Compressed,EightDotThreeFilename,Filename The following table contains example text of common queries using WMIC Aliases. Using the WMIC alias makes it easier to return computer information, all from a command line. WMIC is the command line interface to WMI. I’ve not seen it elsewhere, and since I’ve found it so useful, I’m going to repost it here. This is straight from the Microsoft Technet July 2005 CD set. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |