8,330 questions with Windows for business | Windows Server | User experience | PowerShell tags

Sort by: Updated
3 answers One of the answers was accepted by the question author.

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
asked 2021-12-08T19:36:54.053+00:00
Anonymous
commented 2022-05-07T13:50:52.707+00:00
Naveen Kumar 21 Reputation points
1 answer

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
asked 2020-10-02T19:46:04.343+00:00
Horacio 1 Reputation point
commented 2022-05-07T05:40:57.633+00:00
Vardan Harutyunyan 1 Reputation point
1 answer One of the answers was accepted by the question author.

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
asked 2022-05-05T16:51:00.59+00:00
Bastiaan Oosterman 21 Reputation points
accepted 2022-05-06T21:23:02.67+00:00
Bastiaan Oosterman 21 Reputation points
1 answer

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 Online
A Microsoft email and calendaring hosted service.
6,181 questions
Exchange | Exchange Server | Development
Windows for business | Windows Server | User experience | PowerShell
asked 2022-05-05T14:22:04.937+00:00
Sushant Sawant 1 Reputation point
commented 2022-05-06T16:24:16.15+00:00
Newbie Jones 1,386 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2022-05-03T11:36:39.587+00:00
sns 9,246 Reputation points
commented 2022-05-06T14:53:32.037+00:00
Rich Matheisen 47,901 Reputation points
2 answers

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
asked 2022-04-26T01:22:28.457+00:00
John JY 221 Reputation points
commented 2022-05-06T14:50:18.517+00:00
Rich Matheisen 47,901 Reputation points
1 answer

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
asked 2022-05-06T11:25:50.453+00:00
Mario Grdiša 86 Reputation points
answered 2022-05-06T12:04:26.527+00:00
Newbie Jones 1,386 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2022-05-04T08:01:02.157+00:00
Belan Marek 56 Reputation points
accepted 2022-05-06T05:40:39.057+00:00
Belan Marek 56 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2022-04-23T06:37:29.657+00:00
Shane King 31 Reputation points
accepted 2022-05-05T22:54:03.9+00:00
Shane King 31 Reputation points
0 answers

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
asked 2022-05-05T16:15:00.893+00:00
Dane Briggs 281 Reputation points
commented 2022-05-05T19:11:55.597+00:00
Rich Matheisen 47,901 Reputation points
4 answers One of the answers was accepted by the question author.

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
asked 2022-05-05T02:09:37.377+00:00
Will Pittenger 311 Reputation points
accepted 2022-05-05T14:58:13.88+00:00
Will Pittenger 311 Reputation points
5 answers One of the answers was accepted by the question author.

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
asked 2022-04-28T14:46:37.757+00:00
HeKa 21 Reputation points
answered 2022-05-05T08:09:52.323+00:00
HeKa 21 Reputation points
1 answer

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
asked 2022-04-28T02:19:52.9+00:00
DBTech 1 Reputation point
answered 2022-05-05T07:10:58.567+00:00
Limitless Technology 39,926 Reputation points
1 answer

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
asked 2022-05-04T14:53:11.673+00:00
Matt 101 Reputation points
commented 2022-05-05T01:12:58.627+00:00
Matt 101 Reputation points
6 answers One of the answers was accepted by the question author.

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
asked 2022-03-23T21:45:08.683+00:00
Jayjay221 31 Reputation points
accepted 2022-05-05T00:02:08.05+00:00
Jayjay221 31 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2022-05-03T13:09:28.883+00:00
Hishan 71 Reputation points
commented 2022-05-04T23:50:22.79+00:00
Hishan 71 Reputation points
1 answer

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
asked 2022-04-28T10:12:37.167+00:00
sns 9,246 Reputation points
answered 2022-05-04T22:39:33.343+00:00
Limitless Technology 39,926 Reputation points
1 answer

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
asked 2022-04-28T13:57:23.29+00:00
Matt 101 Reputation points
commented 2022-05-04T21:21:14.697+00:00
Matt 101 Reputation points
2 answers

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
asked 2022-05-03T19:45:08.69+00:00
AD 1 Reputation point
commented 2022-05-04T19:29:15.227+00:00
Andreas Baumgarten 123.6K Reputation points MVP Volunteer Moderator
1 answer One of the answers was accepted by the question author.

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…

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
asked 2022-05-04T17:22:16.807+00:00
Dane Briggs 281 Reputation points
accepted 2022-05-04T19:26:45.193+00:00
Dane Briggs 281 Reputation points