This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$jsonObject = @{ | |
TERMID = 3232 | |
PINSERV = '192.168.1.52:5145' | |
MERCHANTID = 01 | |
ID = 1421336011 | |
Serv = '192.168.1.180:5150' | |
Lane = 2017 | |
} | ConvertTo-Json | |
$TestDir = 'path/filename.xml'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$jsonObject = @{ | |
TERMID = 3232 | |
PINSERV = '192.168.1.52:5145' | |
MERCHANTID = 01 | |
ID = 1421336011 | |
Serv = '192.168.1.180:5150' | |
Lane = 2017 | |
} | ConvertTo-Json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-MemberOfDistributionGroups | |
{ | |
[CmdletBinding()] | |
Param( | |
[String]$Identity | |
) | |
$user = Get-Mailbox $Identity | |
"$($user.DisplayName) is a member of the following groups:" | |
foreach ($Group in (Get-Recipient -Filter "Members -eq '$($user.DistinguishedName)'")) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# establish initial connection to website | |
$initialRequest = Invoke-WebRequest -Uri 'http://192.168.100.97/csl/login' -SessionVariable WebSession1 | |
#$initialrequest is now an object containing the html of the web request. get the form elements from the page | |
$form = $initialRequest.Forms[0] #outputting $form.fields to the screen will show you all the elements. Assuming 'username' and 'password'... | |
# update $form with username and password info and submit this back to the login webpage as POST | |
$form.fields.userpwd = "PASS" | |
$form.fields.username = "USER" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i am interested in $_.summary.config.NumCPU and $_.summary.config.MemorySizeMB | |
---------- | |
Capability : VMware.Vim.VirtualMachineCapability | |
Config : VMware.Vim.VirtualMachineConfigInfo | |
Layout : VMware.Vim.VirtualMachineFileLayout | |
LayoutEx : VMware.Vim.VirtualMachineFileLayoutEx | |
Storage : VMware.Vim.VirtualMachineStorageInfo | |
EnvironmentBrowser : EnvironmentBrowser-envbrowser-1905 |
NewerOlder