Added some functions to generyc
This commit is contained in:
@@ -32,7 +32,7 @@ At C:\Users\Mamoncete\Desktop\test.ps1:50 char:8
|
||||
|
||||
======================================
|
||||
```sh
|
||||
Get-SCVMMServer -ComputerName "VMMServer01.Contoso.com" -TCPPort 8100
|
||||
Get-SCVMMServer -ComputerName "VMMServer01.Cosco.com" -TCPPort 8100
|
||||
```
|
||||
https://docs.microsoft.com/en-us/powershell/module/virtualmachinemanager/get-scvmmserver?view=systemcenter-ps-2022
|
||||
|
||||
@@ -59,4 +59,29 @@ Get-Command -Module hyper-v | Out-GridView
|
||||
https://livebook.manning.com/book/windows-powershell-in-action-third-edition/chapter-2/40
|
||||
```powershell
|
||||
Connect-VIServer -Server 10.23.112.235 -Protocol https -User admin -Password pass
|
||||
```
|
||||
```
|
||||
|
||||
https://thesysadminchannel.com/get-all-vmware-snapshots-using-powercli-module/
|
||||
```powershell
|
||||
Get-VM | Get-Snapshot | select VM, Name, Created
|
||||
```
|
||||
|
||||
```powershell
|
||||
format-list
|
||||
```
|
||||
|
||||
|
||||
# Async/background
|
||||
|
||||
https://adamtheautomator.com/powershell-async/
|
||||
|
||||
Mayb do a list of background processes, when it finishes/breaks or something removes itself?
|
||||
Mayb a list of pids, a loop that checks if the pid still running, if it is running it waits, if it isnt it get removed, resumes when all ended?
|
||||
|
||||
|
||||
## "Best practices"
|
||||
https://adamtheautomator.com/powershell-best-practices/
|
||||
|
||||
# Sort-Object
|
||||
|
||||
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/sort-object?view=powershell-7.2
|
||||
Reference in New Issue
Block a user