vadukunnantha_vaduko Posted November 18, 2016 Report Posted November 18, 2016 multiple rows ni ela filter cheyyali Get-WMIObject win32_logicaldisk -ComputerName servername -Filter "DeviceID='C:'" ippudu D drive lo ni information kuda kavale antey ela Quote
chitti_naidu Posted November 18, 2016 Report Posted November 18, 2016 Get-WMIObject win32_logicaldisk -ComputerName Servername | format-table Quote
vadukunnantha_vaduko Posted November 18, 2016 Author Report Posted November 18, 2016 3 minutes ago, chitti_naidu said: Get-WMIObject win32_logicaldisk -ComputerName Servername | format-table andhulo C,D,E drives unnai bro i need only C,D drive info not full information Quote
AmazingSpiderReddy Posted November 18, 2016 Report Posted November 18, 2016 Use -and / -or operations on filter Quote
vadukunnantha_vaduko Posted November 18, 2016 Author Report Posted November 18, 2016 1 minute ago, AmazingSpiderReddy said: Use -and / -or operations on filter Tried not working...... kottha powershell ki konchem evvarina filter chesi pampandi vayya please Quote
chitti_naidu Posted November 18, 2016 Report Posted November 18, 2016 Get-WMIObject win32_logicaldisk -ComputerName ServerName | Where-Object {($_.DeviceID -ne 'E:')} Quote
chitti_naidu Posted November 18, 2016 Report Posted November 18, 2016 Get-WMIObject win32_logicaldisk -ComputerName ServerName | Where-Object {($_.DeviceID -ne 'E:')} | Format-Table 1 Quote
vadukunnantha_vaduko Posted November 18, 2016 Author Report Posted November 18, 2016 work avthundhi bro thanx....actuall ga make 7 drives unai each disk lo but i can get the result of c and d, annitiki where -ne pettesthunna except c and d... once again thanx Quote
chitti_naidu Posted November 18, 2016 Report Posted November 18, 2016 Get-WMIObject win32_logicaldisk -ComputerName ServerName | Where-Object {($_.DeviceID -in 'c:', 'd:')} | Format-Table idhi try chey, annitiki -ne pette badulu Quote
vadukunnantha_vaduko Posted November 19, 2016 Author Report Posted November 19, 2016 4 hours ago, chitti_naidu said: Get-WMIObject win32_logicaldisk -ComputerName ServerName | Where-Object {($_.DeviceID -in 'c:', 'd:')} | Format-Table idhi try chey, annitiki -ne pette badulu Thanks a lot bro already work submit chesina..........eppudaina malli ilati situation vosthey sure ga idhi try chestha....... Quote
vadukunnantha_vaduko Posted November 19, 2016 Author Report Posted November 19, 2016 4 hours ago, AmazingSpiderReddy said: Use -and / -or operations on filter Thanks bro Quote
bhaigan Posted November 19, 2016 Report Posted November 19, 2016 5 hours ago, vadukunnantha_vaduko said: work avthundhi bro thanx....actuall ga make 7 drives unai each disk lo but i can get the result of c and d, annitiki where -ne pettesthunna except c and d... once again thanx chiiti naidu alias @Spartan keka Quote
vadukunnantha_vaduko Posted November 21, 2016 Author Report Posted November 21, 2016 @chitti_naidu china help bro nenu rasindhi idhi Get-CimInstance win32_logicaldisk -ComputerName USLEDDFS01| Where-Object {($_.DeviceID -ne 'A:' -AND $_.DeviceID -ne 'C:') -AND $_.DeviceID -ne 'I:' -AND $_.DeviceID -ne 'J:'} vadu dhiniki ila annadu bro Manager:- please include the shares on the servers. A quick fix might be to add `get-wmiobject -class win32_shares` Quote
vadukunnantha_vaduko Posted November 21, 2016 Author Report Posted November 21, 2016 @AmazingSpiderReddy help Quote
vadukunnantha_vaduko Posted November 22, 2016 Author Report Posted November 22, 2016 Ltt @chitti_naidu Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.