Solved

get list of disks for MS SQL Server instance

Posted on 2013-05-29
4
378 Views
Last Modified: 2013-05-30
Hello,

Is it possible to get of disks for MS SQL Server instance?
If yes, how?

Thanks
0
Comment
Question by:bibi92
  • 3
4 Comments
 
LVL 48

Expert Comment

by:PortletPaul
ID: 39206344
EXEC master..xp_fixeddrives

see:
http://www.stevefibich.net/wordpress/2011/05/05/top-10-obsucre-t-sql-commands/
which also suggests:
EXEC Xp_dirtree ’c:’, 1, 1

which is further explained here
http://www.sql-server-performance.com/2001/extended-stored-procedures/

does this help?
0
 

Author Comment

by:bibi92
ID: 39206740
Hello
Thanks, i Know these commands. I search to get the Disks with powershell command.
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 39206761
ah, I see - in the topics - probbaly should include that in the question text - anyway:
I can spell powershell, that's about the limit :)
trust someone else will fill in that bit for you. Cheers. Paul
0
 
LVL 48

Accepted Solution

by:
PortletPaul earned 500 total points
ID: 39206765
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now