Powershell noob

Dec 21, 2015 at 3:13 PM
So... Can anyone help me getting this PowerShell cmdlet to work?
New-Item -type directory -path "$([Environment]::GetFolderPath([Environment+SpecialFolder]::MyDocuments))\WindowsPowerShell\Modules"
It's from the configuration steps inside "SqlServerInventory ReadMe.txt". I'd like to know were should I insert the path to the newly created folder and where should I insert the newly created folder's name.

Thanks!
Coordinator
Dec 22, 2015 at 8:51 PM
That will create a subfolder named \WindowsPowerShell\Modules in your "My Documents" directory. I'm not sure what you mean by inserting a path since this does the work of figuring out where your "My Documents" folder is for you.

--Kendal
Dec 23, 2015 at 12:10 PM
oh, ok, thanks!
I thought I had to include the paths myself.

Now I'm having another problem: When documenting a Azure SQL Server, which parameters should I use? -ComputerName or - Subnet?
Could you provide an example, please?

Thanks again and a merry Xmas!
Coordinator
Mar 7, 2016 at 6:49 PM
For an Azure SQL Database use -ComputerName and provide the DNS name that you use in SSMS to connect to the instance.