In lodge to explore amongst WMI nosotros ask to know the alias for the special nosotros desire to explore. Let us abide by out what the 'alias' inwards WMI is.
Let us become the aid on 'alias' first.
Run this ascendency (just type WMIC inwards search charm inwards Windows 10[this is where y'all run across the Cortana icon]) too the C:\windows\System32\wbem\wmic.exe volition come upward up every bit shown.
Now type alias /? at the wmic:root> prompt every bit shown.
-----------------------------------
wmic:root\cli>alias /?
ALIAS - Access to the aliases available on the local system
HINT: BNF for Alias usage.
( [WMIObject] | [] | [] ) [].
USAGE:
ALIAS ASSOC []
ALIAS CALL []
ALIAS CREATE
ALIAS DELETE
ALIAS GET [] []
ALIAS LIST [
wmic:root\cli>
------------------
Now nosotros tin become the aliases too what they stand upward for using the Alias List ascendency every bit shown inwards the side yesteryear side using the listing switch - brief:
------------
wmic:root\cli>Alias List Brief
FriendlyName PWhere Target
NICConfig Where Index=# Select * from Win32_NetworkAdapterConfiguration
SysDriver where Name='#' Select * from Win32_SystemDriver
TapeDrive Select * from Win32_TapeDrive
NTEventLog WHERE LogfileName='#' Select * from Win32_NTEventlogFile
UserAccount Select * from Win32_UserAccount
Job WHERE jobid=# Select * from Win32_ScheduledJob
SoftwareElement Select * from Win32_SoftwareElement
--------------------------------------------------------
The total listing is long too higher upward is a clipped list.
Here is film of the consummate listing (use a magnifier to run across it):
WMicaliaslist.png
Let us become the aid on 'alias' first.
Run this ascendency (just type WMIC inwards search charm inwards Windows 10[this is where y'all run across the Cortana icon]) too the C:\windows\System32\wbem\wmic.exe volition come upward up every bit shown.
Now type alias /? at the wmic:root> prompt every bit shown.
-----------------------------------
wmic:root\cli>alias /?
ALIAS - Access to the aliases available on the local system
HINT: BNF for Alias usage.
(
USAGE:
ALIAS ASSOC [
ALIAS CALL
ALIAS CREATE
ALIAS DELETE
ALIAS GET [
ALIAS LIST [
- ] [
- ]
wmic:root\cli>
------------------
Now nosotros tin become the aliases too what they stand upward for using the Alias List ascendency every bit shown inwards the side yesteryear side using the listing switch - brief:
------------
wmic:root\cli>Alias List Brief
FriendlyName PWhere Target
NICConfig Where Index=# Select * from Win32_NetworkAdapterConfiguration
SysDriver where Name='#' Select * from Win32_SystemDriver
TapeDrive Select * from Win32_TapeDrive
NTEventLog WHERE LogfileName='#' Select * from Win32_NTEventlogFile
UserAccount Select * from Win32_UserAccount
Job WHERE jobid=# Select * from Win32_ScheduledJob
SoftwareElement Select * from Win32_SoftwareElement
--------------------------------------------------------
The total listing is long too higher upward is a clipped list.
Here is film of the consummate listing (use a magnifier to run across it):
WMicaliaslist.png
Komentar
Posting Komentar