New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "something.something" -FriendlyName "mycert" -NotAfter (Get-Date).AddYears(10)
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
| $Date = get-date -f ddMMMyyy | |
| # why are we defining these variables ? only define what you use | |
| $FilePath = "C:\Windows\System32\msiexec.exe" | |
| $OS = (Get-WmiObject Win32_OperatingSystem).caption | |
| $Domain = (Get-WmiObject win32_computersystem).Domain | |
| # define every variable before using it | |
| $LogPath = "C:\PostBuild" |
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
| // using powershell script --------------------------------------------------- 1 | |
| using (PowerShell PowerShellInstance = PowerShell.Create()) | |
| { | |
| Collection<PSObject> results = PowerShellInstance.InvokeCommand.InvokeScript("dir"); | |
| foreach (PSObject var in results) | |
| { | |
| WriteObject(var.ToString(),false); | |
| } | |
I hereby claim:
- I am v2kiran on github.
- I am v2kiran (https://keybase.io/v2kiran) on keybase.
- I have a public key ASBzVDBTbe7LYvigN8Idpxy5CvReaOARLY637I102qRuzgo
To claim this, I am signing this object:
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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0", | |
| "parameters": { | |
| "vnet": { | |
| "type": "string", | |
| "defaultValue": "resource-group/vnet-name" | |
| }, | |
| "ipAddress": { | |
| "type": "string", |
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
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0", | |
| "parameters": { | |
| "sku": { | |
| "type": "string", | |
| "defaultValue": "B1" | |
| } | |
| }, | |
| "variables": { |
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
| Verifying that +kiranreddy is my blockchain ID. https://onename.com/kiranreddy |
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
| Get-Service -Name BITS |
NewerOlder