8,330 questions with Windows for business | Windows Server | User experience | PowerShell tags
Set Job Title Using PowerShell
I'm trying to write a PS script to update the job title for users in AD. I was given a CSV file with a list of users email address and I'm using that. This is what my CSV file looks like: "email","jobtitle" …
Windows for business | Windows Server | User experience | PowerShell
PowerShell using Sytem.Diagnostics.ProcessStartInfo ExitCode -1073741502
I have a task that is running with NETWORK SERVICE account that is calling a ps1, the ps1 is calling System.Diagnostics.ProcessStartInfo and System.Diagnostics.Process with credentials and always have the same exit Code -1073741502 and never calls the…
Windows for business | Windows Server | User experience | PowerShell
Create a Powershell script to automatically lookup and download HP printer firmware files
Hi, I want to create a Powershell script that I can run periodically to automatically download the latest HP printer firmware files. The source where I can find the path to the latest firmware file for each printer model is this URL: …
Windows for business | Windows Server | User experience | PowerShell
Want output with DistributionGroup Name, EmailAddress along with UserName, EmailAddress for AcceptMessagesOnlyFromDLMembers and/or AcceptMessagesOnlyFromSendersOrMembers
Display Name can be same but email addresses cannot be the same for everyone. I've got the command to get the list of UserName, EmailAddress of the members/users (Internal,External) those are having the permission to send the email to the group. But I…
Exchange Online
Exchange | Exchange Server | Development
Windows for business | Windows Server | User experience | PowerShell
No repository found PS gallery
NO Repository found error. I tried to troubleshoot with the help of PSgallery below support link, but no luck https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/
Windows for business | Windows Server | User experience | PowerShell
the script is correct?
Hi all, the script in the link below is correct? Can anyone share? Thank you! https://serverfault.com/questions/626092/converting-dynamic-dns-records-to-static
Windows for business | Windows Server | User experience | PowerShell
list mailboxes from aad group
Hi, i'm tring list mailboxes without archive from specific AAD group. bellow is a code. Variable $Users returns all members of a group, but variable $SearchResult return just one user from AD Group. can somebody tell me what i'm doing wrong? …
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Powershell 7 get Aduit settings on file/folder
Hi all please how can i get audit setting of file / folder by powershell 7? On PS 5 is method GetAccessControl('Access, Audit').AreAuditRulesProtected I need to check if audit settings has enabled inheritance.
Windows for business | Windows Server | User experience | PowerShell


ps New-ExchangeCertificate SYNTAX WHEN REQUESTING CERT Outside US
I have been setting up a new Exchange Server 2019 and am stuck with the syntax to generate an SSL CSR via powershell where the domain name is not in the US example mycompany.com.au and the FQDN of the server to be used in the cert is…
Exchange | Exchange Server | Management
Windows for business | Windows Server | User experience | PowerShell
Powershell: Compare 2 columns with non-unique data
I have been tasked to write a script to import a CSV and determine if each user logs into a laptop, desktop or both. Some users log into multiple computers. I have a CSV of users and computers that they log into. How do I search through a column of the…
Windows for business | Windows Server | User experience | PowerShell
Using tee-object with the output from an exe
I'm trying to record the output of yt-dlp to both a log file and see that output on screen. I thought tee would let me do that. I have (yt-dlp something) *>&1 | tee filename.log. It attempts to write the log file only after yt-dlp returns. …
Windows for business | Windows Server | User experience | PowerShell


Import CSV with a folder structure to sharepoint online
Hello everybody, I'm currently trying to import a library and folder structure to sharepoint online from a CSV. My csv looks like this: Position1;Position2;Position3 0 Basics;; 1 LibraryA;; ;1.1 FolderA_in_LibA; ;1.2 FolderB_in_LibA; ;;1.2.1…
Windows for business | Windows Server | User experience | PowerShell
Azure REST API Powershell ADO Rest API System.AssignedTo does not show a value
Question: Is there a way to get System.AssignedTo to display a value or any field containing an user? Unable to get any identity show. Results:
Windows for business | Windows Server | User experience | PowerShell

Is this still a case?
Hi all, i use Set-DnsServerResourceRecord to change the IP of that record to 192.168.0.200 PTR 192.168.0.100 is purged automatically from the rev zone and 192.168.0.200 is not showing up in its place See the link: …
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
Powershell script to run 20-30 updates at a time
Hi guys, very new sysadmin here. I've currently taken over WSUS management and have found that we haven't been updating client agent machines for several years now... I went through the process of cleaning up superseded updates, but have found…
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
How to assign Owner role of an Azure subscription to a particular user group (Azure AD Synced Group) using PowerShell
Hello Everyone, This is very simple if you do it from Azure portal and infact I found an article from Microsoft explaining exactly how to do it. Assign a user as an administrator of an Azure subscription However I am struggling to write up a…
Windows for business | Windows Server | User experience | PowerShell
PowerSHell Gallery is not registering
I have tried to execute below command attached in screenshot. Please help
Windows for business | Windows Server | User experience | PowerShell

is there a way to automate?
Hi all, Is there a way to automate instead of doing manually on each DNS record? …
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
Remove duplicates from text file that matches a given string
Hi, I'm really hoping to use Powershell to save time removing some duplicates from some files, the below I found on the old Microsoft site is exactly what I want to do and using the example text there that answer does work but when I modify the text…
Windows for business | Windows Server | User experience | PowerShell

Powershell: Searching array from imported CSV data using a For-each loop
I have been tasked to write a powershell script that will take the data from 2 CSVs and information from Active Directory and send the output to a separate CSV. The unfortunate part is that there is no unique single column for each of the CSVs and I…