$Categoria = "computer" $Dominio = New-Object System.DirectoryServices.DirectoryEntry $Buscador = New-Object System.DirectoryServices.DirectorySearcher $Buscador.SearchRoot = $Dominio $Buscador.Filter = ("(objectCategory=$Categoria)") $Propiedad = "name" foreach ($i in $Propiedad){$Buscador.PropertiesToLoad.Add($i)} $Resultados = $Buscador.FindAll() foreach ($res in $Resultados){$Equipo = $res.Properties; $Equipo.name}
PS - Obtener Lista de Equipos del Dominio
Started by
Alberto Dominguez
, nov 21 2010 15:11
1 reply to this topic
#1
Escrito 21 noviembre 2010 - 15:11
Os dejo ejemplo que obtiene la lista de equipos pertenecientes al dominio:
Saludos,
Alberto Dominguez
Enterprise Architect y Trainer
MCT, MCPD, MCITP, MCITP Dynamics, MCSE, MCSA, MCTS, MCP...
ITIL V3 Foundation Qualification in IT Service Management
Perfil Profesional Twitter
Alberto Dominguez
Enterprise Architect y Trainer
MCT, MCPD, MCITP, MCITP Dynamics, MCSE, MCSA, MCTS, MCP...
ITIL V3 Foundation Qualification in IT Service Management
Perfil Profesional Twitter
#2
Escrito 21 noviembre 2010 - 15:54
Una variante que nos muestra el espacio libre en disco de cada equipo del dominio:
Añadiéndole formato al "Espacio Libre" quedaría de esta forma:
$Categoria = "computer" $Dominio = New-Object System.DirectoryServices.DirectoryEntry $Buscador = New-Object System.DirectoryServices.DirectorySearcher $Buscador.SearchRoot = $Dominio $Buscador.Filter = ("(objectCategory=$Categoria)") $Propiedad = "name" foreach ($i in $Propiedad){$Buscador.PropertiesToLoad.Add($i)} $Resultados = $Buscador.FindAll() foreach ($res in $Resultados){$Equipo = $res.Properties; Get-WMIObject -computername $Equipo.name Win32_Volume | Select-Object SystemName, DriveLetter, FreeSpace}
Añadiéndole formato al "Espacio Libre" quedaría de esta forma:
$Categoria = "computer" $Dominio = New-Object System.DirectoryServices.DirectoryEntry $Buscador = New-Object System.DirectoryServices.DirectorySearcher $Buscador.SearchRoot = $Dominio $Buscador.Filter = ("(objectCategory=$Categoria)") $Propiedad = "name" foreach ($i in $Propiedad){$Buscador.PropertiesToLoad.Add($i)} $Resultados = $Buscador.FindAll() foreach ($res in $Resultados){$Equipo = $res.Properties; $Espacio=@{name="Espacio Libre (MB)"; expression={"{0:N2}" -f ($_.FreeSpace/1MB)}}; Get-WMIObject -computername $Equipo.name Win32_Volume | Select-Object SystemName, DriveLetter, $Espacio}
Saludos,
Alberto Dominguez
Enterprise Architect y Trainer
MCT, MCPD, MCITP, MCITP Dynamics, MCSE, MCSA, MCTS, MCP...
ITIL V3 Foundation Qualification in IT Service Management
Perfil Profesional Twitter
Alberto Dominguez
Enterprise Architect y Trainer
MCT, MCPD, MCITP, MCITP Dynamics, MCSE, MCSA, MCTS, MCP...
ITIL V3 Foundation Qualification in IT Service Management
Perfil Profesional Twitter
#3
Escrito 14 julio 2017 - 21:53
Download
Dangerous Ishq Watch Online Free Full Movie
5206 -Tampa Red - Vol 6 1934 - 1935 @flac
Goldeneye "poster":"%2f%69%6d%61%67%65%73%2f%70%65%6f%70%6c%65%4e%6f%50%6f%73%74%65%72%2f%30%5f%39%30%2e%6a%70%67","link":"%2f%50%65%6f%70%6c%65%2f%47%6f%6c%64%65%6e%65%79%65%2d%39%39%32%32%36%32%30%2e%68%74%6d%6c","name":"%47%6f%6c%64%65%6e%65%79%65","type":"%4e%61%6d%65","description":"","genre":"","genrePhrase":"%43%61%72%65%65%72"
Otilia Bilianer Mp3
Sniper Elite III (PC)
Margaret Atwood - Handmaid's Tale (read by Claire Danes)
Slow Hands Niall Horan
When We Rise
Invasors
6.5
Read More ...
the walking dead
The Flash: Season 3, Episode 14
6.7 Air Bound
poya poya song dj mp3
JACOMO26
BDRipVF Le secret des banquises
altz ??2014 day2 vol 4
Julie Walters
The Founder (2016) .mkv pelicula descarga completa
Universal
Dangerous Ishq Watch Online Free Full Movie
5206 -Tampa Red - Vol 6 1934 - 1935 @flac
Goldeneye "poster":"%2f%69%6d%61%67%65%73%2f%70%65%6f%70%6c%65%4e%6f%50%6f%73%74%65%72%2f%30%5f%39%30%2e%6a%70%67","link":"%2f%50%65%6f%70%6c%65%2f%47%6f%6c%64%65%6e%65%79%65%2d%39%39%32%32%36%32%30%2e%68%74%6d%6c","name":"%47%6f%6c%64%65%6e%65%79%65","type":"%4e%61%6d%65","description":"","genre":"","genrePhrase":"%43%61%72%65%65%72"
Otilia Bilianer Mp3
Sniper Elite III (PC)
Margaret Atwood - Handmaid's Tale (read by Claire Danes)
Slow Hands Niall Horan
When We Rise
Invasors
6.5
Read More ...
the walking dead
The Flash: Season 3, Episode 14
6.7 Air Bound
poya poya song dj mp3
JACOMO26
BDRipVF Le secret des banquises
altz ??2014 day2 vol 4
Julie Walters
The Founder (2016) .mkv pelicula descarga completa
Universal
#4
Escrito 20 julio 2017 - 09:51
Salut Lami, Adieu Le TrГ©sor – Film Complet (VF) 26 juin 2017
I am Jane Do...2017
Hollywood WEB-DL 720p
Gert Frbe
X2 (2003)
Watch Sam Hunt Cuddle Up To Fiance Hannah Lee Fowler Mid-Performance at the 2017 ACMs!
Sezonul Cireselor episodul 28
Ballers Season 1 (2015) (Complete)
8.6 NieR: Automata ·2017
Hologram
Season 8
mission kashmir full movie download
better call saul
Odyssey American s01e11,
The Wedding Party 2016 HDRip XviD AC3-EVO
Science fiction
The Late Show with Stephen Colbert Season 2 Episode 167 s02e167
Steven Universe, Volume 1
download
See You After School
(2016) DVD BOO A MADEA HALLOWEEN
mkv
Pashto Singers Mp3
Huiles essentielles antivirales : La solution naturelle pour lutter contre les infections
TV Packs
I am Jane Do...2017
Hollywood WEB-DL 720p
Gert Frbe
X2 (2003)
Watch Sam Hunt Cuddle Up To Fiance Hannah Lee Fowler Mid-Performance at the 2017 ACMs!
Sezonul Cireselor episodul 28
Ballers Season 1 (2015) (Complete)
8.6 NieR: Automata ·2017
Hologram
Season 8
mission kashmir full movie download
better call saul
Odyssey American s01e11,
The Wedding Party 2016 HDRip XviD AC3-EVO
Science fiction
The Late Show with Stephen Colbert Season 2 Episode 167 s02e167
Steven Universe, Volume 1
download
See You After School
(2016) DVD BOO A MADEA HALLOWEEN
mkv
Pashto Singers Mp3
Huiles essentielles antivirales : La solution naturelle pour lutter contre les infections
TV Packs
#5
Escrito 20 julio 2017 - 09:55
HD Hostages (IL)
The Fault in Our Stars (2014) ?? ????? ??????
Latest Movies
Ballerina 2016 Full HD Izle
Lion FRENCH DVDRIP 2017
HARD AGGRESSIVE HIP HOP RAP BANGER
mere rashke qamar romantic love story
Battlestar Galactica
5 24 2017-05-21Elementary - Hurt Me, Hurt You
architecture
Mes jak nikt
Private Show LIVE OFFLINE cassy cassyGirls 18 + in Free Chat Love Do you like this model, send her a Love ! Love already given
Missing in..(2015)
Morgan Freeman
El Cuentacuentos
Dirty Dancing
J.A.G. - Im Auftrag der Ehre
Yea Toh Two Much Ho Gayaa (2016) mp3
VA - Armada Trance 16 (2012) [FLAC]
eros ramazzotti roma live 23 fuoco nel fuoco
Скачать торрент
Death Walks2016
Kyle S. More
The Fault in Our Stars (2014) ?? ????? ??????
Latest Movies
Ballerina 2016 Full HD Izle
Lion FRENCH DVDRIP 2017
HARD AGGRESSIVE HIP HOP RAP BANGER
mere rashke qamar romantic love story
Battlestar Galactica
5 24 2017-05-21Elementary - Hurt Me, Hurt You
architecture
Mes jak nikt
Private Show LIVE OFFLINE cassy cassyGirls 18 + in Free Chat Love Do you like this model, send her a Love ! Love already given
Missing in..(2015)
Morgan Freeman
El Cuentacuentos
Dirty Dancing
J.A.G. - Im Auftrag der Ehre
Yea Toh Two Much Ho Gayaa (2016) mp3
VA - Armada Trance 16 (2012) [FLAC]
eros ramazzotti roma live 23 fuoco nel fuoco
Скачать торрент
Death Walks2016
Kyle S. More
#6
Escrito 21 julio 2017 - 18:10
Man Seeking Woman
Westworld 1×06 HDTV 480p y 720p Ingles-Subs Mega
stoner metal
BrothaLovers 16 08 01 Kagney Linn Karter XXX 720p MP4-KTR[rarbg]
4x17 Thicker Than Water free
>>> Cliquez-ici pour Telecharger <<<
Geri Bildirim
Al cinema
Odcinek 2:
Extreme Female Domination Mistress And Slaves
Lethal Weapon
Westworld
The Walking Dead S05E08 REPACK 720p HDTV x264-KILLERS
Read more
Демо-версии (PC)
09. Episodio 05×09 : What Happened and What’s Going On
The Librarians Stagione 3 Episodio 3 orologio completamente inglese episodio on-line
Katie Sheridan
14x15 season x episode NCIS
La Llegada DVD-Screener
Super X Star 2013 DVDRip 576p
the survivalist
Me Case Con Un Boludo 2016 BluRay MicroHD
Westworld 1×06 HDTV 480p y 720p Ingles-Subs Mega
stoner metal
BrothaLovers 16 08 01 Kagney Linn Karter XXX 720p MP4-KTR[rarbg]
4x17 Thicker Than Water free
>>> Cliquez-ici pour Telecharger <<<
Geri Bildirim
Al cinema
Odcinek 2:
Extreme Female Domination Mistress And Slaves
Lethal Weapon
Westworld
The Walking Dead S05E08 REPACK 720p HDTV x264-KILLERS
Read more
Демо-версии (PC)
09. Episodio 05×09 : What Happened and What’s Going On
The Librarians Stagione 3 Episodio 3 orologio completamente inglese episodio on-line
Katie Sheridan
14x15 season x episode NCIS
La Llegada DVD-Screener
Super X Star 2013 DVDRip 576p
the survivalist
Me Case Con Un Boludo 2016 BluRay MicroHD
#7
Escrito 21 julio 2017 - 18:38
Wind River 2017 dvdrip reloj en lГnea
Assistir American Crime 3? Temporada Episodio 08 – Legendado Online S/L Em HD
The Swingers 2
Steve Jobs
Dreamweaver CS3 Bible
Chasing Shadows
Wedding Campaign
Xilisoft Video Converter Platinum 7 8 14 + Crack
Windows 10 Pro v.1511 En-us x64 July2016 Pre-Activated-=TEAM OS=
KuzeyKore
Most Girls - Hailee Steinfeld
Geisha Band
Spojrzenia
Stahlnetz
Neruda (2016) en linea gratis en movie2k
Elementary 3x11
Ozark Season 1 Episode 4 s01e04
1985 HD Invasion U.S.A. (1985)
seedpeer.eu
Blue Bloods HDTV 720p AC3 5.1
T Mobile Mp3
covenant 2017 brrip 1080p
Movie Pics
The Defenders
Whitechapel
Assistir American Crime 3? Temporada Episodio 08 – Legendado Online S/L Em HD
The Swingers 2
Steve Jobs
Dreamweaver CS3 Bible
Chasing Shadows
Wedding Campaign
Xilisoft Video Converter Platinum 7 8 14 + Crack
Windows 10 Pro v.1511 En-us x64 July2016 Pre-Activated-=TEAM OS=
KuzeyKore
Most Girls - Hailee Steinfeld
Geisha Band
Spojrzenia
Stahlnetz
Neruda (2016) en linea gratis en movie2k
Elementary 3x11
Ozark Season 1 Episode 4 s01e04
1985 HD Invasion U.S.A. (1985)
seedpeer.eu
Blue Bloods HDTV 720p AC3 5.1
T Mobile Mp3
covenant 2017 brrip 1080p
Movie Pics
The Defenders
Whitechapel
#8
Escrito 21 julio 2017 - 18:44
thelifeerotic 17 07 21 maria z sunset walk 2[tk][480p] mp4
Bhul Pana Mumkin Nahe Mp3
The Exorcist
Idlewild (2006)
American Gods S01E01 1080p HEVC x265 MeGusta mkv
Battlestar Galactica
Mozart in the Jungle
Dispatches Documentary series
Liam Payne - Strip That Down (feat. Quavo)
Secret of the Heart
Agassi en entier gratuit
Watch La Planete des Singes - Suprematie French Film Torrent complet en francais
Westworld
HideMyAss
Oracle Database 11gR2 patchset 11.2.0.4
El espacio entre nosotros (The Space Between Us) En El espacio entre nosotros, un muchacho de dieciseis anos de edad, que ha crecido y vive en Marte, se enamora de una chica de la Tierra, con la que se ha estado comunicando, por lo que comienza su viaje para poder verla.
Download
Sun 7/16
Histoire
Woodshock (2017)
Seikaisuru Kado
I Am Not An Animal
Bhul Pana Mumkin Nahe Mp3
The Exorcist
Idlewild (2006)
American Gods S01E01 1080p HEVC x265 MeGusta mkv
Battlestar Galactica
Mozart in the Jungle
Dispatches Documentary series
Liam Payne - Strip That Down (feat. Quavo)
Secret of the Heart
Agassi en entier gratuit
Watch La Planete des Singes - Suprematie French Film Torrent complet en francais
Westworld
HideMyAss
Oracle Database 11gR2 patchset 11.2.0.4
El espacio entre nosotros (The Space Between Us) En El espacio entre nosotros, un muchacho de dieciseis anos de edad, que ha crecido y vive en Marte, se enamora de una chica de la Tierra, con la que se ha estado comunicando, por lo que comienza su viaje para poder verla.
Download
Sun 7/16
Histoire
Woodshock (2017)
Seikaisuru Kado
I Am Not An Animal
#9
Escrito 22 julio 2017 - 02:24
- Circus Kids Our Secret World S01E03 HDTV x264-PLUTONiUM
Resident Evil: The Final Chapter (2016)
Directors
DOWNLOAD
Genius (2016)
Halt and Catch Fire
Agents Of S....2013
World of Warcraft Client - Version 1.12.1 enUS - Windows
Birdwatching - May June 2017
Ultima
Perdonarme CafГ© Quijano ft. Willy de Taburete y Taburete
Ryuusei no Arcadia
Shadow Complex Remastered (2016)
Madame x
Log Horizon
Super X Star 2013 DVDRip 576p
Download
Forged.in.Fire.S04E10.WEBRip.x264-RARBG
Arcana Famiglia
Ricky Martin
Body Like a Back Road
Dead Bang
Countdown BLuRayRip
Resident Evil: The Final Chapter (2016)
Directors
DOWNLOAD
Genius (2016)
Halt and Catch Fire
Agents Of S....2013
World of Warcraft Client - Version 1.12.1 enUS - Windows
Birdwatching - May June 2017
Ultima
Perdonarme CafГ© Quijano ft. Willy de Taburete y Taburete
Ryuusei no Arcadia
Shadow Complex Remastered (2016)
Madame x
Log Horizon
Super X Star 2013 DVDRip 576p
Download
Forged.in.Fire.S04E10.WEBRip.x264-RARBG
Arcana Famiglia
Ricky Martin
Body Like a Back Road
Dead Bang
Countdown BLuRayRip
#10
Escrito 22 julio 2017 - 03:34
Clean Bandit
Новогодний парад звезд
Episode 1 : Graines :
The Grand Tour
Pritum Love Mashup Mp3
cajas acusticas
Life (2017)
Altered Carbon
Ужасы
10 сезон
Скачать
The Dressmaker Il Diavolo E Tornato STREAMING ITA (2016)
Download
➤ More
blackmail
Season 1 Episode 1 Offred
Delivered
Jade Amber - Ice Cream Teen(NEW***15 06 2017)
Cloudy with a ...
Новогодний парад звезд
Episode 1 : Graines :
The Grand Tour
Pritum Love Mashup Mp3
cajas acusticas
Life (2017)
Altered Carbon
Ужасы
10 сезон
Скачать
The Dressmaker Il Diavolo E Tornato STREAMING ITA (2016)
Download
➤ More
blackmail
Season 1 Episode 1 Offred
Delivered
Jade Amber - Ice Cream Teen(NEW***15 06 2017)
Cloudy with a ...
#11
Escrito 22 julio 2017 - 03:35
Pat O'Connor
3.Sezon 5. Bolum
Come Fly with Me
2. Sezon 1. Bolum Faceless Killers
Enlisted
Good Girl
Фильмы до 2013 года
Najkrajsi cas (2005)
Read More
Isyana Sarasvati - Tetap Dalam Jiwa
Encuentros paranormales 2
Der Doktor und das liebe Vieh
2u feat justin bieber single
November 2015 (405)
view all
The Last Man on Earth - 2. Sezon 1. Bolum
Batman: Under the Red Hood (2010) Capucha roja
Cincuenta sombras mГЎs oscuras
Download
- Tosh 0 S09E12 XviD-AFG
En Cuanto Llegue Uno Mp3
Britannica Book of the Year 2008, Events of 2007
3.Sezon 5. Bolum
Come Fly with Me
2. Sezon 1. Bolum Faceless Killers
Enlisted
Good Girl
Фильмы до 2013 года
Najkrajsi cas (2005)
Read More
Isyana Sarasvati - Tetap Dalam Jiwa
Encuentros paranormales 2
Der Doktor und das liebe Vieh
2u feat justin bieber single
November 2015 (405)
view all
The Last Man on Earth - 2. Sezon 1. Bolum
Batman: Under the Red Hood (2010) Capucha roja
Cincuenta sombras mГЎs oscuras
Download
- Tosh 0 S09E12 XviD-AFG
En Cuanto Llegue Uno Mp3
Britannica Book of the Year 2008, Events of 2007
#12
Escrito 22 julio 2017 - 03:37
Grand Designs 9
Dolezity oznam - Uploaderi POVINNE PRECITAT!
Чудо на Гудзоне / Sully / 2016 / BDRip (720p)
Daum PotPlayer 1 6 63891
Better Things
Progressive
13 Reasons Why S01E08 - Tape 4, Side B
.:ShaReBeaR:.
VA The Real Jazz The Ultimate Jazz Collection 3 CD 320 kbps
Commissariat Central
this chart
My Love (Movie)
The Subtle Art of Not Giving a Fck (2016) (Epub) Gooner
Download
The White Princess Season 1 Episode 7
blue angel clea gaultier
Boye (2015) hd pelicula completa
Rang Rasiya Movie Online
Supergirl
Orphan Black streaming
0 usuarios están leyendo este tema
0 miembro/s, 0 invitado/s, 0 usuario/s anónimo/s