Contents tagged with powershell
-
Rename Azure Username with Powershell
https://docs.microsoft.com/en-us/powershell/module/msonline/set-msoluserprincipalname?view=azureadps-1.0 more
-
Managing Always Encrypted Locally Stored Certificates in PowerShell
https://www.sqlservercentral.com/articles/managing-always-encrypted-locally-stored-certificates-in-powershell
-
Upload Files to Onedrive Programmatically with Powershell
https://techcommunity.microsoft.com/t5/Office-365/How-to-uploads-files-to-OneDrive-for-Business-using-Powershell/td-p/136332
https://gcits.com/knowledge-base/transfer-users-onedrive-files-another- … more
-
Convert Office 365 Guest to Member Using Powershell
Start Powershell
>Connect-AzureAD
>Get-AzureADUser -SearchString [email protected] | Set-AzureADUser -UserType member more
-
Alllow Execution of Powershell Scripts
Start Windows PowerShell with the "Run as Administrator" option. Only members of the Administrators group on the computer can change the execution policy.
Enable running unsigned scripts by … more
-
Create an Azure VPN Gateway With Certificates With Powershell
https://docs.microsoft.com/en-us/learn/modules/configure-network-for-azure-virtual-machines/5-exercise-create-azure-vpn-gateway
-
Powershell Splatting
https://dbatools.io/splat/ more
-
Create a Certificate with Powershell
https://support.jetglobal.com/hc/en-us/articles/235636308-How-To-Create-a-SHA-256-Self-Signed-Certificate
https://docs.microsoft.com/en-us/powershell/module/pkiclient/new-selfsignedcertificate?view= … more
-
Powershell Script to Check Website Availability
https://gallery.technet.microsoft.com/scriptcenter/Powershell-Script-for-13a551b3
https://stackoverflow.com/questions/20259251/powershell-script-to-check-the-status-of-a-url
https://evotec.xyz/ … more
-
Powershell cmdlet to disable Windows Firewall
Powershell cmdlet to disable Windows Firewall:
Get-NetFirewallProfile | Set-NetFirewallProfile –Enabled False more
-
Create a Virtual Network Peering - Resource Manager, Different Subscriptions
https://docs.microsoft.com/en-us/azure/virtual-network/create-peering-different-subscriptions#powershell more
-
Install Azure Powershell
https://docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps?view=azurermps-6.13.0
-
Introduction to PowerShell with SQL Server Using Invoke-SQLCMD
https://www.red-gate.com/simple-talk/sysadmin/powershell/introduction-to-powershell-with-sql-server-using-invoke-sqlcmd/ more
-
Azure Powershell From Azure Portal
https://www.red-gate.com/simple-talk/sysadmin/powershell/azure-and-windows-powershell-getting-information/
-
Python vs Powershell
https://www.sqlshack.com/overview-python-vs-powershell-sql-server-database-administration/
https://ridicurious.com/2018/03/30/powershell-scripting-guide-to-python-part1/
https://www.sqlshack.com/ … more
-
Powershell security override execution policy
Set-Executionpolicy -Scope CurrentUser -ExecutionPolicy UnRestricted
Source: https://blog.netspi.com/15-ways-to-bypass-the-powershell-execution-policy/
-
Powershell Script to Send Email
Send-MailMessage has a -Credential parameter that takes a pscredential object. I would use a hashtable to store and splat the connection arguments:
$MailArgs = @{
From = 'mindaugas@yahoo. … more
-
Getting Started with Azure Powershell
Getting Started with Azure Powershell more
-
Automatic Zip and Backup a Folder
To backup folder C:\websites to c:\Backups using powershell from command prompt:
powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression. … more
-
Powershell Script to Reserve Public IP Address
List current reserved ips in the active subscription:
Get-AzureReservedIP
Create a new one for a virtual machine in the active subscription:
New-AzureReservedIP -ReservedIPName "[MyIPAdressName]" … more