windows:powershell:insertstorage
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| windows:powershell:insertstorage [2013/10/15 03:13] – external edit 127.0.0.1 | windows:powershell:insertstorage [2018/05/15 03:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| <code powershell insertStorage.ps1> | <code powershell insertStorage.ps1> | ||
| - | $HostList = Invoke-Sqlcmd -Query "EXEC Windows.Host_Select_HostID_HostName" | + | $HostList = Invoke-Sqlcmd -Query "EXEC Windows.Host_Select_HostID_HostName" |
| $HostList | ForEach-Object { | $HostList | ForEach-Object { | ||
| $HostName = $_.HostName | $HostName = $_.HostName | ||
| Line 24: | Line 24: | ||
| $DiskFormat, | $DiskFormat, | ||
| $sql = "EXEC Windows.Storage_Insert $HostID, ' | $sql = "EXEC Windows.Storage_Insert $HostID, ' | ||
| - | Invoke-Sqlcmd -Query $sql -ServerInstance " | + | Invoke-Sqlcmd -Query $sql -ServerInstance " |
| }}} | }}} | ||
| </ | </ | ||
windows/powershell/insertstorage.1381806784.txt.gz · Last modified: (external edit)
