Category "powershell"

Batch script to delete Computer Objects from the ARS portal

I used the below script to delete bulk users from the ARS portal [Dell Active Roles] Connect-QADService -Proxy -Credential (Get-Credential) Import-Csv "C:\IT\D

Renaming localization of built-in Active Directory Groups using SID

I have a few site/domains that someone installed with a foreign language, hence the built in security groups are in localized language. It doesnt help adding a

Refresh a variable within a foreach statement

We have a master registry within our on premise SharePoint environment, to keep this list accurate, we run a clean up script each day to remove the item within

PowerShell AzureAD odata v3.0 filter

So I am trying to fetch all sign-in logs that fails a particular Conditional Access that have been set in Report-Only mode. The cmdlet is in preview and is unab

Automate publishing .NET Core App to multiple subdomains

I have a .NET Core application used by many clients. Each client has its own subdomain. Each client has its own database. All databases are identical. Different

Manage Taskbar Align Windows 11 - Powershell

I want align the taskbar of windows 11 to the left side using PowerShell. I did this: New-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer

PowerShell: force password change at the next logon for multiple users

I'm new to PowerShell and am still learning the ropes. I want to create a script for work that I can force a change at the next logon for many users. I have thi

How to use Backup-SqlDatabase with SAS token?

I'm trying to implement log shipping using Backup-sqldatabase command, but SqlCredential is a required parameter for Azure Storage uploads according to the docs

Custom PowerShell Label script

Asking for a bit of help on my script. I would like to get a list saved to a thumb drive with the computer name and the WAN address. I know I can add a custom l

What is the sure-fire way to find role assignments with "Identity not found." on Azure with Powershell?

If you assign a role in Azure and later delete the identity before you delete the role assignment, you wind up with an "Identity not found." condition. It's har

Powershell script works when executed directly in Powershell, but not when executed from Task Scheduler

I have a PS script with an embedded condition. If true, it displays a prompt. If the user enters "R", the PC is supposed to reboot. Everything works well when

Trying to output a custom powershell object where I can align each line of two different variables containing Category:Description

I'm trying to do an network access control audit by grabbing a user's AD groups, their descriptions and then output them in a way shown by this example: [User]

Why can't export variable members in a PowerShell module using VariablesToExport?

From How to Write a PowerShell Module Manifest I learned that I can export all the variables in the module using VariablesToExport = '*'. However, after using i

AD user disabled date is in extensionAttribute, need to delete users based on that

We have a third party LDAP system managing people. AD users that represent actual employees are created and maintained by a feed from this LDAP system. We would

AD user disabled date is in extensionAttribute, need to delete users based on that

We have a third party LDAP system managing people. AD users that represent actual employees are created and maintained by a feed from this LDAP system. We would

Create team with powershell

Everyone. I am going to create team with powershell. I have created .ps1 file and write the content as following. Connect-MicrosoftTeams New-Team -DisplayName "

Powershell WPF handle single row colors

I'm trying to adapt a script of mine who just shows a simple WPF datagrid. It has 4 Columns and i need to set a color on a few rows if its content respects a co

Invoke-RestMethod : {"errors":[{"msg":"Either \u0027analysisId\u0027, \u0027projectId\u0027 or \u0027projectKey\u0027 must be provided"}]}

I am trying to get quality gate status from sonar server using API by passing pull request ID but I am getting error: $QualityGateResult = Invoke-RestMethod -Me

Graph API Device Management Configuration Compliance Policy Search

We have multiple clients that have a security software compliance policy in place. My goal is to look into those policies, and pull out the devices that are not

php stdin input return blank value with arabic chars

i'm makin my own php cli but i need to use arabic letters so fgets return blank value from command line input Knowing i'm using powershell to run commands funct