Tag: PowerShell
-
Activate Azure roles and resources with PowerShell
My new PowerShell script, Request-AzureADRolesV4.ps1, simplifies managing roles and permissions in Azure Active Directory (Azure AD). It streamlines the process of requesting and assigning Azure AD roles, offering efficiency and reliability for IT professionals. Streamlined Azure Role Management Azure AD administrators often face the challenge of balancing security with ease of use. Assigning roles typically…
-
Powershell Rate Limiting
When working with different API’s via PowerShell, you may encounter the need to have a rate limit and as such I’ve built two functions to do this. Code Usage
-
Storing secrets securly in Windows
One of the challenges with scripting / programming is securely storing passwords or API secrets across many different languages. Most of what i develop runs in Windows and as such it made sense to tap into the ProtectedData API and the Windows Registry. PowerShell Code Powershell Usage C# Code C# Usage Python Code Python Usage
-
PowerShell Anti-Idle Script
I developed a PowerShell script to prevent the system from idling, locking, or turning off the monitors. It will also ensure that the team’s idle will not trigger. AntiIdle.ps1 AntiIdleGUI.ps1
-
Powershell script to create user home directory and DFS namespace target
Creating a new users home directory and corresponding DFS namespace target. The script can also force all domain controllers to fully sync up in case you have multiple sites. Sync is enabled by default, however it can be disabled. This powershell script does require WinRM to be enabled for sync to work. You need to…
-
PowerShell exporting data easily from MsSQL into a CSV document
PowerShell has a module to assist with this, you can find out all the specifics at https://docs.microsoft.com/en-us/sql/powershell/download-sql-server-ps-module. I was asked to pull data and export it to a CSV to save time, which is easy to do with Task Scheduler and PowerShell.
-
PowerShell Tid Bits #1
The more I use power shell the more I realize you can do just about anything you could do with visual studio and C#. I haven’t found a comprehensive source for all the little differences between C# and powershell but the following are some things to take note of: